Skip to main content

ToolArgs

Trait ToolArgs 

Source
pub trait ToolArgs:
    Serialize
    + DeserializeOwned
    + Send
    + Sync
    + 'static {
    const SCHEMA_ID: &'static str;
    const SCHEMA_VERSION: SchemaVersion;

    // Required method
    fn schema() -> Value;
}
Expand description

Typed arguments for a toolkit-authored tool.

Required Associated Constants§

Source

const SCHEMA_ID: &'static str

Stable schema id for the argument shape.

Source

const SCHEMA_VERSION: SchemaVersion

Semantic schema version for the argument shape.

Required Methods§

Source

fn schema() -> Value

Returns a provider-safe JSON schema for these arguments.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§