pub(crate) struct UpdateRequest {Show 13 fields
agent: String,
description: Option<String>,
icon: Option<String>,
auto_start: Option<bool>,
restart_on_crash: Option<bool>,
idle_timeout_minutes: Option<i64>,
route: Option<String>,
model: Option<String>,
effort: Option<String>,
spend_cap_usd: Option<Value>,
reset_spend_today: Option<bool>,
fresh: Option<bool>,
handoff: Option<String>,
}Expand description
A field outside the list above is refused by name (deny_unknown_fields), never ignored.
Fields§
§agent: StringThe agent’s id, slug or name.
description: Option<String>§icon: Option<String>§auto_start: Option<bool>§restart_on_crash: Option<bool>§idle_timeout_minutes: Option<i64>§route: Option<String>"" takes the agent off its model route (its token stops working at once); the route it is on, or only
model, changes its model on that route.
model: Option<String>On a model route: the model on that route. Otherwise (a Claude or Codex agent on its own login): its model, as
the pane’s picker sets it (agent_runtime_pick).
effort: Option<String>The agent’s effort, as the pane’s picker sets it; Claude agents not on a route.
spend_cap_usd: Option<Value>Dollars a day through the model gateway: a number, or 0 / “none” for no cap.
reset_spend_today: Option<bool>Zero the agent’s spend counted for today.
fresh: Option<bool>With route or model on a model route: start a new session on the new model instead of resuming the
conversation, with handoff as its first message.
handoff: Option<String>With fresh: what the next session must know. Empty: it reads its task list.
Trait Implementations§
Source§impl Clone for UpdateRequest
impl Clone for UpdateRequest
Source§fn clone(&self) -> UpdateRequest
fn clone(&self) -> UpdateRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateRequest
impl Debug for UpdateRequest
Source§impl<'de> Deserialize<'de> for UpdateRequest
impl<'de> Deserialize<'de> for UpdateRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for UpdateRequest
impl RefUnwindSafe for UpdateRequest
impl Send for UpdateRequest
impl Sync for UpdateRequest
impl Unpin for UpdateRequest
impl UnsafeUnpin for UpdateRequest
impl UnwindSafe for UpdateRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more