pub struct AgentTool {
pub name: String,
pub description: String,
pub input_schema: Value,
}Expand description
One function available to a Gemini text turn.
Fields§
§name: StringExact function name.
description: StringHuman-readable function description.
input_schema: ValueJSON Schema object accepted by the function.
Trait Implementations§
impl Eq for AgentTool
impl StructuralPartialEq for AgentTool
Auto Trait Implementations§
impl Freeze for AgentTool
impl RefUnwindSafe for AgentTool
impl Send for AgentTool
impl Sync for AgentTool
impl Unpin for AgentTool
impl UnsafeUnpin for AgentTool
impl UnwindSafe for AgentTool
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