pub struct AgentOutcome {
pub text: String,
pub usage: Option<AgentUsage>,
}Expand description
What a finished run hands back.
Fields§
§text: StringThe agent’s final answer. When the request carried a schema, this is the JSON text of a value meant to satisfy it.
usage: Option<AgentUsage>What the run cost, as far as the provider knows. Recorded in the call log; the engine charges nothing for it.
Trait Implementations§
Source§impl Clone for AgentOutcome
impl Clone for AgentOutcome
Source§impl Debug for AgentOutcome
impl Debug for AgentOutcome
Source§impl<'de> Deserialize<'de> for AgentOutcome
impl<'de> Deserialize<'de> for AgentOutcome
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
impl Eq for AgentOutcome
Source§impl PartialEq for AgentOutcome
impl PartialEq for AgentOutcome
Source§impl Serialize for AgentOutcome
impl Serialize for AgentOutcome
impl StructuralPartialEq for AgentOutcome
Auto Trait Implementations§
impl Freeze for AgentOutcome
impl RefUnwindSafe for AgentOutcome
impl Send for AgentOutcome
impl Sync for AgentOutcome
impl Unpin for AgentOutcome
impl UnsafeUnpin for AgentOutcome
impl UnwindSafe for AgentOutcome
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.