pub struct ConnectorTool {
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
pub output_schema: Option<Value>,
pub instructions: Option<String>,
pub examples: Vec<ConnectorExample>,
pub annotations: ToolAnnotations,
pub policy: ToolPolicy,
}Expand description
Metadata for one connector method.
Fields§
§name: StringMethod name within its connector namespace.
description: Option<String>Human-readable description.
input_schema: ValueJSON Schema for arguments.
output_schema: Option<Value>JSON Schema for successful output.
instructions: Option<String>Tool-specific model instructions.
examples: Vec<ConnectorExample>Usage examples.
annotations: ToolAnnotationsSource behavioral annotations.
policy: ToolPolicyResolved approval and replay behavior.
Trait Implementations§
Source§impl Clone for ConnectorTool
impl Clone for ConnectorTool
Source§impl Debug for ConnectorTool
impl Debug for ConnectorTool
Source§impl<'de> Deserialize<'de> for ConnectorTool
impl<'de> Deserialize<'de> for ConnectorTool
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 Freeze for ConnectorTool
impl RefUnwindSafe for ConnectorTool
impl Send for ConnectorTool
impl Sync for ConnectorTool
impl Unpin for ConnectorTool
impl UnsafeUnpin for ConnectorTool
impl UnwindSafe for ConnectorTool
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