Skip to content

docs(framework): add Runtime page under the Agent section#602

Merged
zakahan merged 1 commit into
mainfrom
worktree-docs-agent-runtime
Jun 11, 2026
Merged

docs(framework): add Runtime page under the Agent section#602
zakahan merged 1 commit into
mainfrom
worktree-docs-agent-runtime

Conversation

@yaozheng-fang

Copy link
Copy Markdown
Collaborator

What

Adds a dedicated Runtime doc page under the framework Agent section, in both languages. The pluggable agent runtime (Agent(runtime=...), veadk/runtime/) previously had no documentation — runtime/codex only appeared as a harness CLI flag.

Pages

  • docs/content/docs/framework/agent/runtime.mdx (中文「运行时」)
  • docs/content/docs/framework/agent/runtime.en.mdx (English "Runtime")

Registered in the agent nav (meta.json / meta.en.json) right after responses-api.

Contents

Sourced from veadk/runtime/ and veadk/agent.py:

  • The concept: Agent(runtime=...) selects who drives the agent loop; Runner still owns session/memory/tracing.
  • adk (default) vs codex comparison.
  • How to switch: Agent(runtime="codex").
  • codex specifics: install (pip install openai-codex fastapi uvicorn), required model_api_base/model_api_key, model resolution (model_nameOPENAI_MODEL), and how it works (Responses→Chat shim, isolated CODEX_HOME, instruction folded into a preamble).
  • A warning callout about codex's auxiliary codex-auto-review model needing endpoint access.
  • Cross-link to the Harness server runtime / --runtime switch.
  • A short "add a custom runtime" note (get_runtime / BaseRuntime).

Notes

  • Docs-only; no code changes.
  • JSON nav validated; .mdx follows the existing framework page style.

Document the pluggable agent runtime (Agent(runtime=...)): the adk default vs
the codex runtime, how to switch, codex requirements (openai-codex extras,
model_api_base/key, model resolution), how it works (Responses->Chat shim,
isolated CODEX_HOME, instruction preamble), the harness `runtime`/`--runtime`
switch, and how to add a custom runtime. Registered after responses-api in the
agent nav (zh + en).
@zakahan zakahan merged commit b7038b8 into main Jun 11, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants