Crate ai_agent

Crate ai_agent 

Source
Expand description

AI-Native Code Agent

A minimal, AI-native code assistant that maximizes AI autonomy while providing reliable execution capabilities.

§Features

  • AI-Native Design: Built from the ground up for AI autonomy
  • Multiple AI Models: Support for OpenAI, Anthropic, Zhipu, and local models
  • Tool System: Extensible tool system for file operations, command execution, etc.
  • Service Architecture: Optional HTTP service with REST API (requires “service” feature)
  • Metrics & Monitoring: Comprehensive metrics and health checking (requires “service” feature)

Re-exports§

pub use agent::CodeAgent;
pub use config::AgentConfig;
pub use models::LanguageModel;
pub use tools::Tool;
pub use errors::AgentError;
pub use types::*;

Modules§

agent
Core AI-Native Code Agent implementation
cli
Command Line Interface for the AI-Native Code Agent
config
Configuration management for the AI-Native Code Agent
errors
Error types for the AI-Native Code Agent
execution
Execution Engine - AI-powered task execution
models
Language model abstraction and implementations
tools
Tool system for the AI-Native Code Agent
types
Core type definitions for the AI-Native Code Agent
understanding
Understanding Engine - AI-powered task analysis