import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type ErrorT = {
    message: string;
    stack?: string | undefined;
};
/**
 * Orquesta product
 */
export declare const ToolExecutionFailedStreamingEventProduct: {
    readonly Remoteconfigs: "remoteconfigs";
    readonly Deployments: "deployments";
    readonly Experiments: "experiments";
    readonly Playgrounds: "playgrounds";
    readonly Spreadsheets: "spreadsheets";
    readonly SpreadsheetRun: "spreadsheet_run";
    readonly LlmEvaluator: "llm_evaluator";
    readonly Knowledge: "knowledge";
    readonly Router: "router";
    readonly Workflows: "workflows";
    readonly ExternalEvents: "external_events";
    readonly Agents: "agents";
    readonly MemoryStores: "memory-stores";
    readonly Generic: "generic";
    readonly Evaluators: "evaluators";
    readonly Otel: "otel";
    readonly AiChat: "ai-chat";
};
/**
 * Orquesta product
 */
export type ToolExecutionFailedStreamingEventProduct = ClosedEnum<typeof ToolExecutionFailedStreamingEventProduct>;
export type ToolExecutionFailedStreamingEventMemory = {
    entityId: string;
};
export type ToolExecutionFailedStreamingEventToolExecutionContext = {
    actionId: string;
    agentToolCallId: string;
    workspaceId: string;
    agentManifestId: string;
    agentExecutionId: string;
    /**
     * Orquesta product
     */
    product: ToolExecutionFailedStreamingEventProduct;
    memory?: ToolExecutionFailedStreamingEventMemory | undefined;
    parentId?: string | undefined;
    variables?: {
        [k: string]: any;
    } | undefined;
    secretKeys?: Array<string> | undefined;
};
export type ToolExecutionFailedStreamingEventData = {
    error: ErrorT;
    actionType: string;
    toolExecutionContext: ToolExecutionFailedStreamingEventToolExecutionContext;
    responseId?: string | undefined;
    workflowRunId: string;
    stream?: boolean | undefined;
};
/**
 * Emitted when a tool execution fails. Contains the error details, action type, and execution context.
 */
export type ToolExecutionFailedStreamingEvent = {
    type: "event.workflow_events.tool_execution_failed";
    /**
     * ISO timestamp of the event
     */
    timestamp: string;
    data: ToolExecutionFailedStreamingEventData;
};
/** @internal */
export declare const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown>;
export declare function errorFromJSON(jsonString: string): SafeParseResult<ErrorT, SDKValidationError>;
/** @internal */
export declare const ToolExecutionFailedStreamingEventProduct$inboundSchema: z.ZodNativeEnum<typeof ToolExecutionFailedStreamingEventProduct>;
/** @internal */
export declare const ToolExecutionFailedStreamingEventMemory$inboundSchema: z.ZodType<ToolExecutionFailedStreamingEventMemory, z.ZodTypeDef, unknown>;
export declare function toolExecutionFailedStreamingEventMemoryFromJSON(jsonString: string): SafeParseResult<ToolExecutionFailedStreamingEventMemory, SDKValidationError>;
/** @internal */
export declare const ToolExecutionFailedStreamingEventToolExecutionContext$inboundSchema: z.ZodType<ToolExecutionFailedStreamingEventToolExecutionContext, z.ZodTypeDef, unknown>;
export declare function toolExecutionFailedStreamingEventToolExecutionContextFromJSON(jsonString: string): SafeParseResult<ToolExecutionFailedStreamingEventToolExecutionContext, SDKValidationError>;
/** @internal */
export declare const ToolExecutionFailedStreamingEventData$inboundSchema: z.ZodType<ToolExecutionFailedStreamingEventData, z.ZodTypeDef, unknown>;
export declare function toolExecutionFailedStreamingEventDataFromJSON(jsonString: string): SafeParseResult<ToolExecutionFailedStreamingEventData, SDKValidationError>;
/** @internal */
export declare const ToolExecutionFailedStreamingEvent$inboundSchema: z.ZodType<ToolExecutionFailedStreamingEvent, z.ZodTypeDef, unknown>;
export declare function toolExecutionFailedStreamingEventFromJSON(jsonString: string): SafeParseResult<ToolExecutionFailedStreamingEvent, SDKValidationError>;
//# sourceMappingURL=toolexecutionfailedstreamingevent.d.ts.map