pub struct CommandTool {
pub session: Option<ToolFqn>,
pub description: String,
pub input_schema: Arc<Value>,
pub protocol: ToolProtocol,
pub command: String,
pub args: Vec<Argument>,
pub timeout_ms: Option<Duration>,
pub execution_paths: Vec<LogicalPath>,
/* private fields */
}Fields§
§session: Option<ToolFqn>§description: String§input_schema: Arc<Value>Shared with every declaration of an equal schema in the same read.
protocol: ToolProtocol§command: String§args: Vec<Argument>§timeout_ms: Option<Duration>§execution_paths: Vec<LogicalPath>Trait Implementations§
Source§impl Clone for CommandTool
impl Clone for CommandTool
Source§impl Debug for CommandTool
impl Debug for CommandTool
Source§impl<'de> Deserialize<'de> for CommandTool
impl<'de> Deserialize<'de> for CommandTool
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 CommandTool
impl Freeze for CommandToolwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Value> is !null: Freeze,
PhantomData<ArcInner<Value>>: Freeze,
PhantomData<Argument>: Freeze,
PhantomData<LogicalPath>: Freeze,
PhantomData<PlainArgument>: Freeze,
impl Move for CommandTool
impl RefUnwindSafe for CommandTool
impl Send for CommandTool
impl Sync for CommandTool
impl Unpin for CommandTool
impl UnsafeUnpin for CommandToolwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Value> is !null: UnsafeUnpin,
PhantomData<ArcInner<Value>>: UnsafeUnpin,
PhantomData<Argument>: UnsafeUnpin,
PhantomData<LogicalPath>: UnsafeUnpin,
PhantomData<PlainArgument>: UnsafeUnpin,
impl UnwindSafe for CommandTool
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.