@hyperbrowser/agent
Version:
Hyperbrowsers Web Agent
21 lines (20 loc) • 894 B
TypeScript
import { CompleteActionDefinition } from "./complete";
import { generateCompleteActionWithOutputDefinition } from "./complete-with-output-schema";
/**
* Custom error class for when an action is not found in the registry
* This helps distinguish between general errors and specifically when an action type doesn't exist
*/
export declare class ActionNotFoundError extends Error {
constructor(actionType: string);
}
declare const DEFAULT_ACTIONS: (import("../../types").AgentActionDefinition<import("zod").AnyZodObject> | import("../../types").AgentActionDefinition<import("zod").ZodObject<{
index: import("zod").ZodNumber;
text: import("zod").ZodString;
}, "strip", import("zod").ZodTypeAny, {
text: string;
index: number;
}, {
text: string;
index: number;
}>>)[];
export { DEFAULT_ACTIONS, CompleteActionDefinition, generateCompleteActionWithOutputDefinition, };