Skip to main content

Crate agent_core_runtime

Crate agent_core_runtime 

Source
Expand description

Agent Core Runtime

Core runtime for building LLM-powered agents. This crate provides the engine layer without any TUI dependencies.

This crate provides:

§Agent Infrastructure

  • Message types for Frontend-Controller communication
  • Input routing
  • Logging infrastructure
  • Configuration management
  • Base agent trait for building custom agents

§LLM Client

  • Provider-agnostic LLM client interface
  • Anthropic, OpenAI, Gemini, Cohere, and Bedrock provider implementations
  • HTTP client utilities

§LLM Controller

  • Controller logic for managing LLM interactions
  • Session management and compaction
  • Tool execution framework
  • Permission and user interaction registries

§Permission System

  • Grant-based permission model
  • Batch permission requests
  • Permission registry for runtime management

Modules§

agent
Agent infrastructure and configuration. Agent Infrastructure
client
LLM client interface and provider implementations. LLM client with provider-agnostic interface.
controller
LLM session controller and tool execution. LLM session controller and tool execution framework.
permissions
Permission system for controlling agent access to resources. Permission system for controlling agent access to resources.