@eko-ai/eko
Version:
Empowering language to transform human words into action.
13 lines • 939 B
TypeScript
import { LanguageModelV1FunctionTool } from "@ai-sdk/provider";
import { Tool, ToolSchema } from "../types/tools.types";
import { Agent } from "../agent";
export declare function sleep(time: number): Promise<void>;
export declare function uuidv4(): string;
export declare function call_timeout<R extends Promise<any>>(fun: () => R, timeout: number, error_callback?: (e: string) => void): Promise<R>;
export declare function convertToolSchema(tool: ToolSchema): LanguageModelV1FunctionTool;
export declare function toImage(imageData: string): Uint8Array | URL;
export declare function mergeTools<T extends Tool | LanguageModelV1FunctionTool>(tools1: T[], tools2: T[]): T[];
export declare function mergeAgents(agents1: Agent[], agents2: Agent[]): Agent[];
export declare function sub(str: string, maxLength: number, appendPoint?: boolean): string;
export declare function fixXmlTag(code: string): string;
//# sourceMappingURL=utils.d.ts.map