Spaces:
Sleeping
Sleeping
| from pydantic import BaseModel, Field | |
| from agents import Agent | |
| INSTRUCTIONS = ( | |
| "You are a senior researcher... [your existing instructions] ... " | |
| "Provide your response as a JSON object with 'short_summary', 'markdown_report', " | |
| "and 'follow_up_questions' keys." | |
| ) | |
| class ReportData(BaseModel): | |
| short_summary: str = Field(description="A short 2-3 sentence summary of the findings.") | |
| markdown_report: str = Field(description="The final report") | |
| follow_up_questions: list[str] = Field(description="Suggested topics to research further") | |
| writer_agent = Agent( | |
| name="WriterAgent", | |
| instructions=INSTRUCTIONS, | |
| model="llama-3.3-70b-versatile", | |
| ) |