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.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ariacompute_agent-1.0.0.tar.gz | 14.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ariacompute_agent-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.7 kB
Release files / ariacompute_agent-1.0.0.tar.gz
| Download URL | ariacompute_agent-1.0.0.tar.gz |
|---|---|
| Size | 14.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c80cc7b88253685f2f4461aae2f4b7ad5ea850c906a72b9c4ac5c13e46de72ca
|
|
BLAKE2b-256 checksum How to use checksums |
92a8abeec671d91b5d90ddbeb33d3157fac1c4986b1e9d8a9cd1865961dd4789
|
| 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-1.0.0-py3-none-any.whl
| Download URL | ariacompute_agent-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea96f3ec8d85eb1c80362873949c228149b8ecf3577369aaf5d8c6ad2a7120a9
|
|
BLAKE2b-256 checksum How to use checksums |
07645f929717f79b3ac479554e666b68f4f2fb7bb71ade79f80053317accf4cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|