Skip to content

handle stop_reason == "pause_turn" #124

@andyrdt

Description

@andyrdt

One stop reason for Claude completions is pause_turn. It is common when enabling web search.

Currently, this results in a pydantic parsing error, since we're not explicitly checking for this stop reason.

I think there's a design choice here. We could pass the response through, back to the user, and expect them to handle the retrying of stop_reason == "pause_turn". Or we could bake this retry behavior into the client. I think probably the latter would be preferable, but open to feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions