File size: 594 Bytes
fb15b03 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from pydantic import BaseModel
from agents import Agent
class ClarifyingQuestions(BaseModel):
questions: list[str]
"""Three clarifying questions to better understand the user's query."""
clarifier_agent = Agent(
name="ClarifierAgent",
instructions=(
"You are a research assistant. Your task is to ask 3 clarifying questions that help refine and understand "
"a research query better. After the user answers them, hand off control to the Research Coordinator to perform the full research."
),
model="gpt-4o-mini",
output_type=ClarifyingQuestions,
)
|