pub struct Contract {
pub name: &'static str,
pub description: &'static str,
pub input: Value,
pub output: Value,
pub builtin: bool,
pub grant: DefaultGrant,
pub family: &'static str,
}Expand description
One contract.
Fields§
§name: &'static str§description: &'static str§input: Value§output: Value§builtin: bool§grant: DefaultGrant§family: &'static strThe tool’s family (memory, plan, …) for agent.tools.internal lists.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnsafeUnpin for Contract
impl UnwindSafe for Contract
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