pub struct AgentTurnResponse {
pub interaction_id: String,
pub model: String,
pub text: String,
pub tool_call: Option<AgentToolCall>,
pub usage: TokenUsage,
}Expand description
Normalized result of one Gemini text/tool interaction.
Fields§
§interaction_id: StringGemini interaction identifier.
model: StringActual model identifier returned by Gemini.
text: StringOrdered assistant text.
tool_call: Option<AgentToolCall>At most one function call.
usage: TokenUsageProvider token usage.
Trait Implementations§
Source§impl Clone for AgentTurnResponse
impl Clone for AgentTurnResponse
Source§fn clone(&self) -> AgentTurnResponse
fn clone(&self) -> AgentTurnResponse
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 AgentTurnResponse
impl Debug for AgentTurnResponse
impl Eq for AgentTurnResponse
Source§impl PartialEq for AgentTurnResponse
impl PartialEq for AgentTurnResponse
impl StructuralPartialEq for AgentTurnResponse
Auto Trait Implementations§
impl Freeze for AgentTurnResponse
impl RefUnwindSafe for AgentTurnResponse
impl Send for AgentTurnResponse
impl Sync for AgentTurnResponse
impl Unpin for AgentTurnResponse
impl UnsafeUnpin for AgentTurnResponse
impl UnwindSafe for AgentTurnResponse
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