@hashgraphonline/conversational-agent
Version:
Hashgraph Online conversational AI agent implementing HCS-10 communication, HCS-2 registries, and content inscription on Hedera. https://hol.org
23 lines (21 loc) • 1.07 kB
TypeScript
import { Bee, PostageBatch } from '@ethersphere/bee-js';
import { PostageBatchCurated, PostageBatchSummary } from './model';
import { SwarmConfig } from './config';
export interface ToolResponse {
[x: string]: unknown;
tools?: {
[x: string]: unknown;
name: string;
};
_meta?: {
[x: string]: unknown;
};
}
export declare function hexToBytes(hex: string): Uint8Array;
export declare const getBatchSummary: (batch: PostageBatch | PostageBatchCurated) => PostageBatchSummary;
export declare const getResponseWithStructuredContent: <T>(data: T) => ToolResponse;
export declare const errorHasStatus: (error: unknown, status: number) => boolean;
export declare const getErrorMessage: (error: unknown) => string;
export declare const runWithTimeout: <T>(asyncAction: Promise<T>, timeout: number) => Promise<[unknown, boolean]>;
export declare const getUploadPostageBatchId: (argsPostageBatchId: string | undefined, bee: Bee, config: SwarmConfig) => Promise<string>;
export declare function makeDate(numberWithUnit: string): number;