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§
- Child
Outcome - Result of running a task to completion (or suspension).
- Echo
Executor - Dependency-free executor: streams one
tokenevent per word, then completes with an echo. Used by the demo worker and tests to exercise the full transport without a real LLM. - Event
Sink - Sink an executor emits events into; the transport forwards each as a
ChildFrame::Event. - Host
Bridge - 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. - Host
Request - 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.
- Steer
Inbox - Mid-run steering inbox:
ParentFrame::Messagetexts 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§
- Host
Request Kind - Which kind of host callback a
HostRequestis — selects the wire frame.
Constants§
- ECHO_
SLEEP_ PREFIX - Assignment prefix recognized by
EchoExecutorfor a cancellable delay.
Traits§
- Child
Executor - What runs inside an actor. Implemented by the worker with the real runtime.