Skip to main content

Module runtime

Module runtime 

Source

Structs§

CompositeExternalChildRunner
Composite router that delegates to the first matching external child runner.

Functions§

build_external_child_runner
Build the child runner from the application config.
build_external_child_runner_with_codex_tokens
Full server wiring, including the process-ephemeral Codex per-run token authority. Non-server callers keep using the compatibility wrapper above.
build_external_child_runner_with_registry
Build the child runner with an AppState-scoped durable approval registry.
build_external_child_runner_with_registry_and_reviewer
Build the child runner with durable approval state and an optional parent-agent model reviewer for forced-ask requests.
extract_provider_credentials
Snapshot per-provider credentials from the parent config for actor provisioning. api_key (plaintext, in-memory only) is #[serde(skip_serializing)] on every legacy single-instance provider struct — it’s hydrated from api_key_encrypted at load time but deliberately never round-tripped through serde, so a serde_json::to_value projection of config.providers sees none of it (#495). Read each typed struct’s api_key field directly instead, mirroring how provider_instances below already has to.