LazyBoy2/crates/grokboy-core/src/lib.rs

18 lines
678 B
Rust
Raw Normal View History

//! GrokBoy core: config, streaming chat, tools, ReAct agent, sessions.
mod agent;
mod config;
mod model;
mod session;
mod tools;
pub use agent::{
AGENT_SYSTEM, AgentVerdict, DEFAULT_CONTEXT_CHARS, DEFAULT_MAX_ROUNDS, LOOP_GUARD_REPEAT,
context_char_budget, message_char_len, messages_char_len, round_signature, run_agent,
run_agent_with, tool_call_signature, truncate_messages,
};
pub use config::Config;
pub use model::{ChatMessage, FunctionCall, Role, ToolCall, chat_completion, stream_chat};
pub use session::{Session, load_or_create, load_session, save_session, sessions_dir};
pub use tools::{ToolContext, execute_tool, is_completion_tool, tool_definitions};