agent_diva_agent/
runtime_control.rs1use crate::tool_config::network::NetworkToolConfig;
2use agent_diva_core::config::MCPServerConfig;
3use std::collections::HashMap;
4
5#[derive(Debug)]
6pub enum RuntimeControlCommand {
7 UpdateNetwork(NetworkToolConfig),
8 UpdateMcp {
9 servers: HashMap<String, MCPServerConfig>,
10 },
11 StopSession {
12 session_key: String,
13 },
14 ResetSession {
15 session_key: String,
16 },
17 GetSessions {
18 reply_tx: tokio::sync::oneshot::Sender<Vec<agent_diva_core::session::SessionInfo>>,
19 },
20 GetSession {
21 session_key: String,
22 reply_tx: tokio::sync::oneshot::Sender<Option<agent_diva_core::session::store::Session>>,
23 },
24 DeleteSession {
25 session_key: String,
26 reply_tx: tokio::sync::oneshot::Sender<Result<bool, String>>,
27 },
28}