pub enum AgentInvokeResponse {
Completed(AgentCompletedResponse),
Pending(AgentPendingResponse),
}Expand description
A non-streaming Agent invocation response.
The frozen wire schema has no status property. Deserialization therefore
distinguishes a completed payload from a pending payload using their
mutually exclusive documented fields.
Variants§
Completed(AgentCompletedResponse)
Completed result with generated choices.
Pending(AgentPendingResponse)
Accepted asynchronous invocation.
Implementations§
Trait Implementations§
Source§impl Clone for AgentInvokeResponse
impl Clone for AgentInvokeResponse
Source§fn clone(&self) -> AgentInvokeResponse
fn clone(&self) -> AgentInvokeResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentInvokeResponse
impl Debug for AgentInvokeResponse
Source§impl<'de> Deserialize<'de> for AgentInvokeResponse
impl<'de> Deserialize<'de> for AgentInvokeResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentInvokeResponse
impl RefUnwindSafe for AgentInvokeResponse
impl Send for AgentInvokeResponse
impl Sync for AgentInvokeResponse
impl Unpin for AgentInvokeResponse
impl UnsafeUnpin for AgentInvokeResponse
impl UnwindSafe for AgentInvokeResponse
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