#[non_exhaustive]pub struct AgentFunctionCall {
pub id: String,
pub name: String,
pub arguments: String,
pub client_side: bool,
pub thought_signature: Option<String>,
}Expand description
Single function call entry in a FunctionCallRequest.
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.id: StringUnique identifier — used to correlate with the matching FunctionCallResponse.
name: StringFunction name.
arguments: StringJSON-encoded arguments (opaque string per spec — do not auto-parse).
client_side: boolWhether the call should be executed client-side. If false, the
server will execute it and emit a FunctionCallResponse event.
thought_signature: Option<String>Some Gemini models require this as an additional call identifier.
Trait Implementations§
Source§impl Clone for AgentFunctionCall
impl Clone for AgentFunctionCall
Source§impl Debug for AgentFunctionCall
impl Debug for AgentFunctionCall
Source§impl<'de> Deserialize<'de> for AgentFunctionCall
impl<'de> Deserialize<'de> for AgentFunctionCall
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 AgentFunctionCall
Source§impl PartialEq for AgentFunctionCall
impl PartialEq for AgentFunctionCall
Source§impl Serialize for AgentFunctionCall
impl Serialize for AgentFunctionCall
impl StructuralPartialEq for AgentFunctionCall
Auto Trait Implementations§
impl Freeze for AgentFunctionCall
impl RefUnwindSafe for AgentFunctionCall
impl Send for AgentFunctionCall
impl Sync for AgentFunctionCall
impl Unpin for AgentFunctionCall
impl UnsafeUnpin for AgentFunctionCall
impl UnwindSafe for AgentFunctionCall
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