Pinecone TypeScript SDK - v9.0.0
    Preparing search index...

    Type Alias FinishReasonEnum

    Indicates why the chat response generation stopped. This signals the end of the response.

    • stop: The model finished generating the response.

    • length: Generation was cut off because the maximum number of tokens allowed was reached.

    • content_filter: Generation stopped because content was blocked by content filtering rules (for example, content that contains hate speech or violent material).

    • tool_calls: Generation stopped because a tool call was triggered.

    • function_call: Generation stopped because a function call was triggered.

    This enum is provided for convenience but is not enforced.

    type FinishReasonEnum = {
        ContentFilter: "content_filter";
        FunctionCall: "function_call";
        Length: "length";
        Stop: "stop";
        ToolCalls: "tool_calls";
    }
    Index
    ContentFilter: "content_filter" = 'content_filter'

    Generation stopped because of content filtering.

    FunctionCall: "function_call" = 'function_call'

    Generation requested a function call.

    Length: "length" = 'length'

    Generation reached the token limit.

    Stop: "stop" = 'stop'

    Generation reached a natural stopping point.

    ToolCalls: "tool_calls" = 'tool_calls'

    Generation requested a tool call.