langchain.js
    Preparing search index...

    Marker parameter for objects that tools can return directly.

    If a custom BaseTool is invoked with a ToolCall and the output of custom code is not an instance of DirectToolOutput, the output will automatically be coerced to a string and wrapped in a ToolMessage.

    interface DirectToolOutput {
        lc_direct_tool_output: true;
    }

    Implemented by

    Index

    Properties

    lc_direct_tool_output: true