@mistralai/mistralai 1.7.4 → 1.9.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/docs/sdks/accesses/README.md +2 -0
- package/docs/sdks/audio/README.md +6 -0
- package/docs/sdks/documents/README.md +2 -0
- package/docs/sdks/libraries/README.md +1 -1
- package/docs/sdks/transcriptions/README.md +167 -0
- package/examples/src/async_audio_transcription_stream.ts +17 -0
- package/funcs/audioTranscriptionsComplete.d.ts +13 -0
- package/funcs/audioTranscriptionsComplete.d.ts.map +1 -0
- package/funcs/audioTranscriptionsComplete.js +133 -0
- package/funcs/audioTranscriptionsComplete.js.map +1 -0
- package/funcs/audioTranscriptionsStream.d.ts +14 -0
- package/funcs/audioTranscriptionsStream.d.ts.map +1 -0
- package/funcs/audioTranscriptionsStream.js +143 -0
- package/funcs/audioTranscriptionsStream.js.map +1 -0
- package/funcs/batchJobsList.js +1 -0
- package/funcs/batchJobsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/models/components/audiochunk.d.ts +54 -0
- package/models/components/audiochunk.d.ts.map +1 -0
- package/models/components/audiochunk.js +88 -0
- package/models/components/audiochunk.js.map +1 -0
- package/models/components/audiotranscriptionrequest.d.ts +57 -0
- package/models/components/audiotranscriptionrequest.d.ts.map +1 -0
- package/models/components/audiotranscriptionrequest.js +91 -0
- package/models/components/audiotranscriptionrequest.js.map +1 -0
- package/models/components/audiotranscriptionrequeststream.d.ts +57 -0
- package/models/components/audiotranscriptionrequeststream.d.ts.map +1 -0
- package/models/components/audiotranscriptionrequeststream.js +91 -0
- package/models/components/audiotranscriptionrequeststream.js.map +1 -0
- package/models/components/basemodelcard.d.ts +7 -7
- package/models/components/basemodelcard.d.ts.map +1 -1
- package/models/components/basemodelcard.js +11 -11
- package/models/components/basemodelcard.js.map +1 -1
- package/models/components/batchjobin.d.ts +4 -2
- package/models/components/batchjobin.d.ts.map +1 -1
- package/models/components/batchjobin.js +6 -2
- package/models/components/batchjobin.js.map +1 -1
- package/models/components/batchjobout.d.ts +4 -2
- package/models/components/batchjobout.d.ts.map +1 -1
- package/models/components/batchjobout.js +6 -2
- package/models/components/batchjobout.js.map +1 -1
- package/models/components/classifierftmodelout.d.ts +4 -0
- package/models/components/classifierftmodelout.d.ts.map +1 -1
- package/models/components/classifierftmodelout.js +8 -0
- package/models/components/classifierftmodelout.js.map +1 -1
- package/models/components/completionargs.d.ts +2 -2
- package/models/components/completionargs.d.ts.map +1 -1
- package/models/components/completionargs.js +2 -2
- package/models/components/completionargs.js.map +1 -1
- package/models/components/completionftmodelout.d.ts +4 -0
- package/models/components/completionftmodelout.d.ts.map +1 -1
- package/models/components/completionftmodelout.js +8 -0
- package/models/components/completionftmodelout.js.map +1 -1
- package/models/components/contentchunk.d.ts +10 -0
- package/models/components/contentchunk.d.ts.map +1 -1
- package/models/components/contentchunk.js +14 -0
- package/models/components/contentchunk.js.map +1 -1
- package/models/components/fileschema.d.ts +4 -0
- package/models/components/fileschema.d.ts.map +1 -1
- package/models/components/fileschema.js +4 -0
- package/models/components/fileschema.js.map +1 -1
- package/models/components/index.d.ts +13 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +13 -0
- package/models/components/index.js.map +1 -1
- package/models/components/messageoutputcontentchunks.d.ts +3 -2
- package/models/components/messageoutputcontentchunks.d.ts.map +1 -1
- package/models/components/messageoutputcontentchunks.js +3 -0
- package/models/components/messageoutputcontentchunks.js.map +1 -1
- package/models/components/outputcontentchunks.d.ts +3 -2
- package/models/components/outputcontentchunks.d.ts.map +1 -1
- package/models/components/outputcontentchunks.js +3 -0
- package/models/components/outputcontentchunks.js.map +1 -1
- package/models/components/retrievefileout.d.ts +4 -0
- package/models/components/retrievefileout.d.ts.map +1 -1
- package/models/components/retrievefileout.js +4 -0
- package/models/components/retrievefileout.js.map +1 -1
- package/models/components/thinkchunk.d.ts +82 -0
- package/models/components/thinkchunk.d.ts.map +1 -0
- package/models/components/thinkchunk.js +106 -0
- package/models/components/thinkchunk.js.map +1 -0
- package/models/components/timestampgranularity.d.ts +25 -0
- package/models/components/timestampgranularity.d.ts.map +1 -0
- package/models/components/timestampgranularity.js +49 -0
- package/models/components/timestampgranularity.js.map +1 -0
- package/models/components/transcriptionresponse.d.ts +43 -0
- package/models/components/transcriptionresponse.d.ts.map +1 -0
- package/models/components/transcriptionresponse.js +78 -0
- package/models/components/transcriptionresponse.js.map +1 -0
- package/models/components/transcriptionsegmentchunk.d.ts +62 -0
- package/models/components/transcriptionsegmentchunk.d.ts.map +1 -0
- package/models/components/transcriptionsegmentchunk.js +92 -0
- package/models/components/transcriptionsegmentchunk.js.map +1 -0
- package/models/components/transcriptionstreamdone.d.ts +68 -0
- package/models/components/transcriptionstreamdone.d.ts.map +1 -0
- package/models/components/transcriptionstreamdone.js +98 -0
- package/models/components/transcriptionstreamdone.js.map +1 -0
- package/models/components/transcriptionstreamevents.d.ts +89 -0
- package/models/components/transcriptionstreamevents.d.ts.map +1 -0
- package/models/components/transcriptionstreamevents.js +138 -0
- package/models/components/transcriptionstreamevents.js.map +1 -0
- package/models/components/transcriptionstreameventtypes.d.ts +34 -0
- package/models/components/transcriptionstreameventtypes.d.ts.map +1 -0
- package/models/components/transcriptionstreameventtypes.js +52 -0
- package/models/components/transcriptionstreameventtypes.js.map +1 -0
- package/models/components/transcriptionstreamlanguage.d.ts +58 -0
- package/models/components/transcriptionstreamlanguage.d.ts.map +1 -0
- package/models/components/transcriptionstreamlanguage.js +93 -0
- package/models/components/transcriptionstreamlanguage.js.map +1 -0
- package/models/components/transcriptionstreamsegmentdelta.d.ts +62 -0
- package/models/components/transcriptionstreamsegmentdelta.d.ts.map +1 -0
- package/models/components/transcriptionstreamsegmentdelta.js +92 -0
- package/models/components/transcriptionstreamsegmentdelta.js.map +1 -0
- package/models/components/transcriptionstreamtextdelta.d.ts +58 -0
- package/models/components/transcriptionstreamtextdelta.d.ts.map +1 -0
- package/models/components/transcriptionstreamtextdelta.js +88 -0
- package/models/components/transcriptionstreamtextdelta.js.map +1 -0
- package/models/components/uploadfileout.d.ts +4 -0
- package/models/components/uploadfileout.d.ts.map +1 -1
- package/models/components/uploadfileout.js +4 -0
- package/models/components/uploadfileout.js.map +1 -1
- package/models/components/usageinfo.d.ts +9 -3
- package/models/components/usageinfo.d.ts.map +1 -1
- package/models/components/usageinfo.js +22 -13
- package/models/components/usageinfo.js.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts +2 -0
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js +4 -0
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js.map +1 -1
- package/package.json +1 -1
- package/sdk/audio.d.ts +7 -0
- package/sdk/audio.d.ts.map +1 -0
- package/sdk/audio.js +15 -0
- package/sdk/audio.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/transcriptions.d.ts +14 -0
- package/sdk/transcriptions.d.ts.map +1 -0
- package/sdk/transcriptions.js +26 -0
- package/sdk/transcriptions.js.map +1 -0
- package/src/funcs/audioTranscriptionsComplete.ts +193 -0
- package/src/funcs/audioTranscriptionsStream.ts +207 -0
- package/src/funcs/batchJobsList.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/audiochunk.ts +102 -0
- package/src/models/components/audiotranscriptionrequest.ts +133 -0
- package/src/models/components/audiotranscriptionrequeststream.ts +135 -0
- package/src/models/components/basemodelcard.ts +13 -12
- package/src/models/components/batchjobin.ts +10 -4
- package/src/models/components/batchjobout.ts +10 -4
- package/src/models/components/classifierftmodelout.ts +12 -0
- package/src/models/components/completionargs.ts +4 -4
- package/src/models/components/completionftmodelout.ts +12 -0
- package/src/models/components/contentchunk.ts +38 -2
- package/src/models/components/fileschema.ts +8 -0
- package/src/models/components/index.ts +13 -0
- package/src/models/components/messageoutputcontentchunks.ts +10 -0
- package/src/models/components/outputcontentchunks.ts +10 -0
- package/src/models/components/retrievefileout.ts +8 -0
- package/src/models/components/thinkchunk.ts +162 -0
- package/src/models/components/timestampgranularity.ts +32 -0
- package/src/models/components/transcriptionresponse.ts +112 -0
- package/src/models/components/transcriptionsegmentchunk.ts +122 -0
- package/src/models/components/transcriptionstreamdone.ts +149 -0
- package/src/models/components/transcriptionstreamevents.ts +273 -0
- package/src/models/components/transcriptionstreameventtypes.ts +37 -0
- package/src/models/components/transcriptionstreamlanguage.ts +128 -0
- package/src/models/components/transcriptionstreamsegmentdelta.ts +133 -0
- package/src/models/components/transcriptionstreamtextdelta.ts +123 -0
- package/src/models/components/uploadfileout.ts +8 -0
- package/src/models/components/usageinfo.ts +37 -17
- package/src/models/operations/jobsapiroutesbatchgetbatchjobs.ts +6 -0
- package/src/sdk/audio.ts +13 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transcriptions.ts +40 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { blobLikeSchema } from "../../types/blobs.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
FileT,
|
|
13
|
+
FileT$inboundSchema,
|
|
14
|
+
FileT$Outbound,
|
|
15
|
+
FileT$outboundSchema,
|
|
16
|
+
} from "./file.js";
|
|
17
|
+
import {
|
|
18
|
+
TimestampGranularity,
|
|
19
|
+
TimestampGranularity$inboundSchema,
|
|
20
|
+
TimestampGranularity$outboundSchema,
|
|
21
|
+
} from "./timestampgranularity.js";
|
|
22
|
+
|
|
23
|
+
export type AudioTranscriptionRequestStream = {
|
|
24
|
+
model: string;
|
|
25
|
+
file?: FileT | Blob | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* ID of a file uploaded to /v1/files
|
|
28
|
+
*/
|
|
29
|
+
fileId?: string | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Url of a file to be transcribed
|
|
32
|
+
*/
|
|
33
|
+
fileUrl?: string | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Language of the audio, e.g. 'en'. Providing the language can boost accuracy.
|
|
36
|
+
*/
|
|
37
|
+
language?: string | null | undefined;
|
|
38
|
+
stream?: true | undefined;
|
|
39
|
+
temperature?: number | null | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Granularities of timestamps to include in the response.
|
|
42
|
+
*/
|
|
43
|
+
timestampGranularities?: Array<TimestampGranularity> | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const AudioTranscriptionRequestStream$inboundSchema: z.ZodType<
|
|
48
|
+
AudioTranscriptionRequestStream,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z.object({
|
|
52
|
+
model: z.string(),
|
|
53
|
+
file: FileT$inboundSchema.optional(),
|
|
54
|
+
file_id: z.nullable(z.string()).optional(),
|
|
55
|
+
file_url: z.nullable(z.string()).optional(),
|
|
56
|
+
language: z.nullable(z.string()).optional(),
|
|
57
|
+
stream: z.literal(true).default(true),
|
|
58
|
+
temperature: z.nullable(z.number()).optional(),
|
|
59
|
+
timestamp_granularities: z.array(TimestampGranularity$inboundSchema)
|
|
60
|
+
.optional(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
"file_id": "fileId",
|
|
64
|
+
"file_url": "fileUrl",
|
|
65
|
+
"timestamp_granularities": "timestampGranularities",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export type AudioTranscriptionRequestStream$Outbound = {
|
|
71
|
+
model: string;
|
|
72
|
+
file?: FileT$Outbound | Blob | undefined;
|
|
73
|
+
file_id?: string | null | undefined;
|
|
74
|
+
file_url?: string | null | undefined;
|
|
75
|
+
language?: string | null | undefined;
|
|
76
|
+
stream: true;
|
|
77
|
+
temperature?: number | null | undefined;
|
|
78
|
+
timestamp_granularities?: Array<string> | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const AudioTranscriptionRequestStream$outboundSchema: z.ZodType<
|
|
83
|
+
AudioTranscriptionRequestStream$Outbound,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
AudioTranscriptionRequestStream
|
|
86
|
+
> = z.object({
|
|
87
|
+
model: z.string(),
|
|
88
|
+
file: FileT$outboundSchema.or(blobLikeSchema).optional(),
|
|
89
|
+
fileId: z.nullable(z.string()).optional(),
|
|
90
|
+
fileUrl: z.nullable(z.string()).optional(),
|
|
91
|
+
language: z.nullable(z.string()).optional(),
|
|
92
|
+
stream: z.literal(true).default(true as const),
|
|
93
|
+
temperature: z.nullable(z.number()).optional(),
|
|
94
|
+
timestampGranularities: z.array(TimestampGranularity$outboundSchema)
|
|
95
|
+
.optional(),
|
|
96
|
+
}).transform((v) => {
|
|
97
|
+
return remap$(v, {
|
|
98
|
+
fileId: "file_id",
|
|
99
|
+
fileUrl: "file_url",
|
|
100
|
+
timestampGranularities: "timestamp_granularities",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @internal
|
|
106
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
+
*/
|
|
108
|
+
export namespace AudioTranscriptionRequestStream$ {
|
|
109
|
+
/** @deprecated use `AudioTranscriptionRequestStream$inboundSchema` instead. */
|
|
110
|
+
export const inboundSchema = AudioTranscriptionRequestStream$inboundSchema;
|
|
111
|
+
/** @deprecated use `AudioTranscriptionRequestStream$outboundSchema` instead. */
|
|
112
|
+
export const outboundSchema = AudioTranscriptionRequestStream$outboundSchema;
|
|
113
|
+
/** @deprecated use `AudioTranscriptionRequestStream$Outbound` instead. */
|
|
114
|
+
export type Outbound = AudioTranscriptionRequestStream$Outbound;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function audioTranscriptionRequestStreamToJSON(
|
|
118
|
+
audioTranscriptionRequestStream: AudioTranscriptionRequestStream,
|
|
119
|
+
): string {
|
|
120
|
+
return JSON.stringify(
|
|
121
|
+
AudioTranscriptionRequestStream$outboundSchema.parse(
|
|
122
|
+
audioTranscriptionRequestStream,
|
|
123
|
+
),
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export function audioTranscriptionRequestStreamFromJSON(
|
|
128
|
+
jsonString: string,
|
|
129
|
+
): SafeParseResult<AudioTranscriptionRequestStream, SDKValidationError> {
|
|
130
|
+
return safeParse(
|
|
131
|
+
jsonString,
|
|
132
|
+
(x) => AudioTranscriptionRequestStream$inboundSchema.parse(JSON.parse(x)),
|
|
133
|
+
`Failed to parse 'AudioTranscriptionRequestStream' from JSON`,
|
|
134
|
+
);
|
|
135
|
+
}
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
ModelCapabilities$outboundSchema,
|
|
16
16
|
} from "./modelcapabilities.js";
|
|
17
17
|
|
|
18
|
-
export const
|
|
18
|
+
export const BaseModelCardType = {
|
|
19
19
|
Base: "base",
|
|
20
20
|
} as const;
|
|
21
|
-
export type
|
|
21
|
+
export type BaseModelCardType = ClosedEnum<typeof BaseModelCardType>;
|
|
22
22
|
|
|
23
23
|
export type BaseModelCard = {
|
|
24
24
|
id: string;
|
|
@@ -37,23 +37,24 @@ export type BaseModelCard = {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
40
|
-
export const
|
|
41
|
-
|
|
42
|
-
);
|
|
40
|
+
export const BaseModelCardType$inboundSchema: z.ZodNativeEnum<
|
|
41
|
+
typeof BaseModelCardType
|
|
42
|
+
> = z.nativeEnum(BaseModelCardType);
|
|
43
43
|
|
|
44
44
|
/** @internal */
|
|
45
|
-
export const
|
|
46
|
-
|
|
45
|
+
export const BaseModelCardType$outboundSchema: z.ZodNativeEnum<
|
|
46
|
+
typeof BaseModelCardType
|
|
47
|
+
> = BaseModelCardType$inboundSchema;
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
50
|
* @internal
|
|
50
51
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
52
|
*/
|
|
52
|
-
export namespace
|
|
53
|
-
/** @deprecated use `
|
|
54
|
-
export const inboundSchema =
|
|
55
|
-
/** @deprecated use `
|
|
56
|
-
export const outboundSchema =
|
|
53
|
+
export namespace BaseModelCardType$ {
|
|
54
|
+
/** @deprecated use `BaseModelCardType$inboundSchema` instead. */
|
|
55
|
+
export const inboundSchema = BaseModelCardType$inboundSchema;
|
|
56
|
+
/** @deprecated use `BaseModelCardType$outboundSchema` instead. */
|
|
57
|
+
export const outboundSchema = BaseModelCardType$outboundSchema;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
/** @internal */
|
|
@@ -16,7 +16,8 @@ import {
|
|
|
16
16
|
export type BatchJobIn = {
|
|
17
17
|
inputFiles: Array<string>;
|
|
18
18
|
endpoint: ApiEndpoint;
|
|
19
|
-
model
|
|
19
|
+
model?: string | null | undefined;
|
|
20
|
+
agentId?: string | null | undefined;
|
|
20
21
|
metadata?: { [k: string]: string } | null | undefined;
|
|
21
22
|
timeoutHours?: number | undefined;
|
|
22
23
|
};
|
|
@@ -29,12 +30,14 @@ export const BatchJobIn$inboundSchema: z.ZodType<
|
|
|
29
30
|
> = z.object({
|
|
30
31
|
input_files: z.array(z.string()),
|
|
31
32
|
endpoint: ApiEndpoint$inboundSchema,
|
|
32
|
-
model: z.string(),
|
|
33
|
+
model: z.nullable(z.string()).optional(),
|
|
34
|
+
agent_id: z.nullable(z.string()).optional(),
|
|
33
35
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
34
36
|
timeout_hours: z.number().int().default(24),
|
|
35
37
|
}).transform((v) => {
|
|
36
38
|
return remap$(v, {
|
|
37
39
|
"input_files": "inputFiles",
|
|
40
|
+
"agent_id": "agentId",
|
|
38
41
|
"timeout_hours": "timeoutHours",
|
|
39
42
|
});
|
|
40
43
|
});
|
|
@@ -43,7 +46,8 @@ export const BatchJobIn$inboundSchema: z.ZodType<
|
|
|
43
46
|
export type BatchJobIn$Outbound = {
|
|
44
47
|
input_files: Array<string>;
|
|
45
48
|
endpoint: string;
|
|
46
|
-
model
|
|
49
|
+
model?: string | null | undefined;
|
|
50
|
+
agent_id?: string | null | undefined;
|
|
47
51
|
metadata?: { [k: string]: string } | null | undefined;
|
|
48
52
|
timeout_hours: number;
|
|
49
53
|
};
|
|
@@ -56,12 +60,14 @@ export const BatchJobIn$outboundSchema: z.ZodType<
|
|
|
56
60
|
> = z.object({
|
|
57
61
|
inputFiles: z.array(z.string()),
|
|
58
62
|
endpoint: ApiEndpoint$outboundSchema,
|
|
59
|
-
model: z.string(),
|
|
63
|
+
model: z.nullable(z.string()).optional(),
|
|
64
|
+
agentId: z.nullable(z.string()).optional(),
|
|
60
65
|
metadata: z.nullable(z.record(z.string())).optional(),
|
|
61
66
|
timeoutHours: z.number().int().default(24),
|
|
62
67
|
}).transform((v) => {
|
|
63
68
|
return remap$(v, {
|
|
64
69
|
inputFiles: "input_files",
|
|
70
|
+
agentId: "agent_id",
|
|
65
71
|
timeoutHours: "timeout_hours",
|
|
66
72
|
});
|
|
67
73
|
});
|
|
@@ -31,7 +31,8 @@ export type BatchJobOut = {
|
|
|
31
31
|
inputFiles: Array<string>;
|
|
32
32
|
metadata?: { [k: string]: any } | null | undefined;
|
|
33
33
|
endpoint: string;
|
|
34
|
-
model
|
|
34
|
+
model?: string | null | undefined;
|
|
35
|
+
agentId?: string | null | undefined;
|
|
35
36
|
outputFile?: string | null | undefined;
|
|
36
37
|
errorFile?: string | null | undefined;
|
|
37
38
|
errors: Array<BatchError>;
|
|
@@ -77,7 +78,8 @@ export const BatchJobOut$inboundSchema: z.ZodType<
|
|
|
77
78
|
input_files: z.array(z.string()),
|
|
78
79
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
79
80
|
endpoint: z.string(),
|
|
80
|
-
model: z.string(),
|
|
81
|
+
model: z.nullable(z.string()).optional(),
|
|
82
|
+
agent_id: z.nullable(z.string()).optional(),
|
|
81
83
|
output_file: z.nullable(z.string()).optional(),
|
|
82
84
|
error_file: z.nullable(z.string()).optional(),
|
|
83
85
|
errors: z.array(BatchError$inboundSchema),
|
|
@@ -92,6 +94,7 @@ export const BatchJobOut$inboundSchema: z.ZodType<
|
|
|
92
94
|
}).transform((v) => {
|
|
93
95
|
return remap$(v, {
|
|
94
96
|
"input_files": "inputFiles",
|
|
97
|
+
"agent_id": "agentId",
|
|
95
98
|
"output_file": "outputFile",
|
|
96
99
|
"error_file": "errorFile",
|
|
97
100
|
"created_at": "createdAt",
|
|
@@ -111,7 +114,8 @@ export type BatchJobOut$Outbound = {
|
|
|
111
114
|
input_files: Array<string>;
|
|
112
115
|
metadata?: { [k: string]: any } | null | undefined;
|
|
113
116
|
endpoint: string;
|
|
114
|
-
model
|
|
117
|
+
model?: string | null | undefined;
|
|
118
|
+
agent_id?: string | null | undefined;
|
|
115
119
|
output_file?: string | null | undefined;
|
|
116
120
|
error_file?: string | null | undefined;
|
|
117
121
|
errors: Array<BatchError$Outbound>;
|
|
@@ -136,7 +140,8 @@ export const BatchJobOut$outboundSchema: z.ZodType<
|
|
|
136
140
|
inputFiles: z.array(z.string()),
|
|
137
141
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
138
142
|
endpoint: z.string(),
|
|
139
|
-
model: z.string(),
|
|
143
|
+
model: z.nullable(z.string()).optional(),
|
|
144
|
+
agentId: z.nullable(z.string()).optional(),
|
|
140
145
|
outputFile: z.nullable(z.string()).optional(),
|
|
141
146
|
errorFile: z.nullable(z.string()).optional(),
|
|
142
147
|
errors: z.array(BatchError$outboundSchema),
|
|
@@ -151,6 +156,7 @@ export const BatchJobOut$outboundSchema: z.ZodType<
|
|
|
151
156
|
}).transform((v) => {
|
|
152
157
|
return remap$(v, {
|
|
153
158
|
inputFiles: "input_files",
|
|
159
|
+
agentId: "agent_id",
|
|
154
160
|
outputFile: "output_file",
|
|
155
161
|
errorFile: "error_file",
|
|
156
162
|
createdAt: "created_at",
|
|
@@ -40,7 +40,9 @@ export type ClassifierFTModelOut = {
|
|
|
40
40
|
object?: ClassifierFTModelOutObject | undefined;
|
|
41
41
|
created: number;
|
|
42
42
|
ownedBy: string;
|
|
43
|
+
workspaceId: string;
|
|
43
44
|
root: string;
|
|
45
|
+
rootVersion: string;
|
|
44
46
|
archived: boolean;
|
|
45
47
|
name?: string | null | undefined;
|
|
46
48
|
description?: string | null | undefined;
|
|
@@ -104,7 +106,9 @@ export const ClassifierFTModelOut$inboundSchema: z.ZodType<
|
|
|
104
106
|
object: ClassifierFTModelOutObject$inboundSchema.default("model"),
|
|
105
107
|
created: z.number().int(),
|
|
106
108
|
owned_by: z.string(),
|
|
109
|
+
workspace_id: z.string(),
|
|
107
110
|
root: z.string(),
|
|
111
|
+
root_version: z.string(),
|
|
108
112
|
archived: z.boolean(),
|
|
109
113
|
name: z.nullable(z.string()).optional(),
|
|
110
114
|
description: z.nullable(z.string()).optional(),
|
|
@@ -117,6 +121,8 @@ export const ClassifierFTModelOut$inboundSchema: z.ZodType<
|
|
|
117
121
|
}).transform((v) => {
|
|
118
122
|
return remap$(v, {
|
|
119
123
|
"owned_by": "ownedBy",
|
|
124
|
+
"workspace_id": "workspaceId",
|
|
125
|
+
"root_version": "rootVersion",
|
|
120
126
|
"max_context_length": "maxContextLength",
|
|
121
127
|
"classifier_targets": "classifierTargets",
|
|
122
128
|
"model_type": "modelType",
|
|
@@ -129,7 +135,9 @@ export type ClassifierFTModelOut$Outbound = {
|
|
|
129
135
|
object: string;
|
|
130
136
|
created: number;
|
|
131
137
|
owned_by: string;
|
|
138
|
+
workspace_id: string;
|
|
132
139
|
root: string;
|
|
140
|
+
root_version: string;
|
|
133
141
|
archived: boolean;
|
|
134
142
|
name?: string | null | undefined;
|
|
135
143
|
description?: string | null | undefined;
|
|
@@ -151,7 +159,9 @@ export const ClassifierFTModelOut$outboundSchema: z.ZodType<
|
|
|
151
159
|
object: ClassifierFTModelOutObject$outboundSchema.default("model"),
|
|
152
160
|
created: z.number().int(),
|
|
153
161
|
ownedBy: z.string(),
|
|
162
|
+
workspaceId: z.string(),
|
|
154
163
|
root: z.string(),
|
|
164
|
+
rootVersion: z.string(),
|
|
155
165
|
archived: z.boolean(),
|
|
156
166
|
name: z.nullable(z.string()).optional(),
|
|
157
167
|
description: z.nullable(z.string()).optional(),
|
|
@@ -164,6 +174,8 @@ export const ClassifierFTModelOut$outboundSchema: z.ZodType<
|
|
|
164
174
|
}).transform((v) => {
|
|
165
175
|
return remap$(v, {
|
|
166
176
|
ownedBy: "owned_by",
|
|
177
|
+
workspaceId: "workspace_id",
|
|
178
|
+
rootVersion: "root_version",
|
|
167
179
|
maxContextLength: "max_context_length",
|
|
168
180
|
classifierTargets: "classifier_targets",
|
|
169
181
|
modelType: "model_type",
|
|
@@ -38,7 +38,7 @@ export type CompletionArgs = {
|
|
|
38
38
|
stop?: CompletionArgsStop | null | undefined;
|
|
39
39
|
presencePenalty?: number | null | undefined;
|
|
40
40
|
frequencyPenalty?: number | null | undefined;
|
|
41
|
-
temperature?: number | undefined;
|
|
41
|
+
temperature?: number | null | undefined;
|
|
42
42
|
topP?: number | null | undefined;
|
|
43
43
|
maxTokens?: number | null | undefined;
|
|
44
44
|
randomSeed?: number | null | undefined;
|
|
@@ -56,7 +56,7 @@ export const CompletionArgs$inboundSchema: z.ZodType<
|
|
|
56
56
|
stop: z.nullable(CompletionArgsStop$inboundSchema).optional(),
|
|
57
57
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
58
58
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
59
|
-
temperature: z.number().
|
|
59
|
+
temperature: z.nullable(z.number()).optional(),
|
|
60
60
|
top_p: z.nullable(z.number()).optional(),
|
|
61
61
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
62
62
|
random_seed: z.nullable(z.number().int()).optional(),
|
|
@@ -80,7 +80,7 @@ export type CompletionArgs$Outbound = {
|
|
|
80
80
|
stop?: CompletionArgsStop$Outbound | null | undefined;
|
|
81
81
|
presence_penalty?: number | null | undefined;
|
|
82
82
|
frequency_penalty?: number | null | undefined;
|
|
83
|
-
temperature
|
|
83
|
+
temperature?: number | null | undefined;
|
|
84
84
|
top_p?: number | null | undefined;
|
|
85
85
|
max_tokens?: number | null | undefined;
|
|
86
86
|
random_seed?: number | null | undefined;
|
|
@@ -98,7 +98,7 @@ export const CompletionArgs$outboundSchema: z.ZodType<
|
|
|
98
98
|
stop: z.nullable(CompletionArgsStop$outboundSchema).optional(),
|
|
99
99
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
100
100
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
101
|
-
temperature: z.number().
|
|
101
|
+
temperature: z.nullable(z.number()).optional(),
|
|
102
102
|
topP: z.nullable(z.number()).optional(),
|
|
103
103
|
maxTokens: z.nullable(z.number().int()).optional(),
|
|
104
104
|
randomSeed: z.nullable(z.number().int()).optional(),
|
|
@@ -32,7 +32,9 @@ export type CompletionFTModelOut = {
|
|
|
32
32
|
object?: CompletionFTModelOutObject | undefined;
|
|
33
33
|
created: number;
|
|
34
34
|
ownedBy: string;
|
|
35
|
+
workspaceId: string;
|
|
35
36
|
root: string;
|
|
37
|
+
rootVersion: string;
|
|
36
38
|
archived: boolean;
|
|
37
39
|
name?: string | null | undefined;
|
|
38
40
|
description?: string | null | undefined;
|
|
@@ -93,7 +95,9 @@ export const CompletionFTModelOut$inboundSchema: z.ZodType<
|
|
|
93
95
|
object: CompletionFTModelOutObject$inboundSchema.default("model"),
|
|
94
96
|
created: z.number().int(),
|
|
95
97
|
owned_by: z.string(),
|
|
98
|
+
workspace_id: z.string(),
|
|
96
99
|
root: z.string(),
|
|
100
|
+
root_version: z.string(),
|
|
97
101
|
archived: z.boolean(),
|
|
98
102
|
name: z.nullable(z.string()).optional(),
|
|
99
103
|
description: z.nullable(z.string()).optional(),
|
|
@@ -105,6 +109,8 @@ export const CompletionFTModelOut$inboundSchema: z.ZodType<
|
|
|
105
109
|
}).transform((v) => {
|
|
106
110
|
return remap$(v, {
|
|
107
111
|
"owned_by": "ownedBy",
|
|
112
|
+
"workspace_id": "workspaceId",
|
|
113
|
+
"root_version": "rootVersion",
|
|
108
114
|
"max_context_length": "maxContextLength",
|
|
109
115
|
"model_type": "modelType",
|
|
110
116
|
});
|
|
@@ -116,7 +122,9 @@ export type CompletionFTModelOut$Outbound = {
|
|
|
116
122
|
object: string;
|
|
117
123
|
created: number;
|
|
118
124
|
owned_by: string;
|
|
125
|
+
workspace_id: string;
|
|
119
126
|
root: string;
|
|
127
|
+
root_version: string;
|
|
120
128
|
archived: boolean;
|
|
121
129
|
name?: string | null | undefined;
|
|
122
130
|
description?: string | null | undefined;
|
|
@@ -137,7 +145,9 @@ export const CompletionFTModelOut$outboundSchema: z.ZodType<
|
|
|
137
145
|
object: CompletionFTModelOutObject$outboundSchema.default("model"),
|
|
138
146
|
created: z.number().int(),
|
|
139
147
|
ownedBy: z.string(),
|
|
148
|
+
workspaceId: z.string(),
|
|
140
149
|
root: z.string(),
|
|
150
|
+
rootVersion: z.string(),
|
|
141
151
|
archived: z.boolean(),
|
|
142
152
|
name: z.nullable(z.string()).optional(),
|
|
143
153
|
description: z.nullable(z.string()).optional(),
|
|
@@ -149,6 +159,8 @@ export const CompletionFTModelOut$outboundSchema: z.ZodType<
|
|
|
149
159
|
}).transform((v) => {
|
|
150
160
|
return remap$(v, {
|
|
151
161
|
ownedBy: "owned_by",
|
|
162
|
+
workspaceId: "workspace_id",
|
|
163
|
+
rootVersion: "root_version",
|
|
152
164
|
maxContextLength: "max_context_length",
|
|
153
165
|
modelType: "model_type",
|
|
154
166
|
});
|
|
@@ -6,6 +6,12 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
AudioChunk,
|
|
11
|
+
AudioChunk$inboundSchema,
|
|
12
|
+
AudioChunk$Outbound,
|
|
13
|
+
AudioChunk$outboundSchema,
|
|
14
|
+
} from "./audiochunk.js";
|
|
9
15
|
import {
|
|
10
16
|
DocumentURLChunk,
|
|
11
17
|
DocumentURLChunk$inboundSchema,
|
|
@@ -36,13 +42,21 @@ import {
|
|
|
36
42
|
TextChunk$Outbound,
|
|
37
43
|
TextChunk$outboundSchema,
|
|
38
44
|
} from "./textchunk.js";
|
|
45
|
+
import {
|
|
46
|
+
ThinkChunk,
|
|
47
|
+
ThinkChunk$inboundSchema,
|
|
48
|
+
ThinkChunk$Outbound,
|
|
49
|
+
ThinkChunk$outboundSchema,
|
|
50
|
+
} from "./thinkchunk.js";
|
|
39
51
|
|
|
40
52
|
export type ContentChunk =
|
|
41
53
|
| (ImageURLChunk & { type: "image_url" })
|
|
42
54
|
| (TextChunk & { type: "text" })
|
|
43
55
|
| (ReferenceChunk & { type: "reference" })
|
|
44
56
|
| (FileChunk & { type: "file" })
|
|
45
|
-
| (
|
|
57
|
+
| (AudioChunk & { type: "input_audio" })
|
|
58
|
+
| (DocumentURLChunk & { type: "document_url" })
|
|
59
|
+
| (ThinkChunk & { type: "thinking" });
|
|
46
60
|
|
|
47
61
|
/** @internal */
|
|
48
62
|
export const ContentChunk$inboundSchema: z.ZodType<
|
|
@@ -66,11 +80,21 @@ export const ContentChunk$inboundSchema: z.ZodType<
|
|
|
66
80
|
FileChunk$inboundSchema.and(
|
|
67
81
|
z.object({ type: z.literal("file") }).transform((v) => ({ type: v.type })),
|
|
68
82
|
),
|
|
83
|
+
AudioChunk$inboundSchema.and(
|
|
84
|
+
z.object({ type: z.literal("input_audio") }).transform((v) => ({
|
|
85
|
+
type: v.type,
|
|
86
|
+
})),
|
|
87
|
+
),
|
|
69
88
|
DocumentURLChunk$inboundSchema.and(
|
|
70
89
|
z.object({ type: z.literal("document_url") }).transform((v) => ({
|
|
71
90
|
type: v.type,
|
|
72
91
|
})),
|
|
73
92
|
),
|
|
93
|
+
ThinkChunk$inboundSchema.and(
|
|
94
|
+
z.object({ type: z.literal("thinking") }).transform((v) => ({
|
|
95
|
+
type: v.type,
|
|
96
|
+
})),
|
|
97
|
+
),
|
|
74
98
|
]);
|
|
75
99
|
|
|
76
100
|
/** @internal */
|
|
@@ -79,7 +103,9 @@ export type ContentChunk$Outbound =
|
|
|
79
103
|
| (TextChunk$Outbound & { type: "text" })
|
|
80
104
|
| (ReferenceChunk$Outbound & { type: "reference" })
|
|
81
105
|
| (FileChunk$Outbound & { type: "file" })
|
|
82
|
-
| (
|
|
106
|
+
| (AudioChunk$Outbound & { type: "input_audio" })
|
|
107
|
+
| (DocumentURLChunk$Outbound & { type: "document_url" })
|
|
108
|
+
| (ThinkChunk$Outbound & { type: "thinking" });
|
|
83
109
|
|
|
84
110
|
/** @internal */
|
|
85
111
|
export const ContentChunk$outboundSchema: z.ZodType<
|
|
@@ -103,11 +129,21 @@ export const ContentChunk$outboundSchema: z.ZodType<
|
|
|
103
129
|
FileChunk$outboundSchema.and(
|
|
104
130
|
z.object({ type: z.literal("file") }).transform((v) => ({ type: v.type })),
|
|
105
131
|
),
|
|
132
|
+
AudioChunk$outboundSchema.and(
|
|
133
|
+
z.object({ type: z.literal("input_audio") }).transform((v) => ({
|
|
134
|
+
type: v.type,
|
|
135
|
+
})),
|
|
136
|
+
),
|
|
106
137
|
DocumentURLChunk$outboundSchema.and(
|
|
107
138
|
z.object({ type: z.literal("document_url") }).transform((v) => ({
|
|
108
139
|
type: v.type,
|
|
109
140
|
})),
|
|
110
141
|
),
|
|
142
|
+
ThinkChunk$outboundSchema.and(
|
|
143
|
+
z.object({ type: z.literal("thinking") }).transform((v) => ({
|
|
144
|
+
type: v.type,
|
|
145
|
+
})),
|
|
146
|
+
),
|
|
111
147
|
]);
|
|
112
148
|
|
|
113
149
|
/**
|
|
@@ -47,7 +47,9 @@ export type FileSchema = {
|
|
|
47
47
|
purpose: FilePurpose;
|
|
48
48
|
sampleType: SampleType;
|
|
49
49
|
numLines?: number | null | undefined;
|
|
50
|
+
mimetype?: string | null | undefined;
|
|
50
51
|
source: Source;
|
|
52
|
+
signature?: string | null | undefined;
|
|
51
53
|
};
|
|
52
54
|
|
|
53
55
|
/** @internal */
|
|
@@ -64,7 +66,9 @@ export const FileSchema$inboundSchema: z.ZodType<
|
|
|
64
66
|
purpose: FilePurpose$inboundSchema,
|
|
65
67
|
sample_type: SampleType$inboundSchema,
|
|
66
68
|
num_lines: z.nullable(z.number().int()).optional(),
|
|
69
|
+
mimetype: z.nullable(z.string()).optional(),
|
|
67
70
|
source: Source$inboundSchema,
|
|
71
|
+
signature: z.nullable(z.string()).optional(),
|
|
68
72
|
}).transform((v) => {
|
|
69
73
|
return remap$(v, {
|
|
70
74
|
"bytes": "sizeBytes",
|
|
@@ -84,7 +88,9 @@ export type FileSchema$Outbound = {
|
|
|
84
88
|
purpose: string;
|
|
85
89
|
sample_type: string;
|
|
86
90
|
num_lines?: number | null | undefined;
|
|
91
|
+
mimetype?: string | null | undefined;
|
|
87
92
|
source: string;
|
|
93
|
+
signature?: string | null | undefined;
|
|
88
94
|
};
|
|
89
95
|
|
|
90
96
|
/** @internal */
|
|
@@ -101,7 +107,9 @@ export const FileSchema$outboundSchema: z.ZodType<
|
|
|
101
107
|
purpose: FilePurpose$outboundSchema,
|
|
102
108
|
sampleType: SampleType$outboundSchema,
|
|
103
109
|
numLines: z.nullable(z.number().int()).optional(),
|
|
110
|
+
mimetype: z.nullable(z.string()).optional(),
|
|
104
111
|
source: Source$outboundSchema,
|
|
112
|
+
signature: z.nullable(z.string()).optional(),
|
|
105
113
|
}).transform((v) => {
|
|
106
114
|
return remap$(v, {
|
|
107
115
|
sizeBytes: "bytes",
|
|
@@ -14,6 +14,9 @@ export * from "./agentupdaterequest.js";
|
|
|
14
14
|
export * from "./apiendpoint.js";
|
|
15
15
|
export * from "./archiveftmodelout.js";
|
|
16
16
|
export * from "./assistantmessage.js";
|
|
17
|
+
export * from "./audiochunk.js";
|
|
18
|
+
export * from "./audiotranscriptionrequest.js";
|
|
19
|
+
export * from "./audiotranscriptionrequeststream.js";
|
|
17
20
|
export * from "./basemodelcard.js";
|
|
18
21
|
export * from "./batcherror.js";
|
|
19
22
|
export * from "./batchjobin.js";
|
|
@@ -156,6 +159,8 @@ export * from "./source.js";
|
|
|
156
159
|
export * from "./ssetypes.js";
|
|
157
160
|
export * from "./systemmessage.js";
|
|
158
161
|
export * from "./textchunk.js";
|
|
162
|
+
export * from "./thinkchunk.js";
|
|
163
|
+
export * from "./timestampgranularity.js";
|
|
159
164
|
export * from "./tool.js";
|
|
160
165
|
export * from "./toolcall.js";
|
|
161
166
|
export * from "./toolchoice.js";
|
|
@@ -169,6 +174,14 @@ export * from "./toolmessage.js";
|
|
|
169
174
|
export * from "./toolreferencechunk.js";
|
|
170
175
|
export * from "./tooltypes.js";
|
|
171
176
|
export * from "./trainingfile.js";
|
|
177
|
+
export * from "./transcriptionresponse.js";
|
|
178
|
+
export * from "./transcriptionsegmentchunk.js";
|
|
179
|
+
export * from "./transcriptionstreamdone.js";
|
|
180
|
+
export * from "./transcriptionstreamevents.js";
|
|
181
|
+
export * from "./transcriptionstreameventtypes.js";
|
|
182
|
+
export * from "./transcriptionstreamlanguage.js";
|
|
183
|
+
export * from "./transcriptionstreamsegmentdelta.js";
|
|
184
|
+
export * from "./transcriptionstreamtextdelta.js";
|
|
172
185
|
export * from "./unarchiveftmodelout.js";
|
|
173
186
|
export * from "./updateftmodelin.js";
|
|
174
187
|
export * from "./uploadfileout.js";
|
|
@@ -24,6 +24,12 @@ import {
|
|
|
24
24
|
TextChunk$Outbound,
|
|
25
25
|
TextChunk$outboundSchema,
|
|
26
26
|
} from "./textchunk.js";
|
|
27
|
+
import {
|
|
28
|
+
ThinkChunk,
|
|
29
|
+
ThinkChunk$inboundSchema,
|
|
30
|
+
ThinkChunk$Outbound,
|
|
31
|
+
ThinkChunk$outboundSchema,
|
|
32
|
+
} from "./thinkchunk.js";
|
|
27
33
|
import {
|
|
28
34
|
ToolFileChunk,
|
|
29
35
|
ToolFileChunk$inboundSchema,
|
|
@@ -41,6 +47,7 @@ export type MessageOutputContentChunks =
|
|
|
41
47
|
| TextChunk
|
|
42
48
|
| ImageURLChunk
|
|
43
49
|
| DocumentURLChunk
|
|
50
|
+
| ThinkChunk
|
|
44
51
|
| ToolFileChunk
|
|
45
52
|
| ToolReferenceChunk;
|
|
46
53
|
|
|
@@ -53,6 +60,7 @@ export const MessageOutputContentChunks$inboundSchema: z.ZodType<
|
|
|
53
60
|
TextChunk$inboundSchema,
|
|
54
61
|
ImageURLChunk$inboundSchema,
|
|
55
62
|
DocumentURLChunk$inboundSchema,
|
|
63
|
+
ThinkChunk$inboundSchema,
|
|
56
64
|
ToolFileChunk$inboundSchema,
|
|
57
65
|
ToolReferenceChunk$inboundSchema,
|
|
58
66
|
]);
|
|
@@ -62,6 +70,7 @@ export type MessageOutputContentChunks$Outbound =
|
|
|
62
70
|
| TextChunk$Outbound
|
|
63
71
|
| ImageURLChunk$Outbound
|
|
64
72
|
| DocumentURLChunk$Outbound
|
|
73
|
+
| ThinkChunk$Outbound
|
|
65
74
|
| ToolFileChunk$Outbound
|
|
66
75
|
| ToolReferenceChunk$Outbound;
|
|
67
76
|
|
|
@@ -74,6 +83,7 @@ export const MessageOutputContentChunks$outboundSchema: z.ZodType<
|
|
|
74
83
|
TextChunk$outboundSchema,
|
|
75
84
|
ImageURLChunk$outboundSchema,
|
|
76
85
|
DocumentURLChunk$outboundSchema,
|
|
86
|
+
ThinkChunk$outboundSchema,
|
|
77
87
|
ToolFileChunk$outboundSchema,
|
|
78
88
|
ToolReferenceChunk$outboundSchema,
|
|
79
89
|
]);
|
|
@@ -24,6 +24,12 @@ import {
|
|
|
24
24
|
TextChunk$Outbound,
|
|
25
25
|
TextChunk$outboundSchema,
|
|
26
26
|
} from "./textchunk.js";
|
|
27
|
+
import {
|
|
28
|
+
ThinkChunk,
|
|
29
|
+
ThinkChunk$inboundSchema,
|
|
30
|
+
ThinkChunk$Outbound,
|
|
31
|
+
ThinkChunk$outboundSchema,
|
|
32
|
+
} from "./thinkchunk.js";
|
|
27
33
|
import {
|
|
28
34
|
ToolFileChunk,
|
|
29
35
|
ToolFileChunk$inboundSchema,
|
|
@@ -41,6 +47,7 @@ export type OutputContentChunks =
|
|
|
41
47
|
| TextChunk
|
|
42
48
|
| ImageURLChunk
|
|
43
49
|
| DocumentURLChunk
|
|
50
|
+
| ThinkChunk
|
|
44
51
|
| ToolFileChunk
|
|
45
52
|
| ToolReferenceChunk;
|
|
46
53
|
|
|
@@ -53,6 +60,7 @@ export const OutputContentChunks$inboundSchema: z.ZodType<
|
|
|
53
60
|
TextChunk$inboundSchema,
|
|
54
61
|
ImageURLChunk$inboundSchema,
|
|
55
62
|
DocumentURLChunk$inboundSchema,
|
|
63
|
+
ThinkChunk$inboundSchema,
|
|
56
64
|
ToolFileChunk$inboundSchema,
|
|
57
65
|
ToolReferenceChunk$inboundSchema,
|
|
58
66
|
]);
|
|
@@ -62,6 +70,7 @@ export type OutputContentChunks$Outbound =
|
|
|
62
70
|
| TextChunk$Outbound
|
|
63
71
|
| ImageURLChunk$Outbound
|
|
64
72
|
| DocumentURLChunk$Outbound
|
|
73
|
+
| ThinkChunk$Outbound
|
|
65
74
|
| ToolFileChunk$Outbound
|
|
66
75
|
| ToolReferenceChunk$Outbound;
|
|
67
76
|
|
|
@@ -74,6 +83,7 @@ export const OutputContentChunks$outboundSchema: z.ZodType<
|
|
|
74
83
|
TextChunk$outboundSchema,
|
|
75
84
|
ImageURLChunk$outboundSchema,
|
|
76
85
|
DocumentURLChunk$outboundSchema,
|
|
86
|
+
ThinkChunk$outboundSchema,
|
|
77
87
|
ToolFileChunk$outboundSchema,
|
|
78
88
|
ToolReferenceChunk$outboundSchema,
|
|
79
89
|
]);
|