pub enum AgentKind {
Lua,
RustFn,
AgentBlock,
Subprocess,
Operator,
}Expand description
SoT of the Worker IMPL axis. A closed enum managed inside Swarm and extended by variant addition through explicit maintenance. String lookup / escape hatches are deliberately not adopted.
This enum expresses Worker IMPL directly; dispatching to a host Spawner adapter is resolved by an internal Resolver on the compiler side (= callers see only the Worker IMPL viewpoint).
§Internal Resolver mapping (= currently a fixed 1:1, carry: priority list form)
| AgentKind | Host Spawner adapter |
|---|---|
Lua | InProcSpawner (mlua VM eval) |
RustFn | InProcSpawner (Rust closure) |
AgentBlock | InProcSpawner (agent-block-core SDK in-process) |
Subprocess | ProcessSpawner (child process launch) |
Operator | OperatorSpawner (interactive role / Human-MainAI delegation) |
Variants§
Lua
Lua script eval through the mlua VM (= factory-side registry looked up by spec.fn_id).
RustFn
Rust closure (= factory-side registry looked up by spec.fn_id).
AgentBlock
Headless LLM agent via the agent-block-core SDK (in-process).
Subprocess
Child-process launch (= spec.program + args, via the ProcessSpawner path).
Operator
Interactive Operator role (= MainAI / Human delegation, spec.operator_ref).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentKind
impl<'de> Deserialize<'de> for AgentKind
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentKind
Source§impl JsonSchema for AgentKind
impl JsonSchema for AgentKind
Source§fn schema_id() -> Cow<'static, str>
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
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
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 moreimpl StructuralPartialEq for AgentKind
Auto Trait Implementations§
impl Freeze for AgentKind
impl RefUnwindSafe for AgentKind
impl Send for AgentKind
impl Sync for AgentKind
impl Unpin for AgentKind
impl UnsafeUnpin for AgentKind
impl UnwindSafe for AgentKind
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
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>
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 more