pub struct AgentUpdate {
pub name: Option<String>,
pub description: Option<String>,
pub prompts: Option<Map<String, Value>>,
pub model: Option<AgentModelConfigInput>,
pub specs: Option<Vec<Map<String, Value>>>,
pub approval_required_tools: Option<Vec<String>>,
pub auto_approve_tools: Option<Vec<String>>,
pub knowledge_base_id: Option<String>,
pub knowledge_base_ids: Option<Vec<String>>,
pub workspace_id: Option<String>,
pub visibility: Option<AgentUpdateVisibility>,
}Expand description
Body for PUT /api/v1/agents/{agentId}. Every field optional — an omitted field means NO
CHANGE, not ‘clear it’. model and fallback_model are accepted and ignored (see the model
lockdown).
Fields§
§name: Option<String>§description: Option<String>§prompts: Option<Map<String, Value>>§model: Option<AgentModelConfigInput>§specs: Option<Vec<Map<String, Value>>>Sending this field REPLACES the stored list; it is not merged. A PATCH carrying one id leaves the agent with exactly that one — read the current value and send the full set. The incoming list is normalised and persisted whole; the previous list is consulted only to keep permission-grant timestamps stable for SPECs that were already installed.
approval_required_tools: Option<Vec<String>>Sending this field REPLACES the stored list; it is not merged. A PATCH carrying one id leaves the agent with exactly that one — read the current value and send the full set.
auto_approve_tools: Option<Vec<String>>Sending this field REPLACES the stored list; it is not merged. A PATCH carrying one id leaves the agent with exactly that one — read the current value and send the full set.
knowledge_base_id: Option<String>§knowledge_base_ids: Option<Vec<String>>Sending this field REPLACES the stored list; it is not merged. A PATCH carrying one id
leaves the agent with exactly that one — read the current value and send the full set. Note
the legacy singular knowledge_base_id is UNIONED with this array within the same request —
the server-side helper is named mergeKbIds for that reason, and merges the two REQUEST
fields, never the request with what is stored.
workspace_id: Option<String>§visibility: Option<AgentUpdateVisibility>Trait Implementations§
Source§impl Clone for AgentUpdate
impl Clone for AgentUpdate
Source§fn clone(&self) -> AgentUpdate
fn clone(&self) -> AgentUpdate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more