#[non_exhaustive]pub struct MemberTurnOptions {
pub model: Option<ModelId>,
pub provider: Option<Provider>,
pub self_hosted_server_id: Option<String>,
pub provider_params: Option<TurnMetadataOverride<ProviderParamsOverride>>,
pub auth_binding: Option<TurnMetadataOverride<AuthBindingRef>>,
pub skill_references: Option<Vec<SkillKey>>,
pub turn_tool_overlay: Option<TurnToolOverlay>,
pub additional_instructions: Option<Vec<TurnInstruction>>,
pub keep_alive: Option<KeepAliveDirective>,
pub render_metadata: Option<RenderMetadata>,
pub interaction_id: Option<InteractionId>,
pub objective_id: Option<ObjectiveId>,
}Expand description
Host-owned options for one member turn.
Runtime-authored metadata (execution classification, terminal peer intent,
and run identity) is deliberately absent. The mob runtime stamps those
facts at admission instead of accepting them from callers. The full
TurnToolOverlay remains available to trusted in-process hosts, including
caller-authored dispatch context; public wire surfaces use the narrower
PublicTurnToolOverlay instead.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.model: Option<ModelId>§provider: Option<Provider>§self_hosted_server_id: Option<String>Exact local-server route for self-hosted models. This is deliberately part of the typed turn identity instead of being inferred from a model id that may be shared by multiple local servers.
provider_params: Option<TurnMetadataOverride<ProviderParamsOverride>>§auth_binding: Option<TurnMetadataOverride<AuthBindingRef>>§skill_references: Option<Vec<SkillKey>>§turn_tool_overlay: Option<TurnToolOverlay>§additional_instructions: Option<Vec<TurnInstruction>>§keep_alive: Option<KeepAliveDirective>§render_metadata: Option<RenderMetadata>§interaction_id: Option<InteractionId>§objective_id: Option<ObjectiveId>Implementations§
Source§impl MemberTurnOptions
impl MemberTurnOptions
Sourcepub fn new() -> MemberTurnOptions
pub fn new() -> MemberTurnOptions
Construct empty host-owned options for one member turn.
pub fn with_model(self, model: ModelId) -> MemberTurnOptions
pub fn with_provider(self, provider: Provider) -> MemberTurnOptions
pub fn with_self_hosted_server_id( self, server_id: impl Into<String>, ) -> MemberTurnOptions
Sourcepub fn with_provider_params(
self,
provider_params: TurnMetadataOverride<ProviderParamsOverride>,
) -> MemberTurnOptions
pub fn with_provider_params( self, provider_params: TurnMetadataOverride<ProviderParamsOverride>, ) -> MemberTurnOptions
Set or explicitly clear provider parameters for this turn.
Sourcepub fn with_auth_binding(
self,
auth_binding: TurnMetadataOverride<AuthBindingRef>,
) -> MemberTurnOptions
pub fn with_auth_binding( self, auth_binding: TurnMetadataOverride<AuthBindingRef>, ) -> MemberTurnOptions
Set or explicitly clear the auth binding for this turn.
pub fn with_skill_references( self, skill_references: Vec<SkillKey>, ) -> MemberTurnOptions
pub fn with_turn_tool_overlay( self, turn_tool_overlay: TurnToolOverlay, ) -> MemberTurnOptions
pub fn with_additional_instructions( self, additional_instructions: Vec<TurnInstruction>, ) -> MemberTurnOptions
pub fn with_keep_alive( self, keep_alive: KeepAliveDirective, ) -> MemberTurnOptions
pub fn with_render_metadata( self, render_metadata: RenderMetadata, ) -> MemberTurnOptions
pub fn with_interaction_id( self, interaction_id: InteractionId, ) -> MemberTurnOptions
pub fn with_objective_id(self, objective_id: ObjectiveId) -> MemberTurnOptions
Trait Implementations§
Source§impl Clone for MemberTurnOptions
impl Clone for MemberTurnOptions
Source§fn clone(&self) -> MemberTurnOptions
fn clone(&self) -> MemberTurnOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MemberTurnOptions
impl Debug for MemberTurnOptions
Source§impl Default for MemberTurnOptions
impl Default for MemberTurnOptions
Source§fn default() -> MemberTurnOptions
fn default() -> MemberTurnOptions
Source§impl PartialEq for MemberTurnOptions
impl PartialEq for MemberTurnOptions
impl StructuralPartialEq for MemberTurnOptions
Auto Trait Implementations§
impl Freeze for MemberTurnOptions
impl RefUnwindSafe for MemberTurnOptions
impl Send for MemberTurnOptions
impl Sync for MemberTurnOptions
impl Unpin for MemberTurnOptions
impl UnsafeUnpin for MemberTurnOptions
impl UnwindSafe for MemberTurnOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CoreExecutorTurnFinalizationGuard for Twhere
T: Send,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more