AgentOutputT

Trait AgentOutputT 

Source
pub trait AgentOutputT:
    Serialize
    + DeserializeOwned
    + Send
    + Sync {
    // Required methods
    fn output_schema() -> &'static str;
    fn structured_output_format() -> Value;
}
Expand description

Trait for agent output types that can generate structured output schemas

Required Methods§

Source

fn output_schema() -> &'static str

Get the JSON schema string for this output type

Source

fn structured_output_format() -> Value

Get the structured output format as a JSON value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AgentOutputT for String

Implementation of AgentOutputT for String type (when no output is specified)

Implementors§