GenAIFinishReason: {
    COMPACTION: "compaction";
    CONTENT_FILTER: "content_filter";
    ERROR: "error";
    LENGTH: "length";
    STOP: "stop";
    TOOL_CALL: "tool_call";
} = ...

Well-known gen_ai.response.finish_reasons values.

Type declaration

  • Readonly COMPACTION: "compaction"
  • Readonly CONTENT_FILTER: "content_filter"
  • Readonly ERROR: "error"
  • Readonly LENGTH: "length"
  • Readonly STOP: "stop"
  • Readonly TOOL_CALL: "tool_call"