langchain.js
    Preparing search index...

    A LangChain Tool object wrapping a Connery action. ConneryAction is a structured tool that can be used only in the agents supporting structured tools.

    Hierarchy (View Summary)

    Index

    Constructors

    • Creates a ConneryAction instance based on the provided Connery Action.

      Parameters

      • _action: Action

        The Connery Action.

      • _service: ConneryService

        The ConneryService instance.

      Returns ConneryAction

      A ConneryAction instance.

    Properties

    _action: Action

    The Connery Action.

    _service: ConneryService

    The ConneryService instance.

    description: string
    name: string
    schema: ConneryActionSchema

    Methods

    • Runs the Connery Action with the provided input.

      Parameters

      • arg: InferInteropZodOutput<ConneryActionSchema>

        The input object expected by the action.

      Returns Promise<string>

      A promise that resolves to a JSON string containing the output of the action.

    • Creates a Zod schema for the input object expected by the Connery action.

      Returns ZodObject<Record<string, ZodString | ZodOptional<ZodString>>>

      A Zod schema for the input object expected by the Connery action.