Skip to main content

Module executor

Module executor 

Source
Expand description

The ChildExecutor seam: how an actor actually runs a task.

This crate never depends on the agent runtime. The worker process implements ChildExecutor backed by the real agent.execute(); the transport layer drives it. EchoExecutor is a dependency-free stand-in used by the demo worker and tests.

Structs§

ChildOutcome
Result of running a task to completion (or suspension).
EchoExecutor
Dependency-free executor: streams one token event per word, then completes with an echo. Used by the demo worker and tests to exercise the full transport without a real LLM.
EventSink
Sink an executor emits events into; the transport forwards each as a ChildFrame::Event.
HostBridge
Host-callback bridge handed to an executor (via EventSink) so a nested sub-agent can proxy a gated-tool approval to the host — over the same per-child WebSocket, no broker needed. Absent for tests/EchoExecutor.
HostRequest
A single host-callback request: an executor proxies a gated-tool approval back to the host over the run’s WS and awaits the reply.
SteerInbox
Mid-run steering inbox: ParentFrame::Message texts arriving while a run is active. Executors that support in-band steering admit them at a safe point (the engine’s round boundary); others may simply ignore the inbox.

Enums§

HostRequestKind
Which kind of host callback a HostRequest is — selects the wire frame.

Constants§

ECHO_SLEEP_PREFIX
Assignment prefix recognized by EchoExecutor for a cancellable delay.

Traits§

ChildExecutor
What runs inside an actor. Implemented by the worker with the real runtime.