pub struct ToolCallFunction {
pub name: String,
pub arguments: Value,
pub thought_signature: Option<String>,
}Fields§
§name: String§arguments: Value§thought_signature: Option<String>Gemini thought_signature required for multi-turn tool calling.
Gemini returns this on tool calls and requires it back in subsequent
turns. Ollama Cloud doesn’t preserve it, so we capture and re-inject it.
Trait Implementations§
Source§impl Clone for ToolCallFunction
impl Clone for ToolCallFunction
Source§impl Debug for ToolCallFunction
impl Debug for ToolCallFunction
Source§impl<'de> Deserialize<'de> for ToolCallFunction
impl<'de> Deserialize<'de> for ToolCallFunction
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 Forget for ToolCallFunction
impl Freeze for ToolCallFunction
impl RefUnwindSafe for ToolCallFunction
impl Send for ToolCallFunction
impl Sync for ToolCallFunction
impl Unpin for ToolCallFunction
impl UnsafeUnpin for ToolCallFunction
impl UnwindSafe for ToolCallFunction
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