dd-trace
    Preparing search index...

    Interface ToolCall

    Represents a tool call made by an AI assistant in an agentic workflow.

    interface ToolCall {
        function: { arguments: string; name: string };
        id: string;
        mcp?: { server_id: string };
    }
    Index
    function: { arguments: string; name: string }

    Details about the function being invoked.

    Type Declaration

    • arguments: string

      String containing the arguments to pass to the tool.

    • name: string

      The name of the tool/function to be called.

    id: string

    Unique identifier for this specific tool call instance used to correlate the call with its response.

    mcp?: { server_id: string }

    Set when the tool call runs an MCP tool: references an entry of the mcpServers evaluate option.

    Type Declaration

    • server_id: string

      The id of the MCP server entry of the tool.