Skip to main content

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

Release Build status codecov Commit activity License

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.

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

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

ya_agent_sdk-0.58.2.tar.gz (454.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ya_agent_sdk-0.58.2-py3-none-any.whl (325.6 kB view details)

Uploaded Python 3

File details

Details for the file ya_agent_sdk-0.58.2.tar.gz.

File metadata

  • Download URL: ya_agent_sdk-0.58.2.tar.gz
  • Upload date:
  • Size: 454.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for ya_agent_sdk-0.58.2.tar.gz
Algorithm Hash digest
SHA256 eba119f4a99465ce1342016884ad6575c96311aad959fca2092995ca7df45454
MD5 07dac3b1710b064b985e5b2c78773fc4
BLAKE2b-256 704f05165d872016bce5b69ab0bb1316b8c4d21ea6da56ba1cb686c76377f3ad

See more details on using hashes here.

File details

Details for the file ya_agent_sdk-0.58.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ya_agent_sdk-0.58.2-py3-none-any.whl
Algorithm Hash digest
SHA256 366789a44079172678434fe6797beea0284906faebeb00de52bde043a715e180
MD5 4efa38a9d0006e7c513457a922eacc0c
BLAKE2b-256 d6602380f093ecf0d592df8e6060c0d80952fbc47b9a8775ce90b77870aa8501

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page