Skip to main content

Unmanaged Agent Python SDK

Python client for the Unmanaged Agent API.

Install

pip install unmanaged-agent

Usage

from unmanaged_agent import UnmanagedAgentClient

client = UnmanagedAgentClient("http://localhost:8000")

# Create an agent
agent = client.agents.create(
    name="coding-assistant",
    model="claude-sonnet-4-6",
    system_prompt="You are a helpful coding assistant.",
)

# Create an environment
env = client.environments.create(
    name="python-sandbox",
    sandbox_provider="e2b",
    config={"packages": ["python3"]},
)

# Create a session
session = client.sessions.create(
    agent_id=agent.id,
    environment_id=env.id,
    title="My first session",
)

# Send a message and stream the response
for event in client.sessions.send_event(
    session.id,
    type="message",
    content={"text": "Write a hello world script in Python."},
):
    print(event["event"], event["data"])

# Fetch event history
events = client.sessions.list_events(session.id)

Async

import asyncio
from unmanaged_agent import AsyncUnmanagedAgentClient

async def main():
    async with AsyncUnmanagedAgentClient("http://localhost:8000") as client:
        agent = await client.agents.create(
            name="coding-assistant",
            model="claude-sonnet-4-6",
        )

        env = await client.environments.create(
            name="python-sandbox",
            sandbox_provider="e2b",
        )

        session = await client.sessions.create(
            agent_id=agent.id,
            environment_id=env.id,
        )

        async for event in client.sessions.send_event(
            session.id,
            type="message",
            content={"text": "Hello!"},
        ):
            print(event["event"], event["data"])

asyncio.run(main())

Metadata

Release files for unmanaged-agent 0.1.0

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

Source distribution (sdist)

Source distribution for unmanaged-agent 0.1.0
File Size Uploaded Provenance Actions
unmanaged_agent-0.1.0.tar.gz 38.7 kB Without provenance Details for unmanaged_agent-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for unmanaged-agent 0.1.0
File Interpreter ABI Platform Actions
unmanaged_agent-0.1.0-py3-none-any.whl Python 3 none any Details for unmanaged_agent-0.1.0-py3-none-any.whl

Total release size: 43.2 kB

Release files / unmanaged_agent-0.1.0.tar.gz

Download URL unmanaged_agent-0.1.0.tar.gz
Size 38.7 kB
Tags Source
SHA-256 checksum
How to use checksums
114c9c3c82ff565d832c2ca30b09361b2aa14518df62eb4afbb24bbee1f82185
BLAKE2b-256 checksum
How to use checksums
e52c78e958b0b89753cf1bd3c4c56731fc60ab7e6abc9f61b520651e2d9a47df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / unmanaged_agent-0.1.0-py3-none-any.whl

Download URL unmanaged_agent-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2df22df4e303082fe73b7a4e9444e2870c7a7a8c62e27b4a0c2dd2610dad70c3
BLAKE2b-256 checksum
How to use checksums
a7361de39bee8745a71b248912d64ee83778cce2c13c689f90864eecf162d736
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for unmanaged-agent 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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