CoolFace
Apppublic

sagarnildass/Deep_Research_Assistant_Agent

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
clarifier_agent.py17 linesDownload Raw Back to root
1from pydantic import BaseModel2from agents import Agent3 4class ClarifyingQuestions(BaseModel):5    questions: list[str]6    """Three clarifying questions to better understand the user's query."""7 8clarifier_agent = Agent(9    name="ClarifierAgent",10    instructions=(11        "You are a research assistant. Your task is to ask 3 clarifying questions that help refine and understand "12        "a research query better. After the user answers them, hand off control to the Research Coordinator to perform the full research."13    ),14    model="gpt-4o-mini",15    output_type=ClarifyingQuestions,16)17