|
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.
anthropic-sdk-go/message.go
Lines 5342 to 5351 in 2bec06f
In the migration guide, the
model_context_window_exceededStopReason is mentioned, but not recorded in this SDK's official StopReason enum.