Skip to main content

Overview

PiCrust provides a comprehensive set of features for building intelligent, autonomous agents.

Multi-LLM Provider Support

PiCrust supports multiple LLM providers out of the box:
Full support for Claude models including Claude 3.5 Sonnet and Claude 3 Opus.
Integration with Google’s Gemini models for diverse AI capabilities.

Built-in Tool System

Agents can use various tools to interact with their environment:

File Operations

  • Read Files: Read content from local files
  • Write Files: Create or update files
  • Glob Patterns: Search for files using glob patterns
  • Grep Search: Search file contents with regex patterns

System Integration

  • Bash Execution: Run shell commands
  • Environment Variables: Access system environment
  • Process Management: Manage subprocess execution

Model Context Protocol (MCP)

MCP Support

Connect to MCP servers to extend agent capabilities with custom tools and resources.
Benefits of MCP:
  • Extensibility: Add custom tools without modifying the SDK
  • Standardization: Use the industry-standard protocol
  • Modularity: Mix and match different MCP servers

Async Runtime

Built on Tokio for high-performance async operations:

Logging & Observability

Comprehensive logging with tracing:
Configure log levels:

Type Safety

Leverage Rust’s type system for reliable agent behavior:
  • Compile-time Guarantees: Catch errors before runtime
  • Zero-cost Abstractions: High-level APIs with no performance penalty
  • Memory Safety: No data races or memory leaks

Session Management

Built-in conversation and session handling:

Error Handling

Rich error types with anyhow and thiserror:

Performance

  • Async I/O: Non-blocking operations
  • Connection Pooling: Efficient API request handling
  • Stream Processing: Handle large responses efficiently
  • Zero-copy Serialization: Minimal overhead

Next Steps

Core Concepts

Understand agent architecture

API Reference

Explore the API