langchain.js
    Preparing search index...

    Class RequestsPostTool

    Class for making POST requests. Extends the Tool class and implements the RequestTool interface. The input should be a JSON string with two keys: 'url' and 'data'. The output will be the text response of the POST request.

    Hierarchy (View Summary)

    Implements

    • RequestTool
    Index

    Constructors

    • Parameters

      • headers: Headers = {}
      • __namedParameters: { maxOutputLength?: number } = {}

      Returns RequestsPostTool

    Properties

    description: string = ...
    headers: Headers = {}
    maxOutputLength: number = Infinity
    name: string = "requests_post"

    Methods

    • Returns string