pub struct ProviderSwitchedPayload {
pub from: String,
pub to: String,
pub reason: String,
pub task: String,
}Expand description
A model call that went to a different provider than the session’s call before it.
Fields§
§from: String§to: String§reason: StringWhy each provider before to in the order did not take the call; when
none was passed over, that to can take calls again.
task: Stringmain, subagent, compact, memory, title, web_search,
web_fetch.
Trait Implementations§
Source§impl Clone for ProviderSwitchedPayload
impl Clone for ProviderSwitchedPayload
Source§impl Debug for ProviderSwitchedPayload
impl Debug for ProviderSwitchedPayload
Source§impl JsonSchema for ProviderSwitchedPayload
impl JsonSchema for ProviderSwitchedPayload
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for ProviderSwitchedPayload
impl Freeze for ProviderSwitchedPayload
impl Move for ProviderSwitchedPayload
impl RefUnwindSafe for ProviderSwitchedPayload
impl Send for ProviderSwitchedPayloadwhere
RawVecInner: Send,
impl Sync for ProviderSwitchedPayloadwhere
RawVecInner: Sync,
impl Unpin for ProviderSwitchedPayload
impl UnsafeUnpin for ProviderSwitchedPayload
impl UnwindSafe for ProviderSwitchedPayloadwhere
RawVecInner: UnwindSafe,
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
Mutably borrows from an owned value. Read more