Skip to main content

Astra Runtime - Embedded server for running AI agents

Project description

Astra Runtime

Embedded server for running AI agents.

Installation

pip install astra-runtime

Quick Start

from runtime import AstraServer
from framework import Agent

# Create your agent
my_agent = Agent(
    name="assistant",
    model=...,
    system_prompt="You are a helpful assistant.",
)

# Create server
server = AstraServer(
    agents=[my_agent],
)

# Get FastAPI app
app = server.get_app()

Then run with:

uvicorn main:app --reload

API Endpoints

Endpoint Method Description
/health GET Health check
/agents GET List agents
/agents/{id} GET Get agent
/agents/{id}/run POST Run agent
/teams GET List teams
/teams/{id}/run POST Run team
/threads POST Create thread
/threads/{id}/messages GET Get messages
/chat/stream POST Stream response (SSE)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astra_server-0.1.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file astra_server-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: astra_server-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for astra_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3348b20cbe26677b097bee72f837a63259fac286da7168454fd98776efa7140b
MD5 49c16abbfcdcc6afc3fef17414811779
BLAKE2b-256 f47b42d02af188286589d03ee14db0d96dbab55199cfe6a589f782e0ad71b2a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page