Debian Codegraph @

src/anthropic/types/output_config_param.py

raw
1 from __future__ import annotations
2
3 from typing import Optional
4 from typing_extensions import Literal, TypedDict
5
6 from .json_output_format_param import JSONOutputFormatParam
7
8 __all__ = ["OutputConfigParam"]
9
10
11 class OutputConfigParam(TypedDict, total=False):
12 effort: Optional[Literal["low", "medium", "high", "xhigh", "max"]]
13 """How much effort the model should put into its response.
14
15 Higher effort levels may result in more thorough analysis but take longer.
16
17 Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.
18 """
19
20 format: Optional[JSONOutputFormatParam]
21 """A schema to specify Claude's output format in responses.
22
23 See
24 [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)
25 """