industry-tools
Version:
Industry Tools is a TypeScript library providing essential tools for the Industry AI Agent Platform.
22 lines (21 loc) • 795 B
TypeScript
import { ToolStorage } from "./ToolStorage";
interface QueryExpression {
condition: string;
values: Record<string, unknown>;
}
interface ScanExpression {
filter: string;
values: Record<string, unknown>;
}
export declare class DynamoToolStorage extends ToolStorage {
private client;
private tableName;
constructor(region: string, tableName: string);
getItem<T>(pk: string, sk: string): Promise<T | null>;
createItem<T>(pk: string, sk: string, props: T): Promise<void>;
deleteItem(pk: string, sk: string): Promise<void>;
updateItem<T>(pk: string, sk: string, updateValues: T & Record<string, unknown>): Promise<void>;
query<T>(expression: QueryExpression): Promise<Array<T>>;
scan<T>(expression: ScanExpression): Promise<Array<T>>;
}
export {};