stdiobus-core
Core types and protocol models for stdio_bus - the AI agent transport layer.
This crate provides shared types, error definitions, and protocol models used by other stdiobus crates.
Installation
[]
= "1.0"
Contents
BusConfig,PoolConfig,LimitsConfig- Typed configuration matching C bus JSON schemaConfigSource- Configuration source enum (programmatic or file path)Error- Comprehensive error types withis_retryable()supportErrorCode- Error code enumeration matching C library codesBusState- Bus lifecycle states (Created, Starting, Running, Stopping, Stopped)BusStats- Runtime statisticsMessage- JSON-RPC message typesgenerate_client_session_id()- Generate unique session IDs for routing
Usage
Most users should use stdiobus-client instead of this crate directly.
use ;
// Generate a client session ID for routing
let session_id = generate_client_session_id;
// Check if an error is retryable
match some_operation
License
Apache-2.0