Skip to content

Class: LMToolResultPart

Tool execution result returned to a model (LMToolResultPart).

URI: dspy:LMToolResultPart

 classDiagram
    class LMToolResultPart
    click LMToolResultPart href "../LMToolResultPart/"
      LMPart <|-- LMToolResultPart
        click LMPart href "../LMPart/"

      LMToolResultPart : call_id

      LMToolResultPart : content_parts





        LMToolResultPart --> "*" LMPart : content_parts
        click LMPart href "../LMPart/"



      LMToolResultPart : is_error

      LMToolResultPart : metadata





        LMToolResultPart --> "0..1" Any : metadata
        click Any href "../Any/"



      LMToolResultPart : part_type

      LMToolResultPart : provider_data





        LMToolResultPart --> "0..1" Any : provider_data
        click Any href "../Any/"



      LMToolResultPart : result_name

Inheritance

Slots

Name Cardinality and Range Description Inheritance
call_id 0..1
Identifier
Provider-issued tool-call id direct
is_error 0..1
Boolean
Whether a tool result represents an error direct
provider_data 0..1
Any
Provider-specific raw payload preserved with a normalized object direct
result_name 0..1
String
Name of the tool whose result is reported direct
content_parts *
LMPart
Heterogeneous content returned by the tool 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
ToolCallResults tool_call_results range LMToolResultPart

In Subsets

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:LMToolResultPart
native dspy:LMToolResultPart
close mcp:CallToolResult

LinkML Source

Direct

name: LMToolResultPart
description: Tool execution result returned to a model (``LMToolResultPart``).
in_subset:
- lm_contract
- tooling
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:CallToolResult
is_a: LMPart
slots:
- call_id
- is_error
- provider_data
slot_usage:
  part_type:
    name: part_type
    ifabsent: string(tool_result)
    equals_string: tool_result
attributes:
  result_name:
    name: result_name
    description: Name of the tool whose result is reported.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    domain_of:
    - LMToolResultPart
    range: string
  content_parts:
    name: content_parts
    description: Heterogeneous content returned by the tool.
    from_schema: https://w3id.org/lmodel/dspy
    domain_of:
    - ToolResult
    - LMToolResultPart
    range: LMPart
    multivalued: true
    inlined: true
    inlined_as_list: true

Induced

name: LMToolResultPart
description: Tool execution result returned to a model (``LMToolResultPart``).
in_subset:
- lm_contract
- tooling
from_schema: https://w3id.org/lmodel/dspy
close_mappings:
- mcp:CallToolResult
is_a: LMPart
slot_usage:
  part_type:
    name: part_type
    ifabsent: string(tool_result)
    equals_string: tool_result
attributes:
  result_name:
    name: result_name
    description: Name of the tool whose result is reported.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMToolResultPart
    domain_of:
    - LMToolResultPart
    range: string
  content_parts:
    name: content_parts
    description: Heterogeneous content returned by the tool.
    from_schema: https://w3id.org/lmodel/dspy
    owner: LMToolResultPart
    domain_of:
    - ToolResult
    - LMToolResultPart
    range: LMPart
    multivalued: true
    inlined: true
    inlined_as_list: true
  call_id:
    name: call_id
    description: Provider-issued tool-call id.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMToolResultPart
    domain_of:
    - ToolCall
    - ToolResult
    - LMToolCallPart
    - LMToolResultPart
    range: Identifier
  is_error:
    name: is_error
    description: Whether a tool result represents an error.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    ifabsent: boolean(False)
    owner: LMToolResultPart
    domain_of:
    - ToolResult
    - LMToolResultPart
    range: boolean
  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: LMToolResultPart
    domain_of:
    - ToolResult
    - LMToolCallPart
    - LMToolResultPart
    - LMToolSpec
    - LMOutput
    - LMResponse
    range: Any
  metadata:
    name: metadata
    description: Opaque key/value metadata passed alongside an object.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: LMToolResultPart
    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_result)
    owner: LMToolResultPart
    domain_of:
    - LMPart
    range: string
    required: true
    equals_string: tool_result