langchain.js
    Preparing search index...

    Class ToolCallLimitExceededError

    Exception raised when tool call limits are exceeded.

    This exception is raised when the configured exit behavior is 'error' and either the thread or run tool call limit has been exceeded.

    Hierarchy

    • Error
      • ToolCallLimitExceededError
    Index

    Constructors

    • Parameters

      • threadCount: number
      • runCount: number
      • threadLimit: undefined | number
      • runLimit: undefined | number
      • toolName: undefined | string = undefined

      Returns ToolCallLimitExceededError

    Properties

    runCount: number

    Current run tool call count.

    runLimit: undefined | number

    Run tool call limit (if set).

    threadCount: number

    Current thread tool call count.

    threadLimit: undefined | number

    Thread tool call limit (if set).

    toolName: undefined | string

    Tool name being limited (if specific tool), or undefined for all tools.