Machi - A Rust framework for building AI agents
This crate provides a lightweight, ergonomic framework for building AI agents that can use tools and interact with language models.
Quick Start
use *;
async
Architecture
The framework is organized into several layers:
- Message Types (
message): Core types for chat messages - Provider Trait (
provider): Abstraction for LLM providers - LLM Backends (
llms): Implementations for OpenAI, Ollama, etc. - Tool System (
tool): Framework for defining and executing tools - Agent (
agent): High-level agent abstraction (coming soon)