Expand description
Where an agent runs, behind one trait.
An agent is a process on this machine (NativeAdapter) or a docker exec in its container
(ContainerAdapter). What differs between the two used to be answered at each place that asked
“is this a container agent?” (the env a turn gets, how a container reaches srv, which controller
may host a provider, whether attachments work, how a turn is launched). Each answer is now a
method here, so a new runtime (WSL, remote) is one more impl and the callers do not change.
The methods:
credentials: the env a turn’s process is given, with the instance key replaced by a scoped token where the runtime is not trusted with it.srv_endpoint: how the process reaches this srv.map_mount: where a folder the host knows by role appears.tool_path: how a helper program is named in config files.materialize: what a turn does before it runs (a container is started and the CLI installed in it).launch: start one turn.
RuntimeKind is the one place agentMode / agent_type is read as “host or container”.
Structs§
- Container
Adapter - An agent in a Docker container, one
docker execper turn. - Container
Launch - What a container turn needs that the pane’s meta and the services give it.
- Native
Adapter - An agent that is a process on this machine.
Enums§
- Mount
Role - A folder the host knows by what it is for, not by its path.
- Runtime
Kind - Where an agent runs. On the wire it is
"host"or"container". - ToolId
- A helper program AgentMux puts beside the agent’s CLI.