UNPKG

agentlang

Version:

The easiest way to build the most reliable AI agents - enterprise-grade teams of AI agents that collaborate with each other and humans

30 lines 2.25 kB
import { Instance } from '../module.js'; import { Environment } from '../interpreter.js'; import { Statement } from '../../language/generated/ast.js'; import { Resolver } from '../resolvers/interface.js'; export declare const CoreModules: string[]; export declare function registerCoreModules(): void; export declare function setTimerRunning(timerInst: Instance): void; export declare function maybeCancelTimer(name: string, timer: NodeJS.Timeout, env: Environment): Promise<void>; export declare function addCreateAudit(resource: string, env: Environment): Promise<void>; export declare function addDeleteAudit(resource: string, previous_value: Instance | undefined, env: Environment): Promise<void>; export declare function addUpdateAudit(resource: string, previous_value: Instance | undefined, env: Environment): Promise<void>; export declare function createSuspension(suspId: string, continuation: string[], env: Environment): Promise<string | undefined>; export type Suspension = { continuation: Statement[]; flowContext?: string[]; env: Environment; }; export declare function restartSuspension(suspId: string, userData: string, env?: Environment): Promise<any>; export declare function lookupActiveSuspension(resolver: Resolver, inst: Instance, queryAll: boolean): Promise<any>; export declare function flushMonitoringData(monitorId: string): Promise<void>; export declare function fetchLatestMonitorForEvent(eventName: string): Promise<any>; export declare function fetchMonitorsForEvent(eventName: string, limit: number, offset: number): Promise<any>; export declare function eventMonitorData(inst: Instance | null | undefined): any; export declare function eventMonitorsData(insts: Instance[] | null | undefined, limit?: number, offset?: number): any; export declare function validateModule(moduleDef: any): Promise<Instance>; export declare function saveMigration(version: string, ups: string[] | undefined, downs: string[] | undefined): Promise<boolean>; export declare function loadMigration(version: string): Promise<Instance | undefined>; export declare function migrationUps(inst: Instance): string[] | undefined; export declare function migrationDowns(inst: Instance): string[] | undefined; //# sourceMappingURL=core.d.ts.map