Skip to content

Class: ToolCallResults

Container for tool-call execution results (dspy.ToolCallResults).

URI: dspy:ToolCallResults

 classDiagram
    class ToolCallResults
    click ToolCallResults href "../ToolCallResults/"
      NamedThing <|-- ToolCallResults
        click NamedThing href "../NamedThing/"

      ToolCallResults : description

      ToolCallResults : id

      ToolCallResults : name

      ToolCallResults : tool_call_results





        ToolCallResults --> "*" LMToolResultPart : tool_call_results
        click LMToolResultPart href "../LMToolResultPart/"



Inheritance

Slots

Name Cardinality and Range Description Inheritance
tool_call_results *
LMToolResultPart
Results returned for previously issued tool calls direct
id 1
Identifier
Stable opaque identifier for an instance NamedThing
name 0..1
String
Short human-readable name NamedThing
description 0..1
String
Free-form description NamedThing

In Subsets

Identifier and Mapping Information

Annotations

property value
dspy_source_paths ['dspy/adapters/types/tool.py']
dspy_source_urls ['https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/tool.py']

Schema Source

Mappings

Mapping Type Mapped Value
self dspy:ToolCallResults
native dspy:ToolCallResults
broad mcp:CallToolResult

LinkML Source

Direct

name: ToolCallResults
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/adapters/types/tool.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/tool.py
description: Container for tool-call execution results (``dspy.ToolCallResults``).
in_subset:
- tooling
from_schema: https://w3id.org/lmodel/dspy
broad_mappings:
- mcp:CallToolResult
is_a: NamedThing
slots:
- tool_call_results

Induced

name: ToolCallResults
annotations:
  dspy_source_paths:
    tag: dspy_source_paths
    value:
    - dspy/adapters/types/tool.py
  dspy_source_urls:
    tag: dspy_source_urls
    value:
    - https://github.com/stanfordnlp/dspy/blob/main/dspy/adapters/types/tool.py
description: Container for tool-call execution results (``dspy.ToolCallResults``).
in_subset:
- tooling
from_schema: https://w3id.org/lmodel/dspy
broad_mappings:
- mcp:CallToolResult
is_a: NamedThing
attributes:
  tool_call_results:
    name: tool_call_results
    description: Results returned for previously issued tool calls.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    owner: ToolCallResults
    domain_of:
    - ToolCallResults
    range: LMToolResultPart
    multivalued: true
    inlined: true
    inlined_as_list: true
  id:
    name: id
    description: Stable opaque identifier for an instance.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: schema:identifier
    identifier: true
    owner: ToolCallResults
    domain_of:
    - NamedThing
    range: Identifier
    required: true
  name:
    name: name
    description: Short human-readable name.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: rdfs:label
    owner: ToolCallResults
    domain_of:
    - NamedThing
    - LMToolCallPart
    - LMMessage
    - LMToolSpec
    range: string
  description:
    name: description
    description: Free-form description.
    from_schema: https://w3id.org/lmodel/dspy
    rank: 1000
    slot_uri: dct:description
    owner: ToolCallResults
    domain_of:
    - NamedThing
    - LMToolSpec
    range: string