lume-ai
Version:
A powerful yet simple library to build your own AI applications.
29 lines (28 loc) • 814 B
TypeScript
import { Tool } from '../interfaces/Tool';
/**
* Tool for interpreting code on a safe sandbox environment.
* Requires a E2B API key (set as E2B_API_KEY in environment variables).
*/
export declare class E2BCodeInterpreter extends Tool {
private apiKey;
constructor(apiKey?: string);
get metadata(): {
name: string;
description: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
};
get extraTokens(): number;
/**
* Executes a E2B Code Interpreter.
* @param params - { code: string }
* @returns A concise string summary of the top E2B Code Interpreter results for LLMs.
*/
execute(params: {
code: string;
}): Promise<string>;
}