Files
hanzo.ai/app/(marketing)/agents/sdk/page.tsx
zeekay 0910c3cc68 agents: a start page for AI agents, and the site describes itself to them
/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
2026-10-26 11:45:15 -07:00

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} />} />
}