in src/anthropic/resources/messages/messages.py [0:0]
def stream(
self,
*,
max_tokens: int,
messages: Iterable[MessageParam],
model: ModelParam,
metadata: MetadataParam | NotGiven = NOT_GIVEN,
stop_sequences: List[str] | NotGiven = NOT_GIVEN,
system: Union[str, Iterable[TextBlockParam]] | NotGiven = NOT_GIVEN,
temperature: float | NotGiven = NOT_GIVEN,
top_k: int | NotGiven = NOT_GIVEN,
top_p: float | NotGiven = NOT_GIVEN,
thinking: ThinkingConfigParam | NotGiven = NOT_GIVEN,
tool_choice: ToolChoiceParam | NotGiven = NOT_GIVEN,
tools: Iterable[ToolUnionParam] | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,