pub struct AgentChoice {
pub index: Option<i64>,
pub messages: Option<Vec<AgentResponseMessage>>,
pub finish_reason: Option<String>,
}Expand description
One invocation result choice.
Fields§
§index: Option<i64>Result index.
messages: Option<Vec<AgentResponseMessage>>Generated response messages.
finish_reason: Option<String>Service-provided finish reason.
Trait Implementations§
Source§impl Clone for AgentChoice
impl Clone for AgentChoice
Source§fn clone(&self) -> AgentChoice
fn clone(&self) -> AgentChoice
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 AgentChoice
impl Debug for AgentChoice
Source§impl<'de> Deserialize<'de> for AgentChoice
impl<'de> Deserialize<'de> for AgentChoice
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 AgentChoice
impl RefUnwindSafe for AgentChoice
impl Send for AgentChoice
impl Sync for AgentChoice
impl Unpin for AgentChoice
impl UnsafeUnpin for AgentChoice
impl UnwindSafe for AgentChoice
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