pub struct TaskApplicationInput {
pub blueprint: BlueprintRef,
pub operator_id: String,
pub role: Role,
pub ttl: Duration,
pub init_ctx: Value,
pub operator_kind: Option<OperatorKind>,
pub bridge_id: Option<String>,
pub hook_id: Option<String>,
pub operator_backend_id: Option<String>,
pub operator_kind_overrides: HashMap<String, OperatorKind>,
}Expand description
Input to TaskApplication::handle — the POST /v1/tasks request
body once decoded.
Fields§
§blueprint: BlueprintRefAccepts both Inline (a Blueprint value directly) and Id
(store fetch + a VersionSelector).
operator_id: StringCaller-supplied id for the Operator that owns this run.
role: RoleThe Operator’s role for this run.
ttl: DurationHow long the attached session is allowed to live.
init_ctx: ValueInitial ctx for flow.ir eval. Read by every Step.in.
operator_kind: Option<OperatorKind>“Runtime Global” tier of the OperatorKind cascade. Some(_) is
always an explicit request — including Some(OperatorKind::Automate)
— that outranks the BP-level tiers (OperatorDef.kind /
Blueprint.default_operator_kind); None leaves it unspecified so
those tiers / the final default decide. Under MainAi /
Composite, MainAIMiddleware’s spawn_hook before/after
callbacks become effective. See
crate::core::ctx::collapse_operator_kind.
bridge_id: Option<String>SeniorBridge registry ID. None — none in use;
Some(id) — attach a bridge previously registered on the
engine.
hook_id: Option<String>SpawnHook registry ID. Same shape as above — attach a hook
previously registered on the engine.
operator_backend_id: Option<String>Operator registry ID — used on the path that hands the whole spawn off to an external Operator.
operator_kind_overrides: HashMap<String, OperatorKind>“Runtime Agent-level” tier (highest priority) of the OperatorKind
cascade — per-agent override, keyed by AgentDef.name. Empty by
default. See crate::core::ctx::collapse_operator_kind for the full tier
list.
Implementations§
Source§impl TaskApplicationInput
impl TaskApplicationInput
Sourcepub fn automate(
blueprint: BlueprintRef,
operator_id: impl Into<String>,
role: Role,
ttl: Duration,
init_ctx: Value,
) -> Self
pub fn automate( blueprint: BlueprintRef, operator_id: impl Into<String>, role: Role, ttl: Duration, init_ctx: Value, ) -> Self
Helper for existing callers on the default path — no hooks and no
per-agent OperatorKind overrides. Leaves the “Runtime Global” tier
unspecified (None), so the BP-level tiers / final default
(OperatorKind::Automate) decide — this preserves today’s
behaviour for every existing caller without silently forcing
Automate as an explicit override that would outrank a BP-declared
MainAi/Composite kind.
Trait Implementations§
Source§impl Clone for TaskApplicationInput
impl Clone for TaskApplicationInput
Source§fn clone(&self) -> TaskApplicationInput
fn clone(&self) -> TaskApplicationInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TaskApplicationInput
impl RefUnwindSafe for TaskApplicationInput
impl Send for TaskApplicationInput
impl Sync for TaskApplicationInput
impl Unpin for TaskApplicationInput
impl UnsafeUnpin for TaskApplicationInput
impl UnwindSafe for TaskApplicationInput
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,
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