#[non_exhaustive]pub struct AgentAnswer {
pub text: String,
pub cost: Option<f64>,
pub conversation: Option<String>,
}Expand description
What an agent answered.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringIts answer, in words.
cost: Option<f64>What the answer cost, when the agent says.
conversation: Option<String>The conversation the work was done in, when the agent says: it is told again if the work comes back.
Implementations§
Source§impl AgentAnswer
impl AgentAnswer
Trait Implementations§
Source§impl Clone for AgentAnswer
impl Clone for AgentAnswer
Source§impl Debug for AgentAnswer
impl Debug for AgentAnswer
Source§impl<'de> Deserialize<'de> for AgentAnswer
impl<'de> Deserialize<'de> for AgentAnswer
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
Source§impl PartialEq for AgentAnswer
impl PartialEq for AgentAnswer
Source§impl Serialize for AgentAnswer
impl Serialize for AgentAnswer
impl StructuralPartialEq for AgentAnswer
Auto Trait Implementations§
impl Forget for AgentAnswer
impl Freeze for AgentAnswer
impl Move for AgentAnswer
impl RefUnwindSafe for AgentAnswer
impl Send for AgentAnswerwhere
RawVecInner: Send,
impl Sync for AgentAnswerwhere
RawVecInner: Sync,
impl Unpin for AgentAnswer
impl UnsafeUnpin for AgentAnswer
impl UnwindSafe for AgentAnswerwhere
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