vv_agent/prompt/builder/
options.rs1use std::collections::BTreeMap;
2use std::path::PathBuf;
3
4use serde_json::Value;
5
6#[derive(Debug, Clone, PartialEq, Eq)]
7pub struct BuiltSystemPrompt {
8 pub prompt: String,
9 pub sections: Vec<Value>,
10 pub stable_hash: String,
11}
12
13#[derive(Clone)]
14pub struct BuildSystemPromptOptions {
15 pub language: String,
16 pub allow_interruption: bool,
17 pub use_workspace: bool,
18 pub enable_todo_management: bool,
19 pub agent_type: Option<String>,
20 pub available_sub_agents: BTreeMap<String, String>,
21 pub available_skills: Option<Value>,
22 pub workspace: Option<PathBuf>,
23 pub current_time_utc: Option<String>,
24 pub session_memory_enabled: bool,
25 pub session_memory_context: String,
26}
27
28impl Default for BuildSystemPromptOptions {
29 fn default() -> Self {
30 Self {
31 language: "en-US".to_string(),
32 allow_interruption: true,
33 use_workspace: true,
34 enable_todo_management: true,
35 agent_type: None,
36 available_sub_agents: BTreeMap::new(),
37 available_skills: None,
38 workspace: None,
39 current_time_utc: None,
40 session_memory_enabled: false,
41 session_memory_context: String::new(),
42 }
43 }
44}