UNPKG

@autobe/agent

Version:

AI backend server code generator

21 lines (20 loc) 842 B
import { AutoBeEvent, AutoBeEventSource } from "@autobe/interface"; import { IAutoBeConfig } from "../structures/IAutoBeConfig"; import { IAutoBeVendor } from "../structures/IAutoBeVendor"; /** * Generates automatic consent messages when AI hesitates and seeks permission * before function calling. * * Uses fast LLM (chatgpt) to analyze assistant messages and determine if * they're seeking function execution approval. Returns strong directive consent * message to break permission-seeking loops, or `null` if not applicable. * * @returns Consent message if applicable, `null` otherwise */ export declare const consentFunctionCall: (props: { dispatch: (event: AutoBeEvent) => void; source: AutoBeEventSource; config: IAutoBeConfig; vendor: IAutoBeVendor; assistantMessage: string; }) => Promise<string | null>;