UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

45 lines (44 loc) 2.55 kB
import type { ToolSet } from "ai"; import type * as CodeModeModule from "#compiled/@ai-sdk/code-mode/index.js"; /** Model-facing tool name for eve's dynamic subagent orchestration tool. */ export declare const WORKFLOW_TOOL_NAME = "Workflow"; type WorkflowSandboxModule = { readonly continueCodeModeInterrupt: typeof CodeModeModule.experimental_continueCodeModeInterrupt; readonly createCodeModeTool: typeof CodeModeModule.experimental_createCodeModeTool; readonly getCodeModeInterrupt: typeof CodeModeModule.experimental_getCodeModeInterrupt; readonly requestCodeModeInterrupt: typeof CodeModeModule.experimental_requestCodeModeInterrupt; readonly unwrapCodeModeResult: typeof CodeModeModule.experimental_unwrapCodeModeResult; }; export type WorkflowSandboxInterrupt = CodeModeModule.CodeModeInterrupt; export type WorkflowSandboxContinuationSecurity = CodeModeModule.CodeModeContinuationSecurityOptions; export declare function installWorkflowSandboxModule(module: WorkflowSandboxModule): void; export declare function createWorkflowSandboxTool(input: { readonly bridgeRequestLimit: number; readonly continuationSecurity: WorkflowSandboxContinuationSecurity; readonly hostTools: ToolSet; }): Promise<ToolSet[string]>; export declare function requestWorkflowSandboxInterrupt(input: { readonly kind: string; readonly task: unknown; readonly toolInput: unknown; readonly toolName: string; }): Promise<unknown>; export declare function getWorkflowSandboxInterrupt(result: unknown, continuationSecurity: WorkflowSandboxContinuationSecurity): Promise<WorkflowSandboxInterrupt | undefined>; export declare function continueWorkflowSandboxInterrupt(input: { readonly bridgeRequestLimit: number; readonly continuationSecurity: WorkflowSandboxContinuationSecurity; readonly interrupt: WorkflowSandboxInterrupt; readonly resolution: unknown; readonly tools: ToolSet; }): Promise<unknown>; export declare function unwrapWorkflowSandboxResult(value: unknown, continuationSecurity: WorkflowSandboxContinuationSecurity): Promise<{ readonly output: unknown; readonly status: "completed"; } | { readonly interrupt: WorkflowSandboxInterrupt; readonly status: "interrupted"; }>; export declare function readWorkflowSandboxResolution(options: unknown): unknown; /** Reconstructs every unresolved interruption from the authenticated continuation. */ export declare function getWorkflowSandboxPendingInterrupts(interrupt: WorkflowSandboxInterrupt): WorkflowSandboxInterrupt[]; export {};