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
126 lines • 4.71 kB
TypeScript
import { Expr, Pattern, Statement } from '../language/generated/ast.js';
export declare const PathAttributeName: string;
export declare const PathAttributeNameQuery: string;
export declare const ParentAttributeName: string;
export declare const DeletedFlagAttributeName: string;
export declare function isPathAttribute(n: string): boolean;
export type UnautInfo = {
opr: string;
entity: string;
};
export declare class UnauthorisedError extends Error {
constructor(message?: string | UnautInfo, options?: ErrorOptions);
}
export declare class BadRequestError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare class UserNotFoundError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare class UserNotConfirmedError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare class PasswordResetRequiredError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare class TooManyRequestsError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare class InvalidParameterError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare class ExpiredCodeError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare class CodeMismatchError extends Error {
constructor(message?: string, options?: ErrorOptions);
}
export declare let FetchModuleFn: any;
export declare function setModuleFnFetcher(f: Function): void;
export declare let SetSubscription: any;
export declare function setSubscriptionFn(f: Function): void;
export declare const ForceReadPermFlag = "f-r-f";
export declare const FlowSuspensionTag = "--";
export declare enum SubGraphType {
EVENT = 0,
IF = 1,
FOR_EACH = 2,
DELETE = 3,
PURGE = 4,
RETURN = 5,
AGENT = 6,
NONE = 7
}
export declare class ExecGraphNode {
code: Statement | Pattern | Expr;
codeStr: string | undefined;
subGraphIndex: number;
subGraphType: SubGraphType;
constructor(statement: Statement | Pattern | Expr, subGraphIndex?: number, subGraphType?: SubGraphType);
asObject(): any;
}
export declare class ExecGraph {
private rootNodes;
private subGraphs;
private parentGraph;
private eventName;
private activeModuleName;
private hasAgentsFlag;
private loopBody;
static Empty: ExecGraph;
static isEmpty(g: ExecGraph): boolean;
constructor();
pushNode(node: ExecGraphNode): ExecGraph;
pushSubGraph(execGraph: ExecGraph): ExecGraph;
getSubGraphsLength(): number;
getLastSubGraphIndex(): number;
fetchSubGraphAt(index: number): ExecGraph;
fetchForEachBodySubGraph(): ExecGraph;
fetchIfConsequentSubGraph(): ExecGraph;
fetchIfAlternativeSubGraph(): ExecGraph | undefined;
getRootNodes(): ExecGraphNode[];
setActiveModuleName(moduleName: string | undefined): ExecGraph;
getActiveModuleName(): string | undefined;
getParentGraph(): ExecGraph | undefined;
setEventName(eventName: string | undefined): ExecGraph;
getEventName(): string | undefined;
setHasAgents(flag: boolean): ExecGraph;
hasAgents(): boolean;
canCache(): boolean;
setIsLoopBody(): ExecGraph;
isLoopBody(): boolean;
asObject(): any[];
}
export declare class ExecGraphWalker {
private offset;
private maxOffset;
private rootNodes;
constructor(execGraph: ExecGraph);
hasNext(): boolean;
nextNode(): ExecGraphNode;
currentNode(): ExecGraphNode;
reset(): ExecGraphWalker;
}
export type FkSpec = {
moduleName: string;
entityName: string;
columnName: string;
targetModuleName: string;
targetEntityName: string;
targetColumnName: string;
onDelete: 'CASCADE' | 'SET NULL' | 'SET DEFAULT' | undefined;
onUpdate: 'CASCADE' | 'SET NULL' | 'SET DEFAULT' | undefined;
};
export declare function setRuntimeMode_dev(): void;
export declare function setRuntimeMode_prod(): void;
export declare function setRuntimeMode_init_schema(): void;
export declare function setRuntimeMode_migration(): void;
export declare function setRuntimeMode_undo_migration(): void;
export declare function setRuntimeMode_generate_migration(): void;
export declare function isRuntimeMode_dev(): boolean;
export declare function isRuntimeMode_prod(): boolean;
export declare function isRuntimeMode_init_schema(): boolean;
export declare function isRuntimeMode_migration(): boolean;
export declare function isRuntimeMode_generate_migration(): boolean;
export declare function isRuntimeMode_undo_migration(): boolean;
//# sourceMappingURL=defs.d.ts.map