import * as z from "zod/v4"; import { DecisionsChoiceQuestion, DecisionsChoiceQuestion$Outbound } from "./decisionschoicequestion.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, or ordered score evaluation. */ export type Questions = 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 = { model: string; provider?: ProviderPreferences | null | undefined; questions: { [k: string]: 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 = 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 = { model: string; provider?: ProviderPreferences$Outbound | null | undefined; questions: { [k: string]: 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