Skip to main content

Astra Framework - Core APIs and abstractions for building AI agents, teams, RAG pipelines, and workflows

Project description

Astra Framework

🧠 Core framework for building AI agents, teams, and RAG pipelines.

This is the foundational layer of Astra - providing all the building blocks for intelligent AI applications.

Installation

pip install astra-framework

Optional Dependencies

# With MongoDB support
pip install astra-framework[mongodb]

# With AWS Bedrock support
pip install astra-framework[aws]

# Everything
pip install astra-framework[all]

Features

Component Description
🤖 Agents Intelligent agents with tools, memory, and context
📚 RAG Retrieval-Augmented Generation pipelines
🗄️ Storage LibSQL, MongoDB backends
🛡️ Guardrails PII filtering, content moderation, injection detection
🔧 Tools Function calling with @tool decorator
👥 Teams Multi-agent collaboration and delegation
💾 Memory Short-term and long-term agent memory
🔌 Middleware Input/output processing pipelines

Model Support

  • Google Gemini
  • OpenAI GPT
  • AWS Bedrock (Claude, etc.)
  • HuggingFace Local Models

Quick Example

from framework.agents import Agent, tool
from framework.models import Gemini

@tool
def get_weather(city: str) -> str:
    """Get weather for a city."""
    return f"Sunny in {city}"

agent = Agent(
    model=Gemini("gemini-2.0-flash"),
    instructions="You are a helpful assistant",
    tools=[get_weather]
)

response = await agent.invoke("What's the weather in Tokyo?")

Documentation

See examples for comprehensive examples.

Related Packages

  • astra-runtime: High-level runtime with embedded mode and FastAPI server
  • astra-observability: Tracing, metrics, and logging

License

MIT License

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_framework-0.1.0.tar.gz (123.6 kB view details)

Uploaded Source

Built Distribution

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

astra_framework-0.1.0-py3-none-any.whl (165.4 kB view details)

Uploaded Python 3

File details

Details for the file astra_framework-0.1.0.tar.gz.

File metadata

  • Download URL: astra_framework-0.1.0.tar.gz
  • Upload date:
  • Size: 123.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for astra_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7969fedfc395edd0a2c40947ba91c52f5c7fb02ffdd06870a26c4b8c3c02b1fd
MD5 9ace7b18f92cea46527f1dcb815f361b
BLAKE2b-256 5caebb377280c04d74a3dfd09516df77589c889e30e60d55fe42608392d7754d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for astra_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7f621ccb6535e7f820150a15e2ede096760bac44ebb1f4f055f707612c8d4ef
MD5 55ec28ee5e24a511095aaf7ebc49f18a
BLAKE2b-256 90a7542d384d9ce8158fd4ff2aec51283327a850f9d38280a7003d19cb6866c5

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