pub enum Runner {
WsClaudeCode {
variant: String,
tools: Vec<String>,
},
AgentBlockInProcess {
tools: Vec<String>,
},
}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§
WsClaudeCode
WS backend: Claude Code subagent wrapper. variant is the
wrapper’s subagent_type; tools mirrors the wrapper frontmatter =
enforced grant.
Fields
AgentBlockInProcess
In-process backend: agent-block runtime. tools is the effective
(enforced) tool set for the in-process registry.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Runner
impl<'de> Deserialize<'de> for Runner
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Runner
Source§impl JsonSchema for Runner
impl JsonSchema for Runner
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for Runner
Auto Trait Implementations§
impl Freeze for Runner
impl RefUnwindSafe for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnsafeUnpin for Runner
impl UnwindSafe for Runner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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