pub struct ToolsCapabilities {
pub supported: Option<bool>,
pub items: Option<Vec<Tool>>,
pub parallel_calls: Option<bool>,
pub client_provided: Option<bool>,
}Expand description
Tool-calling support, and the tools the agent brings itself.
Fields§
§supported: Option<bool>The agent can make tool calls at all. Some(false) disables tool
calling explicitly even when items is populated.
items: Option<Vec<Tool>>Tools the agent provides on its own, distinct from the client-provided
tools in RunAgentInput::tools.
parallel_calls: Option<bool>The agent can invoke several tools concurrently within one step.
client_provided: Option<bool>The agent uses tools the client passes at runtime.
Trait Implementations§
Source§impl Clone for ToolsCapabilities
impl Clone for ToolsCapabilities
Source§fn clone(&self) -> ToolsCapabilities
fn clone(&self) -> ToolsCapabilities
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 ComposeSchema for ToolsCapabilities
impl ComposeSchema for ToolsCapabilities
Source§impl Debug for ToolsCapabilities
impl Debug for ToolsCapabilities
Source§impl Default for ToolsCapabilities
impl Default for ToolsCapabilities
Source§fn default() -> ToolsCapabilities
fn default() -> ToolsCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolsCapabilities
impl<'de> Deserialize<'de> for ToolsCapabilities
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 ToolsCapabilities
impl JsonSchema for ToolsCapabilities
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 ToolsCapabilities
impl PartialEq for ToolsCapabilities
Source§fn eq(&self, other: &ToolsCapabilities) -> bool
fn eq(&self, other: &ToolsCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolsCapabilities
impl Serialize for ToolsCapabilities
impl StructuralPartialEq for ToolsCapabilities
Auto Trait Implementations§
impl Freeze for ToolsCapabilities
impl RefUnwindSafe for ToolsCapabilities
impl Send for ToolsCapabilities
impl Sync for ToolsCapabilities
impl Unpin for ToolsCapabilities
impl UnsafeUnpin for ToolsCapabilities
impl UnwindSafe for ToolsCapabilities
Blanket Implementations§
impl<T> AgentState for T
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