Crate universal_bot_core

Source
Expand description

Universal Bot Core - Enterprise AI Automation Framework

This crate provides the core functionality for the Universal Bot framework, including message pipelines, context management, and plugin architecture.

§Example

use universal_bot_core::{Bot, BotConfig, Message};

let config = BotConfig::builder()
    .model("anthropic.claude-opus-4-1")
    .temperature(0.1)
    .build()?;

let bot = Bot::new(config).await?;
let response = bot.process(Message::text("Hello")).await?;
println!("{}", response.content);

Re-exports§

pub use bot::Bot;
pub use bot::BotBuilder;
pub use config::BotConfig;
pub use config::BotConfigBuilder;
pub use context::Context;
pub use context::ContextManager;
pub use context::ContextStore;
pub use error::Error;
pub use error::Result;
pub use message::Message;
pub use message::MessageType;
pub use message::Response;
pub use pipeline::MessagePipeline;
pub use pipeline::PipelineStage;
pub use plugin::Plugin;
pub use plugin::PluginRegistry;

Modules§

bot
Bot implementation with AI model orchestration
config
Configuration management for Universal Bot
context
Context management for conversation state
error
Error types for Universal Bot
message
Message and response types for Universal Bot
pipeline
Message processing pipeline
plugin
Plugin system for extending bot functionality

Constants§

VERSION
Library version

Functions§

init
Initialize the library with default settings