Skip to main content

Python class

AllowedToolChoice

AllowedToolChoice​

class max.pipelines.request.AllowedToolChoice(*, type='allowed_tools', tools, mode)

source

Bases: BaseModel

Specifies a subset of allowed tools and selection mode.

Parameters:

mode​

mode: ToolChoiceValueEnum

source

model_config​

model_config: ClassVar[ConfigDict] = {'frozen': True}

source

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

tools​

tools: list[FunctionToolChoice]

source

type​

type: Literal['allowed_tools']

source