2026-09-13 07:42:59 +00:00
|
|
|
//! GrokBoy core: config, streaming chat, tools, ReAct agent, sessions.
|
2026-09-13 07:25:02 +00:00
|
|
|
|
2026-09-13 07:42:59 +00:00
|
|
|
mod agent;
|
2026-09-13 07:57:57 +00:00
|
|
|
mod browser;
|
2026-09-13 07:25:02 +00:00
|
|
|
mod config;
|
|
|
|
|
mod model;
|
2026-09-13 07:42:59 +00:00
|
|
|
mod session;
|
|
|
|
|
mod tools;
|
2026-09-13 07:25:02 +00:00
|
|
|
|
2026-09-13 07:51:13 +00:00
|
|
|
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,
|
|
|
|
|
};
|
2026-09-13 07:57:57 +00:00
|
|
|
pub use browser::{INSTALL_HINT as BROWSER_INSTALL_HINT, browser_oneshot, browser_self_test, find_helper_script};
|
2026-09-13 07:25:02 +00:00
|
|
|
pub use config::Config;
|
2026-09-13 07:42:59 +00:00
|
|
|
pub use model::{ChatMessage, FunctionCall, Role, ToolCall, chat_completion, stream_chat};
|
|
|
|
|
pub use session::{Session, load_or_create, load_session, save_session, sessions_dir};
|
2026-09-13 07:51:13 +00:00
|
|
|
pub use tools::{ToolContext, execute_tool, is_completion_tool, tool_definitions};
|