Skip to main content

ariacompute-agent

The Aria agent SDK for Python. The API mirrors the OpenAI Agents SDK (Agent, Runner.run, Runner.run_streamed, function_tool, Session) and talks to an aria-agent-cloud deployment through its beta Agents REST API.

pip install ariacompute-agent
import asyncio

from ariacompute_agent import Agent, Runner


async def main() -> None:
    agent = Agent(
        name="History tutor",
        instructions="Answer history questions clearly and concisely.",
        model="gpt-4o-mini",
    )
    result = await Runner.run(agent, "When did the Roman Empire fall?")
    print(result.final_output)


asyncio.run(main())

Tools

from ariacompute_agent import function_tool


@function_tool
def history_fun_fact() -> str:
    """Return a short history fact."""
    return "Sharks are older than trees."


agent = Agent(name="History tutor", tools=[history_fun_fact])

The cloud executes tools inside its own sandbox, so only the schema (name / description / parameters) is sent to the server.

Streaming

streamed = await Runner.run_streamed(agent, "Tell me something surprising")
async for ev in streamed.events:
    if ev["type"] == "agent.turn.output_text.delta":
        print(ev["delta"], end="")
result = await streamed.completed
print(result.final_output)

Frames use the agent.* envelope; agent.turn.completed (or agent.turn.failed) is the only terminal event — there is no data: [DONE] sentinel.

Sessions

session = Session.create(agent)
await Runner.run(agent, "hello", session=session)
await Runner.run(agent, "and then?", session=session)

Configuration

Option Environment variable Default
base_url ARIA_AGENT_BASE_URL http://localhost:3000
api_key ARIA_AGENT_API_KEY (none)
beta_header – agents=v1 (OpenAI-Beta)

Tests

python3 -m unittest discover -s tests

Metadata

Release files for ariacompute-agent 0.17.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 ariacompute-agent 0.17.0
File Size Uploaded
ariacompute_agent-0.17.0.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ariacompute-agent 0.17.0
File Interpreter ABI Platform
ariacompute_agent-0.17.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / ariacompute_agent-0.17.0.tar.gz

Download URL ariacompute_agent-0.17.0.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8cdf6f9ac3c3499bbbb539843f8d8709f6a5fda09853d61f78b5d84b7b6409bc
BLAKE2b-256 checksum
How to use checksums
fe7137e1a844ff6f87d731ce81e5bc7eac81726fb5c6ece867696a0d92ae5674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / ariacompute_agent-0.17.0-py3-none-any.whl

Download URL ariacompute_agent-0.17.0-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae8be283d8df81b4acdc4de34c999b75c9097c5b0fd04acbaa24e5ce264469bb
BLAKE2b-256 checksum
How to use checksums
2540e888fdfa2498dd33acfb6d8026c0ede105bfaa79ae6cf5b2b4468272d545
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release history Release notifications | RSS feed

1.6.0

2 release files

1.5.0

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.19.0

2 release files

0.18.0

2 release files

0.17.1

2 release files

This release

0.17.0 This release

2 release files

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