← ClaudeAtlas

agent-builderlisted

Build AI agents using pai-agent-sdk with Pydantic AI. Covers agent creation via create_agent(), toolset configuration, session persistence with ResumableState, subagent hierarchies, and browser automation. Use when creating agent applications, configuring custom tools, managing multi-turn sessions, setting up hierarchical agents, or implementing HITL approval flows.
youware-labs/pai-agent-sdk · ★ 21 · AI & Automation · score 76
Install: claude install-skill youware-labs/pai-agent-sdk
# Building Agents with pai-agent-sdk Build production-ready AI agents with Pydantic AI. ## Quick Start ```python from pai_agent_sdk.agents import create_agent async with create_agent("openai:gpt-4o") as runtime: result = await runtime.agent.run("Hello", deps=runtime.ctx) print(result.output) ``` With tools and streaming: ```python from pai_agent_sdk.agents import create_agent, stream_agent from pai_agent_sdk.toolsets.core.filesystem import tools as fs_tools from pai_agent_sdk.toolsets.core.shell import tools as shell_tools async with create_agent( model="anthropic:claude-sonnet-4", system_prompt="You are a coding assistant.", tools=[*fs_tools, *shell_tools], ) as runtime: async with stream_agent(runtime.agent, "List files", runtime.ctx) as stream: async for event in stream: # Handle streaming events pass ``` ## Installation ```bash pip install pai-agent-sdk[all] # Or selective: pip install pai-agent-sdk[docker,web,document] ``` ## Core Concepts | Concept | Purpose | Reference | | ----------------- | ---------------------------------------------- | ---------------------------------------------------------- | | AgentContext | Session state, model config, tool config | [docs/context.md](docs/context.md) | | Streaming & Hooks | Real-time events, lifecycle hooks | [docs/s