Skip to main content

Runner

Enum Runner 

Source
pub enum Runner {
    WsOperator {
        variant: String,
        tools: Vec<String>,
    },
    WsClaudeCode {
        variant: String,
        tools: Vec<String>,
    },
    AgentBlockInProcess {
        tools: Vec<String>,
    },
    Subprocess {
        template: String,
        overrides: SubprocessOverrides,
    },
}
Expand description

The execution shell an agent’s Worker IMPL runs inside — holding tool grant, model selection, and runtime capabilities. Tier 1 of the GH #46 3-tier Worker model (Runner / Agent / Context).

Runner here is broader than the ADK / OpenAI Agents SDK Runner (a loop driver): it is the execution shell holding tool grant, model selection, and runtime capabilities. Loop driving itself is the backend’s job (Claude Code harness / AgentBlock runtime).

Resolved per-agent by resolve_runner’s 5-step cascade; wiring the resolved value into the launch path is Milestone 3 — this Milestone only declares the shape and the pure resolver.

Variants§

§

WsOperator

Platform-neutral WebSocket Operator backend. The joined execution environment may be Claude Code, Codex, or another MainAI/plugin that implements the common binding and spawn contracts.

Fields

§variant: String

Provider-defined launch variant selected by the execution environment.

§tools: Vec<String>

Minimum tool grant the provider must enforce.

§

WsClaudeCode

WS backend: Claude Code subagent wrapper. variant is the wrapper’s subagent_type; tools mirrors the wrapper frontmatter = enforced grant.

Kept as a compatibility backend for existing Blueprints. New platform-neutral declarations should use Self::WsOperator.

Fields

§variant: String

The wrapper’s subagent_type (= WorkerBinding.variant in the mlua-swarm core crate).

§tools: Vec<String>

Declared (informational) tool list — mirrors the wrapper frontmatter; the actual grant is enforced by the wrapper file itself, not by this list.

§

AgentBlockInProcess

In-process backend: agent-block runtime. tools is the effective (enforced) tool set for the in-process registry.

Fields

§tools: Vec<String>

Effective (enforced) tool set passed to the agent-block runtime’s registry — unlike WebSocket Runner tool requests, this list is not merely informational.

§

Subprocess

GH #83 — Subprocess EmbedAgent backend: the step runs headless through the ProcessSpawner path, with the invocation described by a SubprocessDef template looked up by name in Blueprint::subprocesses. Name symmetry with AgentKind::Subprocess is deliberate (1:1 — this variant is the Runner-axis face of the same Worker IMPL kind).

Per-agent overrides live HERE (not on SubprocessDef) so the template struct stays flat and shareable across agents.

Fields

§overrides: SubprocessOverrides

Per-agent overrides applied on top of the referenced template and the agent profile. Empty (all defaults) is omitted on the wire.

Trait Implementations§

Source§

impl Clone for Runner

Source§

fn clone(&self) -> Runner

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Runner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Runner

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for Runner

Source§

impl JsonSchema for Runner

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for Runner

Source§

fn eq(&self, other: &Runner) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Runner

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Runner

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> MaybeSend for T

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.