Forest Admin - API reference
    Preparing search index...
    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    tools: RemoteTool<unknown>[]

    Accessors

    • get toolDefinitionsForFrontend(): {
          description: string;
          name: string;
          responseFormat: string;
          schema: JsonSchema7Type;
          sourceId: string;
          sourceType: string;
      }[]

      Returns {
          description: string;
          name: string;
          responseFormat: string;
          schema: JsonSchema7Type;
          sourceId: string;
          sourceType: string;
      }[]

    Methods

    • Parameters

      • toolName: string
      • messages: ChatCompletionMessageParam[]
      • OptionalsourceId: string

      Returns Promise<unknown>