split llm.rs into a module with separate client and history submodules. ConversationHistory holds an optional system prompt plus a FIFO of user/ assistant turns capped at max_turns; oldest turns evict on overflow, system prompt is preserved across truncation and clear().
8 lines
209 B
Rust
8 lines
209 B
Rust
mod client;
|
|
mod history;
|
|
|
|
pub use client::{
|
|
ChatMessage, ConfigError, LlmClient, LlmError,
|
|
DEFAULT_BASE_URL, DEFAULT_MODEL, ENV_BASE_URL, ENV_MODEL, ENV_TOKEN,
|
|
};
|
|
pub use history::ConversationHistory;
|