Expand description
Routing resolver — dynamic agent resolution at spawn time. Slotted into
the SpawnerStack as a SpawnerLayer. Treats Ctx.agent as a hint,
rewrites it to the actual dispatch target, and hands the updated Ctx
down to the inner spawner.
Examples:
Ctx.agent = "best-coder"— the resolver picksclaudeorgpt-4orllama.Ctx.agent = "router:by-prompt"— branch on prompt contents.Ctx.agent = "ensemble"— fan out to multiple agents (delegated to a different layer or a fanout stage).
One of the axes that a plugin can drive (see handoff §Plugin).
Structs§
- FnResolver
- Wrapper that lets a closure act as an
AgentResolvervia a blanket impl. - Resolver
Middleware SpawnerLayerimplementation — inject into aSpawnerStackand use.
Traits§
- Agent
Resolver - Routing resolver trait. Takes the
Ctx.agenthint and returns a real agent name the inner spawner can resolve. Sync is enough — this is meant for light lookups. Push heavy resolvers into a separate spawner layer or a Lua plugin.