Skip to main content

Xiaoyu Agent SDK

Python 3.11+ host API for the Xiaoyu workspace execution engine. The SDK runs in your process and depends on the exact same version of xiaoyu-agent.

from pathlib import Path
from xiaoyu_agent_sdk import ModelOptions, SessionOptions, run

result = run("Explain this project", SessionOptions(
    model=ModelOptions(model="your-model", api_key="your-key"),
    workspace=Path.cwd(),
))
print(result.text)

Model credentials are explicit. Mutating tools require host approval by default. Use Session for multiple turns, AsyncSession for async applications, and OutputSpec for validated JSON results with bounded repair attempts.

See SDK guide for ownership, approval, streaming, structured output, extension and persistence contracts.

Metadata

Release files for xiaoyu-agent-sdk 0.60.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for xiaoyu-agent-sdk 0.60.0
File Interpreter ABI Platform
xiaoyu_agent_sdk-0.60.0-py3-none-any.whl Python 3 none any Details

Release files / xiaoyu_agent_sdk-0.60.0-py3-none-any.whl

Download URL xiaoyu_agent_sdk-0.60.0-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
937e3b705e67c12553a5980977d3ed9065939c3e1d31c2ac9d8c1cf2f92e039f
BLAKE2b-256 checksum
How to use checksums
1c9568f6e818627b9deeca61a1dc2c091d8041ae7845bbbe2cb8e7742c891919
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.60.0 This release

1 release file

0.59.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page