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

32 lines 1.95 kB
import { Instance, InstanceAttributes, Relationship } from '../../module.js'; import { JoinInfo, Resolver } from '../interface.js'; import { JoinSpec } from '../../../language/generated/ast.js'; export declare class SqlDbResolver extends Resolver { private txnId; private embeddings; constructor(name: string); getName(): string; private getDbContext; onSetPath(moduleName: string, entryName: string): string; private insertInstance; createInstance(inst: Instance): Promise<Instance>; upsertInstance(inst: Instance): Promise<Instance>; updateInstance(inst: Instance, newAttrs: InstanceAttributes): Promise<Instance>; static EmptyResultSet: Array<Instance>; queryInstances(inst: Instance, queryAll?: boolean, distinct?: boolean): Promise<Instance[]>; static MarkDeletedObject: object; deleteInstance(target: Instance | Instance[], purge: boolean): Promise<Instance[] | Instance>; queryChildInstances(parentPath: string, inst: Instance): Promise<Instance[]>; queryConnectedInstances(relationship: Relationship, connectedInstance: Instance, inst: Instance): Promise<Instance[]>; queryByJoin(inst: Instance, joinInfo: JoinInfo[], intoSpec: Map<string, string>, distinct?: boolean, rawJoinSpec?: JoinSpec): Promise<any>; private processRawJoinSpec; private processJoinInfo; private deleteInstanceHelper; connectInstances(node1: Instance, otherNodeOrNodes: Instance | Instance[], relEntry: Relationship, orUpdate: boolean): Promise<Instance>; connectInstancesHelper(node1: Instance, node2: Instance, relEntry: Relationship, orUpdate: boolean): Promise<void>; fullTextSearch(entryName: string, moduleName: string, query: string, options?: Map<string, any>): Promise<any>; startTransaction(): Promise<string>; commitTransaction(txnId: string): Promise<string>; rollbackTransaction(txnId: string): Promise<string>; } //# sourceMappingURL=impl.d.ts.map