Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Type Alias FinishReason

    FinishReason:
        | { kind: "stop" }
        | { kind: "tool_calls" }
        | { kind: "max_tokens" }
        | { failure: LlmFailure; kind: "aborted" }
        | { failure: LlmFailure; kind: "error" }

    Why a model response stopped.

    error and aborted carry the failure facts, so an in-band provider error and a thrown one deliver the same LlmFailure to the same durable writer. Snake_case matches the spellings already in the session vocabulary (max_steps, tool_use).