@mastra/core
Version:
Mastra is the Typescript framework for building AI agents and assistants. It’s used by some of the largest companies in the world to build internal AI automation tooling and customer-facing agents.
23 lines • 815 B
TypeScript
import { MastraBase } from '../../base.js';
import type { ToolOptions } from '../../utils.js';
import type { CoreTool, ToolAction, VercelTool, VercelToolV5 } from '../types.js';
export type ToolToConvert = VercelTool | ToolAction<any, any, any> | VercelToolV5;
export type LogType = 'tool' | 'toolset' | 'client-tool';
export declare class CoreToolBuilder extends MastraBase {
private originalTool;
private options;
private logType?;
constructor(input: {
originalTool: ToolToConvert;
options: ToolOptions;
logType?: LogType;
});
private getParameters;
private getOutputSchema;
private buildProviderTool;
private createLogMessageOptions;
private createExecute;
buildV5(): VercelToolV5;
build(): CoreTool;
}
//# sourceMappingURL=builder.d.ts.map