pub enum AgentAsyncResult {
Pending {
agent_id: String,
async_id: String,
},
Success {
agent_id: String,
async_id: String,
choices: Vec<AgentAsyncChoice>,
usage: Option<AgentAsyncUsage>,
},
Failed {
agent_id: String,
async_id: String,
},
}Expand description
Response from POST /v1/agents/async-result.
Variants§
Pending
Task is still processing.
Success
Task completed with non-empty choices.
Fields
§
choices: Vec<AgentAsyncChoice>Non-empty task choices.
§
usage: Option<AgentAsyncUsage>Optional token usage.
Failed
Task failed without a success payload.
Implementations§
Trait Implementations§
Source§impl Clone for AgentAsyncResult
impl Clone for AgentAsyncResult
Source§fn clone(&self) -> AgentAsyncResult
fn clone(&self) -> AgentAsyncResult
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 AgentAsyncResult
impl Debug for AgentAsyncResult
Source§impl<'de> Deserialize<'de> for AgentAsyncResult
impl<'de> Deserialize<'de> for AgentAsyncResult
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 AgentAsyncResult
impl RefUnwindSafe for AgentAsyncResult
impl Send for AgentAsyncResult
impl Sync for AgentAsyncResult
impl Unpin for AgentAsyncResult
impl UnsafeUnpin for AgentAsyncResult
impl UnwindSafe for AgentAsyncResult
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