from hai_agents import Client
client = Client()
client.agents.create_agent(
name="fast-searcher",
description="Searches the web quickly in text mode. Use for broad lookups.",
model="holo4-35b-a3b",
environments=[{"id": "search-browser", "kind": "web", "mode": {"type": "text"}, "start_url": "https://www.bing.com"}],
)
client.agents.create_agent(
name="visual-verifier",
description="Visually inspects a page. Use to confirm a fact or read content behind interactions.",
environments=["h/browser"],
)
client.agents.create_agent(
name="research-orchestrator",
description="Splits research across subagents and merges one sourced report.",
environments=[],
subagents=["fast-searcher", "visual-verifier"],
)
result = client.run_session(
agent="research-orchestrator",
messages="Compare the starting price of the latest Apple, Google, and Samsung flagship phones, with source URLs.",
)
print(result.answer)