Expand description
Dialog loop and conversation management module Dialog loop and conversation management module
This module implements the main conversation loop, handling user input, command execution, and interaction flow with Claude.
§Examples
use claude_dialog::dialog::{DialogConfig, DialogLoop};
let config = DialogConfig {
system_prompt: Some("You are a helpful assistant.".to_string()),
append_prompt: None,
model: Some("claude-3-opus".to_string()),
};
let dialog = DialogLoop::new(config);
dialog.run().await?;
Structs§
- Dialog
Config - Configuration for the dialog loop
- Dialog
Loop - Main dialog loop for interactive conversations with Claude