import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { InternChatDelta } from "./internchatdelta.js"; /** * `null` while streaming. `stop` when the run completed, `tool_calls` when the run is waiting for the caller to answer the streamed tool call, `error` on the terminal error chunk. */ export declare const InternChatChoiceFinishReason: { readonly Error: "error"; readonly Stop: "stop"; readonly ToolCalls: "tool_calls"; }; /** * `null` while streaming. `stop` when the run completed, `tool_calls` when the run is waiting for the caller to answer the streamed tool call, `error` on the terminal error chunk. */ export type InternChatChoiceFinishReason = OpenEnum; /** * The single choice this endpoint streams. */ export type InternChatChoice = { /** * The incremental content of one chunk. The first chunk carries `role`, text chunks carry `content`, reasoning chunks carry `reasoning`, and an interaction chunk carries one complete `tool_calls` entry. */ delta: InternChatDelta; /** * `null` while streaming. `stop` when the run completed, `tool_calls` when the run is waiting for the caller to answer the streamed tool call, `error` on the terminal error chunk. */ finishReason: InternChatChoiceFinishReason | null; index: number; }; /** @internal */ export declare const InternChatChoiceFinishReason$inboundSchema: z.ZodType; /** @internal */ export declare const InternChatChoice$inboundSchema: z.ZodType; export declare function internChatChoiceFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=internchatchoice.d.ts.map