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-server

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 Distribution

astra_server-0.1.1.tar.gz (22.9 kB view details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file astra_server-0.1.1.tar.gz.

File metadata

  • Download URL: astra_server-0.1.1.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • 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.1.tar.gz
Algorithm Hash digest
SHA256 4b4b8975c8a780ea9f2389db6cf650cd330d95d6a0ee91253386253cd96f290d
MD5 df3c704216dba7f97c1fe42bbcd0e405
BLAKE2b-256 7cac3fc7a7ec85e11310a62027e6473025a71f4cabc4d5edf7cbb8b821dd9905

See more details on using hashes here.

File details

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

File metadata

  • Download URL: astra_server-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4104d157c8714fcf2bb0264846bcf81bb59dae57de0cab05a7aa10a7f610d836
MD5 d7c3d1c40ebc296a34cbccaee26b89de
BLAKE2b-256 022d174be20aac35fd946c0621bfa47f44d976cad7a2d95453b48cc8ff91f3b7

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