Class: LMToolCallPart
Model-issued request to call a tool (LMToolCallPart).
URI: dspy:LMToolCallPart
classDiagram
class LMToolCallPart
click LMToolCallPart href "../LMToolCallPart/"
LMPart <|-- LMToolCallPart
click LMPart href "../LMPart/"
LMToolCallPart : args
LMToolCallPart --> "0..1" Any : args
click Any href "../Any/"
LMToolCallPart : call_id
LMToolCallPart : metadata
LMToolCallPart --> "0..1" Any : metadata
click Any href "../Any/"
LMToolCallPart : name
LMToolCallPart : part_type
LMToolCallPart : provider_data
LMToolCallPart --> "0..1" Any : provider_data
click Any href "../Any/"
Inheritance
- LMPart
- LMToolCallPart
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| call_id | 0..1 Identifier |
Provider-issued tool call id (mapped to id on the Pydantic model) |
direct |
| args | 0..1 Any |
JSON-schema dict describing tool argument shapes | direct |
| provider_data | 0..1 Any |
Provider-specific raw payload preserved with a normalized object | direct |
| name | 1 String |
Name of the tool to call | direct |
| metadata | 0..1 Any |
Opaque key/value metadata passed alongside an object | LMPart |
| part_type | 1 String |
Discriminator for the LMPart subclass | LMPart |
Usages
| used by | used in | type | used |
|---|---|---|---|
| ToolCalls | tool_calls | range | LMToolCallPart |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/dspy
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | dspy:LMToolCallPart |
| native | dspy:LMToolCallPart |
| close | mcp:CallToolRequest |
LinkML Source
Direct
name: LMToolCallPart
description: Model-issued request to call a tool (``LMToolCallPart``).
in_subset:
- lm_contract
- tooling
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:CallToolRequest
is_a: LMPart
slots:
- call_id
- args
- provider_data
- name
slot_usage:
part_type:
name: part_type
ifabsent: string(tool_call)
equals_string: tool_call
name:
name: name
description: Name of the tool to call.
required: true
call_id:
name: call_id
description: Provider-issued tool call id (mapped to ``id`` on the Pydantic model).
Induced
name: LMToolCallPart
description: Model-issued request to call a tool (``LMToolCallPart``).
in_subset:
- lm_contract
- tooling
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:CallToolRequest
is_a: LMPart
slot_usage:
part_type:
name: part_type
ifabsent: string(tool_call)
equals_string: tool_call
name:
name: name
description: Name of the tool to call.
required: true
call_id:
name: call_id
description: Provider-issued tool call id (mapped to ``id`` on the Pydantic model).
attributes:
call_id:
name: call_id
description: Provider-issued tool call id (mapped to ``id`` on the Pydantic model).
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMToolCallPart
domain_of:
- ToolCall
- ToolResult
- LMToolCallPart
- LMToolResultPart
range: Identifier
args:
name: args
description: JSON-schema dict describing tool argument shapes.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMToolCallPart
domain_of:
- Tool
- ToolCall
- LMToolCallPart
range: Any
provider_data:
name: provider_data
description: Provider-specific raw payload preserved with a normalized object.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMToolCallPart
domain_of:
- ToolResult
- LMToolCallPart
- LMToolResultPart
- LMToolSpec
- LMOutput
- LMResponse
range: Any
name:
name: name
description: Name of the tool to call.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
slot_uri: rdfs:label
owner: LMToolCallPart
domain_of:
- NamedThing
- LMToolCallPart
- LMMessage
- LMToolSpec
range: string
required: true
metadata:
name: metadata
description: Opaque key/value metadata passed alongside an object.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
owner: LMToolCallPart
domain_of:
- ToolResult
- Citation
- LMPart
- LMMessage
- LMToolSpec
- LMRequest
- LMUsage
- LMOutput
- LMResponse
range: Any
part_type:
name: part_type
description: Discriminator for the LMPart subclass. One of the ``LMPartType``
permissible values.
from_schema: https://w3id.org/lmodel/dspy
rank: 1000
ifabsent: string(tool_call)
owner: LMToolCallPart
domain_of:
- LMPart
range: string
required: true
equals_string: tool_call