Variable FinishReasonEnumConst

FinishReasonEnum: {
    ContentFilter: "content_filter";
    FunctionCall: "function_call";
    Length: "length";
    Stop: "stop";
} = ...

Enum representing the reasons why a response generation may finish.

  • Stop: The response was completed normally.
  • Length: The response was truncated due to length constraints.
  • ContentFilter: The response was stopped by a content filter.
  • FunctionCall: The response generation was interrupted by a function call.

Type declaration

  • Readonly ContentFilter: "content_filter"
  • Readonly FunctionCall: "function_call"
  • Readonly Length: "length"
  • Readonly Stop: "stop"