dd-trace
    Preparing search index...

    Interface ToolMessage

    A message containing the result of a tool invocation.

    interface ToolMessage {
        content: string;
        role: "tool";
        tool_call_id: string;
    }
    Index

    Properties

    content: string

    The output returned by the tool execution.

    role: "tool"

    The role identifier, always set to 'tool' for tool execution results.

    tool_call_id: string

    The unique identifier linking this result to the original tool call. Must correspond to a ToolCall.id from a previous AssistantToolCallMessage.