pub struct UpdateAgentIn {
pub compute_ref: Option<String>,
pub description: Option<String>,
pub execution_mode: Option<String>,
pub instructions: Option<String>,
pub model: Option<String>,
pub ref: Option<String>,
pub schedule: Option<String>,
pub service_account_id: Option<String>,
pub tools: Option<Vec<String>>,
}Fields§
§compute_ref: Option<String>ComputeRef re-binds (or, with "", unbinds) the visor machine. Opaque here.
description: Option<String>Description replaces the line other agents read in the tool catalogue.
execution_mode: Option<String>ExecutionMode switches between one-shot and long-running. The RESULTING mode+schedule are validated together, so switching to long-running without a stored or supplied cron is refused rather than accepted into an agent the scheduler would skip forever. A switch INTO long-running counts against the per-org cap and can be a 409.
instructions: Option<String>Instructions replaces the system prompt whole, up to 32 KiB. There is no append: a prompt is one text, and sending "" clears it.
model: Option<String>Model re-points the agent at another model, checked against the gateway’s served catalogue exactly as create checks it. Empty STRING is refused — say nothing to keep the current one. Past runs keep the model that served them.
ref: Option<String>Ref is the agent to update — its public id or org-unique name, from the path.
schedule: Option<String>Schedule replaces the cron. It is validated against the mode this update leaves behind, and dropped if that mode is one-shot.
service_account_id: Option<String>ServiceAccountID re-points (or, with "", clears) the IAM service account a scheduled run is billed as. Clearing it puts that spend back on the org.
tools: Option<Vec<String>>Tools replaces the whole allow-list, it does not add to it. Sending [] takes every tool away, which is the only way to say that.
Implementations§
Source§impl UpdateAgentIn
impl UpdateAgentIn
pub fn new() -> UpdateAgentIn
Trait Implementations§
Source§impl Clone for UpdateAgentIn
impl Clone for UpdateAgentIn
Source§fn clone(&self) -> UpdateAgentIn
fn clone(&self) -> UpdateAgentIn
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more