Skip to main content

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.

Offical Documentation

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


Download files

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

Source Distribution

avachain-0.0.3.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

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

avachain-0.0.3-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file avachain-0.0.3.tar.gz.

File metadata

  • Download URL: avachain-0.0.3.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for avachain-0.0.3.tar.gz
Algorithm Hash digest
SHA256 22bff3da32d5eddc24c9da24d3cbab8f842c0a88302e54352bf6ee089d4bc584
MD5 f994ab3879ea69696ccf8a293ab39b9d
BLAKE2b-256 95a5c21c56ce63467ae5ca4684fae64e463db6b0481d80bf802e5a971c3f22fa

See more details on using hashes here.

File details

Details for the file avachain-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: avachain-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for avachain-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4621148783f0fbced9690355defa19224ac8f4aba490c2ec56c23c73132561f7
MD5 b394da741fec5286bf15e89bec482d7a
BLAKE2b-256 879269c2b9b46e2a8920d1905099cb64e0a32932a6265aef37aea50e7997bd40

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