mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-30 14:58:08 +00:00
/agents is where an agent lands: get a key (device flow or HTTP sign-up), the free tier as /v1/billing/plans states it, a first call, the MCP server for Claude Code, Codex, Cursor and Zed, Kai and its harness, a campaign draft, and how an owner pays and bounds spend. The Agents SDK page moves to /agents/sdk. The prompt an agent pastes is lib/agents.ts, drawn on /agents and written into llms.txt, which now keeps every hand-written section. robots.txt names the AI crawlers; JSON-LD carries the positioning, 2014, the founders as /about names them, and drops a SearchAction /search never answered; /.well-known/api-catalog points at the OpenAPI document. /about gains a track-record band, each line beside its source. Claude-Session: https://claude.ai/code/session_017vrVus6PPBgP5YRzKV1iqW
29 lines
809 B
TypeScript
29 lines
809 B
TypeScript
import { Code } from '@/components/code'
|
|
import AgentsPage from './view'
|
|
|
|
const AGENT_CODE = `pip install hanzo-agent
|
|
|
|
from agents import Agent
|
|
from agents.network import create_network, SemanticRouter
|
|
|
|
researcher = Agent(
|
|
name="Researcher",
|
|
instructions="You find and analyze information.",
|
|
tools=[search_tool, analyze_tool],
|
|
)
|
|
|
|
writer = Agent(
|
|
name="Writer",
|
|
instructions="You create content based on research.",
|
|
tools=[format_tool],
|
|
)
|
|
|
|
network = create_network(agents=[researcher, writer], router=SemanticRouter())
|
|
|
|
result = await network.run("Research and write about quantum computing")`
|
|
|
|
/** The page, with its sample highlighted where it is built (components/code). */
|
|
export default function Page() {
|
|
return <AgentsPage source={<Code lang="python" code={AGENT_CODE} />} />
|
|
}
|