Skip to content

Enum: ToolChoiceMode

Provider tool-choice mode used by LMToolChoice.

URI: dspy:ToolChoiceMode

Permissible Values

Value Meaning Description
auto None Model decides whether to call tools
required None Model must call at least one tool
none None Tools are disabled for this call

Slots

Name Description
mode

Identifier and Mapping Information

Schema Source

LinkML Source

name: ToolChoiceMode
description: Provider tool-choice mode used by ``LMToolChoice``.
from_schema: https://w3id.org/lmodel/dspy
exact_mappings:
- mcp:ToolChoiceModeEnum
rank: 1000
permissible_values:
  auto:
    text: auto
    description: Model decides whether to call tools.
  required:
    text: required
    description: Model must call at least one tool.
  none:
    text: none
    description: Tools are disabled for this call.