A very light weight library to create and run agent with tools, with any LLM supported openai spec, Claude, Mistral.
Project description
Introduction to AvaChain
Welcome to AvaChain! This powerful framework enables you to build intelligent AI agents that can seamlessly interact with various tools and APIs. Whether you're building a simple chatbot or a complex AI assistant, AvaChain provides the building blocks you need.
What is AvaChain?
AvaChain is a Python framework that combines the power of Large Language Models (LLMs) with custom tools and APIs. It provides:
- Flexible Agent Architecture: Build AI agents that can use multiple tools and make decisions
- Tool Integration Framework: Easily create and integrate custom tools
- Multiple LLM Support: Work with OpenAI, Anthropic Claude, and Mistral AI models
- Streaming Responses: Real-time response streaming for better user experience
- Text-to-Speech Integration: Built-in support for various TTS providers
- Plugin System: Publish and share tools through the AvaChain store
Quick Start
Get started with AvaChain in minutes:
from avachain import AvaAgent, OpenaiLLM, BaseTool
# Initialize your LLM
llm = OpenaiLLM(api_key="your-api-key")
# Create an agent
agent = AvaAgent(
sys_prompt="You are a helpful assistant",
ava_llm=llm,
logging=True
)
# Run the agent
response = agent.run("Hello! Can you help me?")
Key Features
Tool Creation
Build custom tools easily:
from avachain import BaseTool
from pydantic import BaseModel, Field
class MyToolInput(BaseModel):
query: str = Field(description="Input query")
class MyTool(BaseTool):
name = "my_tool"
description = "A custom tool"
args_schema = MyToolInput
def _run(self, query: str):
return f"Processed: {query}"
Real-time Streaming
Enable streaming responses for real-time interaction:
agent = AvaAgent(
sys_prompt="Your prompt",
ava_llm=llm,
streaming=True
)
Use Cases
AvaChain is perfect for:
- AI Assistants: Build conversational agents that can perform tasks
- Tool Integration: Connect AI models with external services and APIs
- Task Automation: Create agents that can execute complex workflows
- Voice Applications: Build voice-enabled AI applications
- Plugin Development: Create and share reusable AI tools
Why AvaChain?
Flexible Architecture
AvaChain's modular design allows you to:
- Add custom tools easily
- Configure agents for specific use cases
- Scale from simple to complex applications
Developer Experience
We focus on making development smooth with:
- Clear API design
- Comprehensive documentation
- Easy-to-follow examples
- Built-in debugging tools
Production Ready
AvaChain is built for production use with:
- Robust error handling
- Streaming support for better UX
- Performance optimizations
- Extensive logging options
Getting Started
Ready to build with AvaChain? Check out our guides:
We welcome contributions!
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 avachain-0.0.2.tar.gz.
File metadata
- Download URL: avachain-0.0.2.tar.gz
- Upload date:
- Size: 23.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6f110f578317889d431c5be27773cc60dfb054e83f4f74270cd1549886f6794
|
|
| MD5 |
b241dadb2b119d8c22d37d74045639e2
|
|
| BLAKE2b-256 |
4a2d40e6224eb79023e4bee7303edcef928873e15ffef7a0ac2a2d84337b4780
|
File details
Details for the file avachain-0.0.2-py3-none-any.whl.
File metadata
- Download URL: avachain-0.0.2-py3-none-any.whl
- Upload date:
- Size: 24.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26bba2280a950534ab898d1fc8a3cbe695587cb796694159cc06083d751c4ffb
|
|
| MD5 |
affc9b7109b9c97b109f229849391e26
|
|
| BLAKE2b-256 |
8300dfd5c0b2ecad985b57d14dd06bfa01b99b164cc5488f004def2eb668c82c
|