Create an AI agent workflow that routes a question to a different AI model depending on its complexity
generateText
from Vercel’s AI SDK to interact with OpenAI modelsexperimental_telemetry
in the source verification and historical analysis tasks to provide LLM logso1-mini
) to classify complexitygpt-4o
and complex ones to gpt-o3-mini