Home / File/ stop_reason.py — anthropic-sdk-python Source File

stop_reason.py — anthropic-sdk-python Source File

Architecture documentation for stop_reason.py, a python file in the anthropic-sdk-python codebase. 1 imports, 3 dependents.

File python AnthropicClient 1 imports 3 dependents

Entity Profile

Dependency Diagram

graph LR
  f79bf88b_d25b_8452_5841_c144754741ff["stop_reason.py"]
  37c05070_ca59_d596_7250_de9d1939227f["typing_extensions"]
  f79bf88b_d25b_8452_5841_c144754741ff --> 37c05070_ca59_d596_7250_de9d1939227f
  2eb1aa7f_c778_4d68_0a26_a102fadd9638["__init__.py"]
  2eb1aa7f_c778_4d68_0a26_a102fadd9638 --> f79bf88b_d25b_8452_5841_c144754741ff
  21a395d8_015e_6c08_b7bd_94e93c67aaf8["message.py"]
  21a395d8_015e_6c08_b7bd_94e93c67aaf8 --> f79bf88b_d25b_8452_5841_c144754741ff
  69413c7a_3892_2c3c_ec44_39435bec1ba5["raw_message_delta_event.py"]
  69413c7a_3892_2c3c_ec44_39435bec1ba5 --> f79bf88b_d25b_8452_5841_c144754741ff
  style f79bf88b_d25b_8452_5841_c144754741ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing_extensions import Literal, TypeAlias

__all__ = ["StopReason"]

StopReason: TypeAlias = Literal["end_turn", "max_tokens", "stop_sequence", "tool_use", "pause_turn", "refusal"]

Dependencies

  • typing_extensions

Frequently Asked Questions

What does stop_reason.py do?
stop_reason.py is a source file in the anthropic-sdk-python codebase, written in python. It belongs to the AnthropicClient domain.
What does stop_reason.py depend on?
stop_reason.py imports 1 module(s): typing_extensions.
What files import stop_reason.py?
stop_reason.py is imported by 3 file(s): __init__.py, message.py, raw_message_delta_event.py.
Where is stop_reason.py in the architecture?
stop_reason.py is located at src/anthropic/types/stop_reason.py (domain: AnthropicClient, directory: src/anthropic/types).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free