@ainulabs/ainu - v0.0.5
    Preparing search index...

    Class Tool

    A class that represents a tool that can be used in Agent. This class is used to help dynamically build tools for an agent, by wrapping the handler function using [[buildTool]] to allow for error handling, result formatting, and optional context passing.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    config: ToolConfig

    The tool configuration parameters

    name: string

    The name of the tool

    Methods