vigiles API reference
    Preparing search index...

    Interface ModelTurn

    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).

    interface ModelTurn {
        input?: Record<string, unknown>;
        text?: string;
        tool?: string;
    }
    Index

    Properties

    Properties

    input?: Record<string, unknown>

    The tool input, e.g. { file_path, content } or { command }.

    text?: string

    Final text answer (stops the turn).

    tool?: string

    A tool to invoke, e.g. "Bash" | "Write" | "Edit".