Skip to main content

ProtocolDriverPlugin

Trait ProtocolDriverPlugin 

Source
pub trait ProtocolDriverPlugin: Send + Sync {
    // Required method
    fn build_preamble(&self, input: ProtocolBuildInput) -> TurnDriverPreamble;
}
Expand description

Singleton plugin slot that owns the ProtocolDriverHandle and associated preamble (prompt text, tool surface, sync/async flag) for this session. Plugin stack construction must install exactly one implementation.

Required Methods§

Source

fn build_preamble(&self, input: ProtocolBuildInput) -> TurnDriverPreamble

Build the TurnDriverPreamble (driver handle + prompt text + tool surface metadata) for a turn.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§