pub struct RunOptions {Show 17 fields
pub profile: Profile,
pub entry_flow: Option<String>,
pub input: Value,
pub ctx: TenantContext,
pub transcript: Option<Arc<dyn Fn(&Value) + Send + Sync>>,
pub otlp: Option<OtlpHook>,
pub mocks: MocksConfig,
pub artifacts_dir: Option<PathBuf>,
pub signing: SigningPolicy,
pub components_dir: Option<PathBuf>,
pub components_map: HashMap<String, PathBuf>,
pub dist_offline: bool,
pub dist_cache_dir: Option<PathBuf>,
pub allow_missing_hash: bool,
pub secrets_manager: Option<Arc<dyn SecretsManager>>,
pub cross_pack_resolver: Option<Arc<dyn CrossPackResolver>>,
pub session_state_dir: Option<PathBuf>,
}Expand description
User supplied options for a run.
Fields§
§profile: Profile§entry_flow: Option<String>§input: Value§ctx: TenantContext§transcript: Option<Arc<dyn Fn(&Value) + Send + Sync>>§otlp: Option<OtlpHook>§mocks: MocksConfig§artifacts_dir: Option<PathBuf>§signing: SigningPolicy§components_dir: Option<PathBuf>§components_map: HashMap<String, PathBuf>§dist_offline: bool§dist_cache_dir: Option<PathBuf>§allow_missing_hash: bool§secrets_manager: Option<Arc<dyn SecretsManager>>Optional secrets manager override used by embedded runtimes that need to share a caller-owned secrets backend with the runner.
cross_pack_resolver: Option<Arc<dyn CrossPackResolver>>Optional cross-pack resolver for provider.invoke nodes that reference
providers in other packs (e.g., OAuth broker from a capability pack).
session_state_dir: Option<PathBuf>Directory where suspended FlowSnapshots are persisted between
activities so a conversational flow can resume at the node the
previous run paused at (instead of restarting from the entry).
Snapshots are keyed by ctx.session_id, so the caller must populate
ctx.session_id with a stable per-conversation identifier (e.g.
{tenant}:{flow}:{conversation_id}) for resume to engage. When
either this directory or session_id is missing, the runner
behaves exactly as before: a FlowExecution::waiting result is
surfaced as an Err and the snapshot is dropped.
Trait Implementations§
Source§impl Clone for RunOptions
impl Clone for RunOptions
Source§fn clone(&self) -> RunOptions
fn clone(&self) -> RunOptions
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 RunOptions
impl Debug for RunOptions
Source§impl Default for RunOptions
impl Default for RunOptions
Source§fn default() -> RunOptions
fn default() -> RunOptions
Auto Trait Implementations§
impl !RefUnwindSafe for RunOptions
impl !UnwindSafe for RunOptions
impl Freeze for RunOptions
impl Send for RunOptions
impl Sync for RunOptions
impl Unpin for RunOptions
impl UnsafeUnpin for RunOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request