IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

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