import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { AgentExecutionStatus } from "./agentexecutionstatus.js"; import { Message } from "./message.js"; /** * Payload for creating a run. **Important**: If the agent uses an input form trigger, the `input` field is required and must include all fields defined in the form schema. Even fields marked as optional in the UI must be included in the request—use an empty string (`""`) for optional fields without values. Omitting required form fields will result in a 500 error. */ export type AgentRun = { /** * The ID of the agent to run. */ agentId: string; /** * The input to the agent. Required when the agent uses an input form trigger. */ input?: { [k: string]: any; } | undefined; /** * The messages to pass an input to the agent. */ messages?: Array | undefined; /** * The metadata to pass to the agent. */ metadata?: { [k: string]: any; } | undefined; /** * The status of the run. One of 'error', 'success'. */ status?: AgentExecutionStatus | undefined; }; /** @internal */ export declare const AgentRun$inboundSchema: z.ZodType; export declare function agentRunFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=agentrun.d.ts.map