pub struct AgentTool {
pub name: &'static str,
pub description: &'static str,
pub input_schema: Value,
pub files: bool,
}Expand description
A tool an agent is offered: its name, what it does and the JSON schema of its input.
Fields§
§name: &'static str§description: &'static str§input_schema: Value§files: boolWhether it reads or writes the front end’s files by path (see
Files): offered only where there are such files — not in the
browser, where a file is saved only when the user says so.
Implementations§
Trait Implementations§
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