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 1.8.2

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 1.8.2
File Size Uploaded Provenance Actions
ariacompute_agent-1.8.2.tar.gz 16.0 kB Without provenance Details for ariacompute_agent-1.8.2.tar.gz

Built distribution (wheel)

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

Total release size: 31.0 kB

Release files / ariacompute_agent-1.8.2.tar.gz

Download URL ariacompute_agent-1.8.2.tar.gz
Size 16.0 kB
Tags Source
SHA-256 checksum
How to use checksums
de0843fc6c69749f2d59bf41ecff638c662ddc9f5aabe2cf50f3c8b7d9147133
BLAKE2b-256 checksum
How to use checksums
821614d88666846d22d68720235fbf9929eb6343df385687648f90b50738c130
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

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

Download URL ariacompute_agent-1.8.2-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63a701484a4d7a4657bd6bf100c7551b7fd3a7d6ede71eaf3cfd51a82af64f30
BLAKE2b-256 checksum
How to use checksums
7f214451755f9b3d931bec2dfed0ea2b2613f8f8fe076d38347f8feeb38d5ea1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for ariacompute-agent 1.8.2

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

1.8.2 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