Module main_actor

Module main_actor 

Source
Expand description

Main orchestrator actor.

MainActor is the central LLM-powered orchestrator. It:

  1. Receives user input and routes it to the appropriate agent
  2. Sends the full system context to its LLM backend
  3. Parses <spawn> blocks in the LLM’s reply to dynamically create agents
  4. Is protected — it cannot be killed by external commands

Spawn block format (JSON inside XML-like tags):

<spawn>
{
  "agent_type": "DynamicAgent",
  "agent_name": "data-fetcher",
  "script": "...",
  "description": "Fetches weather data"
}
</spawn>

Structs§

MainActor
The central orchestrator.
SpawnDirective
Parsed content of a <spawn> block.