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

43 lines 2.72 kB
import { ModuleDefinition, Definition, RelationshipDefinition, WorkflowDefinition } from '../language/generated/ast.js'; import { Relationship, Module, Workflow } from './module.js'; import { AstNode, LangiumCoreServices, LangiumDocument } from 'langium'; import { Config } from './state.js'; export declare function extractDocument(fileName: string, services: LangiumCoreServices): Promise<LangiumDocument>; export declare function extractAstNode<T extends AstNode>(fileName: string, services: LangiumCoreServices): Promise<T>; export type ApplicationSpec = any; export declare const DefaultAppSpec: ApplicationSpec; export declare function getAppSpec(): ApplicationSpec; export declare function setDependenciesCallback(cb: Function): void; export type DependencyInfo = { appName: string; url: string; }; /** * Load a module from a file * @param fileName Path to the file containing the module * @param fsOptions Optional configuration for the filesystem * @param callback Function to be called after loading the module * @returns Promise that resolves when the module is loaded */ export declare function load(fileName: string, fsOptions?: any, callback?: Function): Promise<ApplicationSpec>; export declare function flushAllModules(): void; /** * Removes all existing user-modules and loads the specified module-file. * @param fileName Path to the file containing the module * @param fsOptions Optional configuration for the filesystem * @param callback Function to be called after loading the module * @returns Promise that resolves when the module is loaded */ export declare function flushAllAndLoad(fileName: string, fsOptions?: any, callback?: Function): Promise<ApplicationSpec>; export declare function loadAppConfig(configDir: string): Promise<Config>; export declare function loadCoreModules(): Promise<void>; export declare function addRelationshipFromDef(def: RelationshipDefinition, moduleName: string): Relationship; export declare function addWorkflowFromDef(def: WorkflowDefinition, moduleName: string, ispub?: boolean): Workflow; export declare function runStandaloneStatements(): Promise<void>; export declare function addFromDef(def: Definition, moduleName: string): Promise<void>; export declare function parseAndIntern(code: string, moduleName?: string): Promise<void>; export declare function internModule(module: ModuleDefinition, moduleFileName?: string): Promise<Module>; export declare function loadRawConfig(configFileName: string, validate?: boolean, fsOptions?: any): Promise<any>; export declare function configFromObject(cfgObj: any, validate?: boolean): any; export declare function generateRawConfig(configObj: any): string; //# sourceMappingURL=loader.d.ts.map