Thanks to visit codestin.com
Credit goes to lib.rs

#run-time #agent #retry #error #message

erio-core

Core types, traits, and error handling for the Erio agent runtime

1 unstable release

Uses new Rust 2024

new 0.1.0 Feb 17, 2026

#1031 in Rust patterns


Used in 3 crates

Apache-2.0

30KB
689 lines

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

Dependencies

~5.5–8.5MB
~79K SLoC