One scripted assistant turn: a final text answer, or a tool call. The common shape both harness mocks consume — the Anthropic Messages mock (src/mock-model.ts) and the OpenAI Responses mock (src/adapters/codex/mock-model.ts, which uses only text).
src/mock-model.ts
src/adapters/codex/mock-model.ts
text
Optional
Readonly
The tool input, e.g. { file_path, content } or { command }.
{ file_path, content }
{ command }
Final text answer (stops the turn).
A tool to invoke, e.g. "Bash" | "Write" | "Edit".
One scripted assistant turn: a final text answer, or a tool call. The common shape both harness mocks consume — the Anthropic Messages mock (
src/mock-model.ts) and the OpenAI Responses mock (src/adapters/codex/mock-model.ts, which uses onlytext).