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§
Sourcefn build_preamble(&self, input: ProtocolBuildInput) -> TurnDriverPreamble
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".