@hashgraphonline/standards-agent-kit
Version:
A modular SDK for building on-chain autonomous agents using Hashgraph Online Standards, including HCS-10 for agent discovery and communication.
132 lines (131 loc) • 4.46 kB
TypeScript
import { z } from 'zod';
import { BaseInscriberQueryTool } from './base-inscriber-tools';
import { CallbackManagerForToolRun } from '@langchain/core/callbacks/manager';
/**
* Schema for inscribing Hashinal NFT
*/
declare const inscribeHashinalSchema: z.ZodObject<{
url: z.ZodString;
name: z.ZodString;
creator: z.ZodString;
description: z.ZodString;
type: z.ZodString;
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
trait_type: z.ZodString;
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
}, "strip", z.ZodTypeAny, {
value: string | number;
trait_type: string;
}, {
value: string | number;
trait_type: string;
}>, "many">>;
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
jsonFileURL: z.ZodOptional<z.ZodString>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
chunkSize: z.ZodOptional<z.ZodNumber>;
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
timeoutMs: z.ZodOptional<z.ZodNumber>;
apiKey: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
url: string;
type: string;
name: string;
description: string;
creator: string;
tags?: string[] | undefined;
properties?: Record<string, unknown> | undefined;
chunkSize?: number | undefined;
waitForConfirmation?: boolean | undefined;
timeoutMs?: number | undefined;
apiKey?: string | undefined;
attributes?: {
value: string | number;
trait_type: string;
}[] | undefined;
jsonFileURL?: string | undefined;
}, {
url: string;
type: string;
name: string;
description: string;
creator: string;
tags?: string[] | undefined;
properties?: Record<string, unknown> | undefined;
chunkSize?: number | undefined;
waitForConfirmation?: boolean | undefined;
timeoutMs?: number | undefined;
apiKey?: string | undefined;
attributes?: {
value: string | number;
trait_type: string;
}[] | undefined;
jsonFileURL?: string | undefined;
}>;
/**
* Tool for inscribing Hashinal NFTs
*/
export declare class InscribeHashinalTool extends BaseInscriberQueryTool<typeof inscribeHashinalSchema> {
name: string;
description: string;
get specificInputSchema(): z.ZodObject<{
url: z.ZodString;
name: z.ZodString;
creator: z.ZodString;
description: z.ZodString;
type: z.ZodString;
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
trait_type: z.ZodString;
value: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
}, "strip", z.ZodTypeAny, {
value: string | number;
trait_type: string;
}, {
value: string | number;
trait_type: string;
}>, "many">>;
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
jsonFileURL: z.ZodOptional<z.ZodString>;
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
chunkSize: z.ZodOptional<z.ZodNumber>;
waitForConfirmation: z.ZodOptional<z.ZodBoolean>;
timeoutMs: z.ZodOptional<z.ZodNumber>;
apiKey: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
url: string;
type: string;
name: string;
description: string;
creator: string;
tags?: string[] | undefined;
properties?: Record<string, unknown> | undefined;
chunkSize?: number | undefined;
waitForConfirmation?: boolean | undefined;
timeoutMs?: number | undefined;
apiKey?: string | undefined;
attributes?: {
value: string | number;
trait_type: string;
}[] | undefined;
jsonFileURL?: string | undefined;
}, {
url: string;
type: string;
name: string;
description: string;
creator: string;
tags?: string[] | undefined;
properties?: Record<string, unknown> | undefined;
chunkSize?: number | undefined;
waitForConfirmation?: boolean | undefined;
timeoutMs?: number | undefined;
apiKey?: string | undefined;
attributes?: {
value: string | number;
trait_type: string;
}[] | undefined;
jsonFileURL?: string | undefined;
}>;
protected executeQuery(params: z.infer<typeof inscribeHashinalSchema>, _runManager?: CallbackManagerForToolRun): Promise<unknown>;
}
export {};