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

    Type Alias EncodablePart

    EncodablePart:
        | { gemini?: RecordedGeminiPart; kind: "text"; text: string }
        | { gemini?: RecordedGeminiPart; kind: "thinking"; text: string }
        | {
            argumentsJson: string;
            gemini?: RecordedGeminiPart;
            kind: "tool_use";
            toolCallId: string;
            toolName: string;
        }
        | {
            isError: boolean;
            kind: "tool_result";
            text: string;
            toolCallId: string;
        }
        | { bytes?: Buffer; kind: "image"; mediaType?: string; sha256: string }
        | { bytes: Buffer; kind: "audio"; mediaType: string; sha256: string }

    A part of a message, carrying everything an encoder needs to emit it.

    Type Declaration

    • { gemini?: RecordedGeminiPart; kind: "text"; text: string }
    • { gemini?: RecordedGeminiPart; kind: "thinking"; text: string }
    • {
          argumentsJson: string;
          gemini?: RecordedGeminiPart;
          kind: "tool_use";
          toolCallId: string;
          toolName: string;
      }
      • ReadonlyargumentsJson: string

        Raw JSON string exactly as the model produced it.

      • Optional Readonlygemini?: RecordedGeminiPart
      • Readonlykind: "tool_use"
      • ReadonlytoolCallId: string
      • ReadonlytoolName: string
    • { isError: boolean; kind: "tool_result"; text: string; toolCallId: string }
      • ReadonlyisError: boolean
      • Readonlykind: "tool_result"
      • Readonlytext: string

        What the model is shown — the spill policy's output when one applied.

      • ReadonlytoolCallId: string
    • { bytes?: Buffer; kind: "image"; mediaType?: string; sha256: string }
      • Optional Readonlybytes?: Buffer
      • Readonlykind: "image"
      • Optional ReadonlymediaType?: string

        Populated from the signed attachment row; absent on legacy digest-only inputs.

      • Readonlysha256: string

        The committed digest, not a URL, file reference or substitute for bytes.

    • { bytes: Buffer; kind: "audio"; mediaType: string; sha256: string }
      • Readonlybytes: Buffer
      • Readonlykind: "audio"
      • ReadonlymediaType: string
      • Readonlysha256: string

        Original local binary, resolved from its signed audio inbox and attachment.