Python class
AllowedToolChoice
AllowedToolChoiceβ
class max.pipelines.request.AllowedToolChoice(*, type='allowed_tools', tools, mode)
Bases: BaseModel
Specifies a subset of allowed tools and selection mode.
-
Parameters:
-
- type (Literal['allowed_tools'])
- tools (list[FunctionToolChoice])
- mode (ToolChoiceValueEnum)
modeβ
mode: ToolChoiceValueEnum
model_configβ
model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
toolsβ
tools: list[FunctionToolChoice]
typeβ
type: Literal['allowed_tools']
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!