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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file astra_framework-0.1.1.tar.gz.
File metadata
- Download URL: astra_framework-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f385a93b498d24781336cee1349b8365e8b94b6bc49e994f67f258c83f025502
|
|
| MD5 |
4505ea68ffd33d559bc01fe4b7c9cc21
|
|
| BLAKE2b-256 |
9f2fb6079f7aa1e9804bd1910d701e50b355260b65d8fd1e9f81303e81577eed
|
File details
Details for the file astra_framework-0.1.1-py3-none-any.whl.
File metadata
- Download URL: astra_framework-0.1.1-py3-none-any.whl
- Upload date:
- Size: 165.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8da86ab1c1b4f5b321bb3ca15e39cc93fd11916faded817d3926701ef9c5c6ae
|
|
| MD5 |
a95af70a29ca28137bbf9e14ba8d3d0b
|
|
| BLAKE2b-256 |
5bae8a76cd2cdb62b4c890b8b52b426b343c5ed47c9acc9a2fd633143ec6305e
|