pub struct ShellTool<E> { /* private fields */ }Expand description
The model-facing tool of a Shell: the embedder’s name and description
over the shell’s execution, with an argument schema that lists exactly the
interpreters the shell was configured with.
Trait Implementations§
Source§impl<E: Executor + Clone + 'static> Tool for ShellTool<E>
impl<E: Executor + Clone + 'static> Tool for ShellTool<E>
Source§type Arguments = ShellArgs
type Arguments = ShellArgs
Tool arguments type. Must implement
schemars::JsonSchema and serde::de::DeserializeOwned.
Its rustdoc becomes the default tool description.Source§type Res = ToolResult
type Res = ToolResult
Raw return type from the tool implementation.
Source§fn description(&self) -> Cow<'static, str>
fn description(&self) -> Cow<'static, str>
What the tool does, as shown to the model. Read more
Source§fn arguments_schema(&self) -> Schema
fn arguments_schema(&self) -> Schema
The JSON schema of the tool’s arguments, as sent to the provider. Read more
Auto Trait Implementations§
impl<E> !RefUnwindSafe for ShellTool<E>
impl<E> !Unpin for ShellTool<E>
impl<E> !UnsafeUnpin for ShellTool<E>
impl<E> !UnwindSafe for ShellTool<E>
impl<E> Forget for ShellTool<E>
impl<E> Freeze for ShellTool<E>
impl<E> Move for ShellTool<E>
impl<E> Send for ShellTool<E>
impl<E> Sync for ShellTool<E>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more