Class: LMToolChoice
Tool-choice controls for native tool-capable models.
URI: dspy:LMToolChoice
classDiagram
class LMToolChoice
click LMToolChoice href "../LMToolChoice/"
LMToolChoice : allowed
LMToolChoice : mode
LMToolChoice --> "0..1" ToolChoiceMode : mode
click ToolChoiceMode href "../ToolChoiceMode/"
LMToolChoice : parallel
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| mode | 0..1 ToolChoiceMode |
direct | |
| allowed | * String |
Tool names a model is allowed to call | direct |
| parallel | 0..1 Boolean |
Whether parallel tool calls are permitted | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| LMConfig | tool_choice | range | LMToolChoice |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LMToolChoice |
| native | dspy:LMToolChoice |
| close | mcp:ToolChoiceModeEnum |
LinkML Source
Direct
name: LMToolChoice
description: Tool-choice controls for native tool-capable models.
in_subset:
- lm_contract
- tooling
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:ToolChoiceModeEnum
slots:
- mode
- allowed
- parallel
Induced
name: LMToolChoice
description: Tool-choice controls for native tool-capable models.
in_subset:
- lm_contract
- tooling
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:ToolChoiceModeEnum
attributes:
mode:
name: mode
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMToolChoice
domain_of:
- LMToolChoice
range: ToolChoiceMode
allowed:
name: allowed
description: Tool names a model is allowed to call.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMToolChoice
domain_of:
- LMToolChoice
range: string
multivalued: true
parallel:
name: parallel
description: Whether parallel tool calls are permitted.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMToolChoice
domain_of:
- LMToolChoice
range: boolean