Skip to main content

OutputProcessor

Trait OutputProcessor 

Source
pub trait OutputProcessor: Send + Sync {
    // Required method
    fn process(&self, output: String) -> String;
}
👎Deprecated since 0.3.0:

Use OutputTransformer instead. OutputProcessor will be removed in v1.0.0. Existing impls work automatically via blanket impl.

Expand description

Trait for processing tool output before adding it to the message context.

Implementations MUST be sync (no I/O) and fast.

§Deprecated

Use OutputTransformer instead. OutputProcessor is automatically bridged via a blanket impl.

Required Methods§

Source

fn process(&self, output: String) -> String

👎Deprecated since 0.3.0:

Use OutputTransformer instead. OutputProcessor will be removed in v1.0.0. Existing impls work automatically via blanket impl.

Process a tool output string and return the (possibly modified) result.

Implementors§