import * as z from "zod/v4"; import { DecisionsBoxQuestion, DecisionsBoxQuestion$Outbound } from "./decisionsboxquestion.js"; import { DecisionsChoiceQuestion, DecisionsChoiceQuestion$Outbound } from "./decisionschoicequestion.js"; import { DecisionsImageAsset, DecisionsImageAsset$Outbound } from "./decisionsimageasset.js"; import { DecisionsNoulQuestion, DecisionsNoulQuestion$Outbound } from "./decisionsnoulquestion.js"; import { DecisionsScoreQuestion, DecisionsScoreQuestion$Outbound } from "./decisionsscorequestion.js"; import { ProviderPreferences, ProviderPreferences$Outbound } from "./providerpreferences.js"; import { TraceConfig, TraceConfig$Outbound } from "./traceconfig.js"; /** * A Decisions question using a boolean, choice, ordered score, or image bounding-box evaluation. */ export type Questions = DecisionsBoxQuestion | DecisionsChoiceQuestion | DecisionsNoulQuestion | DecisionsScoreQuestion; /** * The content to evaluate: a plain string, or a JSON object or array of related context. */ export type State = string | { [k: string]: any; } | Array; export type DecisionsRequest = { /** * Images keyed by reference string, as in TypeSafe's API. Write a reference wherever the image belongs in `state`, `instructions`, or `criteria`; every asset must be referenced at least once, or the request fails with `400` naming the unused key. TypeSafe Jev endpoints receive `assets` as written and read a reference as a whole string value or inside longer text. Every other provider has each whole-string reference resolved to an `image_url` part before the request is sent, so it is accepted only where that provider reads `image_url` parts (top-level `state` items), and a reference inside longer text fails with `400`. `image_url` parts and `assets` can be mixed in one request. */ assets?: { [k: string]: DecisionsImageAsset; } | undefined; model: string; provider?: ProviderPreferences | null | undefined; questions: { [k: string]: DecisionsBoxQuestion | DecisionsChoiceQuestion | DecisionsNoulQuestion | DecisionsScoreQuestion; }; /** * A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters. */ sessionId?: string | undefined; /** * The content to evaluate: a plain string, or a JSON object or array of related context. */ state: string | { [k: string]: any; } | Array; /** * Metadata for observability and tracing. Known keys (trace_id, trace_name, span_name, generation_name, parent_span_id) have special handling. Additional keys are passed through as custom metadata to configured broadcast destinations. */ trace?: TraceConfig | undefined; user?: string | undefined; }; /** @internal */ export type Questions$Outbound = DecisionsBoxQuestion$Outbound | DecisionsChoiceQuestion$Outbound | DecisionsNoulQuestion$Outbound | DecisionsScoreQuestion$Outbound; /** @internal */ export declare const Questions$outboundSchema: z.ZodType; export declare function questionsToJSON(questions: Questions): string; /** @internal */ export type State$Outbound = string | { [k: string]: any; } | Array; /** @internal */ export declare const State$outboundSchema: z.ZodType; export declare function stateToJSON(state: State): string; /** @internal */ export type DecisionsRequest$Outbound = { assets?: { [k: string]: DecisionsImageAsset$Outbound; } | undefined; model: string; provider?: ProviderPreferences$Outbound | null | undefined; questions: { [k: string]: DecisionsBoxQuestion$Outbound | DecisionsChoiceQuestion$Outbound | DecisionsNoulQuestion$Outbound | DecisionsScoreQuestion$Outbound; }; session_id?: string | undefined; state: string | { [k: string]: any; } | Array; trace?: TraceConfig$Outbound | undefined; user?: string | undefined; }; /** @internal */ export declare const DecisionsRequest$outboundSchema: z.ZodType; export declare function decisionsRequestToJSON(decisionsRequest: DecisionsRequest): string; //# sourceMappingURL=decisionsrequest.d.ts.map