Application framework for building AI agents with Pydantic AI - environment abstractions, session management, and hierarchical agent patterns
Project description
Ya Agent SDK
Yet Another Agent SDK
Yet Another Agent SDK for building AI agents with Pydantic AI.
Key Features
- Environment-based architecture for file operations, shell access, and resources
- Fully typed SDK validated with pyright
- Resumable sessions with state export and restore
- Hierarchical agents with subagent delegation
- Tool search for large tool libraries
- Skills system with hot reload and progressive loading
- Human-in-the-loop approval workflows
- Event system and streaming support
- Message bus for agent coordination and user steering
- Browser automation with Docker sandbox support
Installation
pip install ya-agent-sdk[all]
uv add ya-agent-sdk[all]
Selective extras:
pip install ya-agent-sdk[docker]
pip install ya-agent-sdk[web]
pip install ya-agent-sdk[document]
pip install ya-agent-sdk[s3]
pip install ya-agent-sdk[tool-search]
Quick Start
from ya_agent_sdk.agents import create_agent, stream_agent
runtime = create_agent("openai:gpt-4o")
async with stream_agent(runtime, "Hello") as streamer:
async for event in streamer:
print(event)
Repository Context
This package lives in the ya-mono workspace.
- CLI package:
packages/yaacli - Examples:
examples/ - Skill source:
skills/agent-builder/ - agent-builder skill:
skills/agent-builder/SKILL.md
Examples
| Example | Description |
|---|---|
general.py |
Production pattern with streaming, HITL approval, and session persistence |
deepresearch.py |
Autonomous research agent with web search and content extraction |
browser_use.py |
Browser automation with Docker-based headless Chrome sandbox |
Reference Files
- AgentContext & Sessions
- Streaming & Hooks
- Events
- Toolset Architecture
- Tool Search
- Subagent System
- Skills System
- Message Bus
- Media Upload
- Custom Environments
- Resumable Resources
- Model Configuration
- Logging Configuration
- Tool Proxy
Development
git clone git@github.com:YOUR_NAME/ya-mono.git
cd ya-mono
uv sync --all-packages
Workspace commands live at the repository root. See the contributing guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ya_agent_sdk-0.58.4.tar.gz.
File metadata
- Download URL: ya_agent_sdk-0.58.4.tar.gz
- Upload date:
- Size: 454.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91df581dde48ecfb51f50fe3e5a369365971a5c10d6b5bc9280beb9ba553276b
|
|
| MD5 |
65725e9f46db70d90664b4af494320ba
|
|
| BLAKE2b-256 |
5de4e98feab7339c535ea9efe2bf1814f33f4d018998c891474e716952b6a679
|
File details
Details for the file ya_agent_sdk-0.58.4-py3-none-any.whl.
File metadata
- Download URL: ya_agent_sdk-0.58.4-py3-none-any.whl
- Upload date:
- Size: 325.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7a55846ee6d6144ddb46dad2a80c3ee6491899f6c7f8d19b473e71c3f29b507
|
|
| MD5 |
f41f8921eac7730164b7c98e31c9da1a
|
|
| BLAKE2b-256 |
d94e53168c79bbcc99dc6aa7a0420558c5e128119c8aa92e8a3a1a24ae4b45b0
|