from agno.agent import Agent
from agno.models.openai import OpenAIResponses
from agno.tools.parallel import ParallelTools
enrichment_tools = ParallelTools(
enable_search=False,
enable_extract=False,
enable_task=True,
default_processor="base",
default_output_schema={
"type": "json",
"json_schema": {
"type": "object",
"properties": {
"company_name": {"type": "string"},
"headquarters": {"type": "string"},
"total_funding": {"type": "string"},
"key_investors": {"type": "array", "items": {"type": "string"}},
},
"required": ["company_name"],
},
},
)
agent = Agent(
model=OpenAIResponses(id="gpt-5.4"),
tools=[enrichment_tools],
markdown=True,
instructions="Use create_task() to research, then get_task_result() to retrieve.",
)
agent.print_response("Research Anthropic and return structured company data", stream=True)