Class: ToolChoice
Controls tool selection behavior for sampling requests.
URI: mcp:ToolChoice
classDiagram
class ToolChoice
click ToolChoice href "../ToolChoice/"
ToolChoice : mode
ToolChoice --> "0..1" ToolChoiceModeEnum : mode
click ToolChoiceModeEnum href "../ToolChoiceModeEnum/"
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| mode | 0..1 ToolChoiceModeEnum |
Controls the tool use ability of the model | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| CreateMessageRequestParams | toolChoice | range | ToolChoice |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/mcp
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | mcp:ToolChoice |
| native | mcp:ToolChoice |
LinkML Source
Direct
name: ToolChoice
description: Controls tool selection behavior for sampling requests.
from_schema: https://w3id.org/lmodel/mcp
slots:
- mode
slot_usage:
mode:
name: mode
description: Controls the tool use ability of the model.
range: ToolChoiceModeEnum
Induced
name: ToolChoice
description: Controls tool selection behavior for sampling requests.
from_schema: https://w3id.org/lmodel/mcp
slot_usage:
mode:
name: mode
description: Controls the tool use ability of the model.
range: ToolChoiceModeEnum
attributes:
mode:
name: mode
description: Controls the tool use ability of the model.
from_schema: https://w3id.org/lmodel/mcp
rank: 1000
alias: mode
owner: ToolChoice
domain_of:
- ToolChoice
- URLElicitation
- ElicitRequestFormParams
- ElicitRequestURLParams
range: ToolChoiceModeEnum