pub struct CreateAgentSessionFromServicesOptions {
pub services: AgentSessionServices,
pub model: Option<Model>,
pub thinking_level: Option<ModelThinkingLevel>,
pub scoped_models: Vec<ScopedModel>,
pub tools: Option<Vec<String>>,
pub exclude_tools: Option<Vec<String>>,
pub no_tools: Option<NoToolsMode>,
pub session_start_event: Option<SessionStartEvent>,
pub saved_session_model: Option<(String, String)>,
pub has_existing_session: bool,
}Expand description
Inputs for creating a session from already-created services.
Fields§
§services: AgentSessionServicesPreviously created services.
model: Option<Model>Optional explicit model.
thinking_level: Option<ModelThinkingLevel>Optional thinking level.
scoped_models: Vec<ScopedModel>Scoped models for cycling.
tools: Option<Vec<String>>Optional tool allowlist.
exclude_tools: Option<Vec<String>>Optional tool denylist.
no_tools: Option<NoToolsMode>Default tool suppression mode when no allowlist is provided.
session_start_event: Option<SessionStartEvent>Session-start metadata carried into the session (reason + previous session file for replacements).
saved_session_model: Option<(String, String)>Saved session model to restore (provider, model id).
has_existing_session: boolWhether the session already has messages (affects restore vs initial).
Auto Trait Implementations§
impl !Freeze for CreateAgentSessionFromServicesOptions
impl !RefUnwindSafe for CreateAgentSessionFromServicesOptions
impl !UnwindSafe for CreateAgentSessionFromServicesOptions
impl Send for CreateAgentSessionFromServicesOptions
impl Sync for CreateAgentSessionFromServicesOptions
impl Unpin for CreateAgentSessionFromServicesOptions
impl UnsafeUnpin for CreateAgentSessionFromServicesOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.