#[non_exhaustive]pub struct ToolExecution {
pub task_support: Option<TaskSupport>,
}Expand description
Execution-related configuration for a tool.
This struct contains settings that control how a tool should be executed, including task support configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.task_support: Option<TaskSupport>Indicates whether this tool supports task-based invocation.
When not present or set to Forbidden, clients MUST NOT invoke this tool as a task.
When set to Optional, clients MAY invoke this tool as a task or normal call.
When set to Required, clients MUST invoke this tool as a task.
Implementations§
Source§impl ToolExecution
impl ToolExecution
Sourcepub fn from_raw(task_support: Option<TaskSupport>) -> Self
pub fn from_raw(task_support: Option<TaskSupport>) -> Self
Create a ToolExecution from raw optional fields.
Sourcepub fn with_task_support(self, task_support: TaskSupport) -> Self
pub fn with_task_support(self, task_support: TaskSupport) -> Self
Set the task support mode.
Trait Implementations§
Source§impl Clone for ToolExecution
impl Clone for ToolExecution
Source§fn clone(&self) -> ToolExecution
fn clone(&self) -> ToolExecution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolExecution
impl Debug for ToolExecution
Source§impl Default for ToolExecution
impl Default for ToolExecution
Source§fn default() -> ToolExecution
fn default() -> ToolExecution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolExecution
impl<'de> Deserialize<'de> for ToolExecution
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
Source§impl JsonSchema for ToolExecution
impl JsonSchema for ToolExecution
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ToolExecution
impl PartialEq for ToolExecution
Source§fn eq(&self, other: &ToolExecution) -> bool
fn eq(&self, other: &ToolExecution) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolExecution
impl Serialize for ToolExecution
impl Eq for ToolExecution
impl StructuralPartialEq for ToolExecution
Auto Trait Implementations§
impl Freeze for ToolExecution
impl RefUnwindSafe for ToolExecution
impl Send for ToolExecution
impl Sync for ToolExecution
impl Unpin for ToolExecution
impl UnsafeUnpin for ToolExecution
impl UnwindSafe for ToolExecution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.