Skip to main content

Crate erio_core

Crate erio_core 

Source
Expand description

§erio-core

erio-core provides shared runtime primitives for Erio crates: message types, retry configuration, and common error variants.

It is the lowest-level dependency in the workspace and is designed to stay small and stable so higher-level crates (erio-tools, erio-llm-client, erio-workflow, and others) can compose on top of it.

§Quickstart

use erio_core::{Message, RetryConfig};

let _system = Message::system("You are a helpful assistant.");
let _user = Message::user("Summarize this text.");

let _retry = RetryConfig::builder().max_attempts(3).build();

§API tour

  • Key types: Message, Content, Role, ToolCall
  • Error/config: CoreError, ToolError, RetryConfig
  • Modules: config, error, message

§Compatibility

  • MSRV: Rust 1.93
  • License: Apache-2.0 Erio Core - Core types, traits, and error handling for the agent runtime.

Re-exports§

pub use config::RetryConfig;
pub use error::CoreError;
pub use error::ToolError;
pub use message::Content;
pub use message::Message;
pub use message::Role;
pub use message::ToolCall;

Modules§

config
Configuration types for the Erio agent runtime.
error
Error types for the Erio agent runtime.
message
Message types for LLM conversations.