Skip to content

Register model_context_window_exceeded StopReason #295

@jamesjarvis

Description

@jamesjarvis

anthropic-sdk-go/message.go

Lines 5342 to 5351 in 2bec06f

type StopReason string
const (
StopReasonEndTurn StopReason = "end_turn"
StopReasonMaxTokens StopReason = "max_tokens"
StopReasonStopSequence StopReason = "stop_sequence"
StopReasonToolUse StopReason = "tool_use"
StopReasonPauseTurn StopReason = "pause_turn"
StopReasonRefusal StopReason = "refusal"
)

In the migration guide, the model_context_window_exceeded StopReason is mentioned, but not recorded in this SDK's official StopReason enum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions