pub struct TurnBuilder { /* private fields */ }Implementations§
Source§impl TurnBuilder
impl TurnBuilder
pub fn cancel(self, cancel: CancellationToken) -> Self
pub fn protocol_turn_options(self, options: ProtocolTurnOptions) -> Self
pub fn provider(self, provider: ProviderHandle) -> Self
pub fn model(self, model: ModelSpec) -> Self
pub fn turn_id(self, id: impl Into<String>) -> Self
pub fn prompt_template(self, template: PromptTemplate) -> Self
pub fn prompt_contribution(self, contribution: PromptContribution) -> Self
pub fn replace_prompt_slot( self, slot: PromptSlot, contributions: impl IntoIterator<Item = PromptContribution>, ) -> Self
pub fn clear_prompt_slot(self, slot: PromptSlot) -> Self
pub fn prompt_layer(self, layer: PromptLayer) -> Self
Sourcepub fn with_plugin_input<P: PluginBinding>(self, input: P::Input) -> Self
pub fn with_plugin_input<P: PluginBinding>(self, input: P::Input) -> Self
Attach typed per-turn input for an activated plugin binding.
This is the generic primitive. Plugin crates should usually wrap it in a
domain extension trait such as .with_tone(tone) or .with_board(board)
so application code stays typed in its own vocabulary.
pub fn effects( self, controller: &dyn RuntimeEffectController, ) -> ScopedTurnBuilder<'_>
pub async fn run(self) -> Result<TurnOutput>
pub async fn stream_to( self, events: &dyn TurnActivitySink, ) -> Result<TurnResult>
pub fn stream(self) -> Result<TurnStream>
Sourcepub fn advanced(self) -> AdvancedTurn
pub fn advanced(self) -> AdvancedTurn
Access lower-level turn execution that bypasses the semantic
TurnActivity tier.
Auto Trait Implementations§
impl !RefUnwindSafe for TurnBuilder
impl !UnwindSafe for TurnBuilder
impl Freeze for TurnBuilder
impl Send for TurnBuilder
impl Sync for TurnBuilder
impl Unpin for TurnBuilder
impl UnsafeUnpin for TurnBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more