agsamantha/node_modules/langchain/dist/experimental/autogpt/schema.d.ts
2024-10-02 15:15:21 -05:00

18 lines
665 B
TypeScript

import { StructuredTool } from "@langchain/core/tools";
/**
* Type alias for StructuredTool. It is part of the tools module in
* LangChain, which includes a variety of tools used for different
* purposes.
*/
export type ObjectTool = StructuredTool;
export declare const FINISH_NAME = "finish";
/**
* Interface that describes an action that can be performed by the AutoGPT
* model in LangChain. It has a `name` property, which is a string that
* represents the name of the action, and an `args` property, which is an
* object that contains the arguments for the action.
*/
export interface AutoGPTAction {
name: string;
args: Record<string, any>;
}