@codefionn/llmleaf-client 0.1.7 → 0.1.8

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.
@@ -784,6 +784,745 @@ export type ChatCompletionChunk = Message<"llmleaf.v1.ChatCompletionChunk"> & {
784
784
  * Use `create(ChatCompletionChunkSchema)` to create a new message.
785
785
  */
786
786
  export declare const ChatCompletionChunkSchema: GenMessage<ChatCompletionChunk>;
787
+ /**
788
+ * One item of the request `input` array or the response `output` array. The wire
789
+ * discriminator is `"type"` and selects which field is set:
790
+ * "message" -> message (also the shape of a role-keyed item with no type)
791
+ * "function_call" -> function_call
792
+ * "function_call_output" -> function_call_output
793
+ * "reasoning" -> reasoning
794
+ *
795
+ * @generated from message llmleaf.v1.ResponseItem
796
+ */
797
+ export type ResponseItem = Message<"llmleaf.v1.ResponseItem"> & {
798
+ /**
799
+ * @generated from oneof llmleaf.v1.ResponseItem.item
800
+ */
801
+ item: {
802
+ /**
803
+ * @generated from field: llmleaf.v1.ResponseMessageItem message = 1;
804
+ */
805
+ value: ResponseMessageItem;
806
+ case: "message";
807
+ } | {
808
+ /**
809
+ * @generated from field: llmleaf.v1.ResponseFunctionCallItem function_call = 2;
810
+ */
811
+ value: ResponseFunctionCallItem;
812
+ case: "functionCall";
813
+ } | {
814
+ /**
815
+ * @generated from field: llmleaf.v1.ResponseFunctionCallOutputItem function_call_output = 3;
816
+ */
817
+ value: ResponseFunctionCallOutputItem;
818
+ case: "functionCallOutput";
819
+ } | {
820
+ /**
821
+ * @generated from field: llmleaf.v1.ResponseReasoningItem reasoning = 4;
822
+ */
823
+ value: ResponseReasoningItem;
824
+ case: "reasoning";
825
+ } | {
826
+ case: undefined;
827
+ value?: undefined;
828
+ };
829
+ };
830
+ /**
831
+ * Describes the message llmleaf.v1.ResponseItem.
832
+ * Use `create(ResponseItemSchema)` to create a new message.
833
+ */
834
+ export declare const ResponseItemSchema: GenMessage<ResponseItem>;
835
+ /**
836
+ * @generated from message llmleaf.v1.ResponseItemList
837
+ */
838
+ export type ResponseItemList = Message<"llmleaf.v1.ResponseItemList"> & {
839
+ /**
840
+ * @generated from field: repeated llmleaf.v1.ResponseItem items = 1;
841
+ */
842
+ items: ResponseItem[];
843
+ };
844
+ /**
845
+ * Describes the message llmleaf.v1.ResponseItemList.
846
+ * Use `create(ResponseItemListSchema)` to create a new message.
847
+ */
848
+ export declare const ResponseItemListSchema: GenMessage<ResponseItemList>;
849
+ /**
850
+ * A conversation message item. On input, `role` is "user" | "system" | "developer" |
851
+ * "assistant" and `content` is a bare string or input parts; on output, role is
852
+ * "assistant", content is output_text parts, and `status`/`id` are set.
853
+ *
854
+ * @generated from message llmleaf.v1.ResponseMessageItem
855
+ */
856
+ export type ResponseMessageItem = Message<"llmleaf.v1.ResponseMessageItem"> & {
857
+ /**
858
+ * @generated from field: optional string id = 1;
859
+ */
860
+ id?: string | undefined;
861
+ /**
862
+ * @generated from field: string role = 2;
863
+ */
864
+ role: string;
865
+ /**
866
+ * @generated from oneof llmleaf.v1.ResponseMessageItem.content
867
+ */
868
+ content: {
869
+ /**
870
+ * @generated from field: string text = 3;
871
+ */
872
+ value: string;
873
+ case: "text";
874
+ } | {
875
+ /**
876
+ * @generated from field: llmleaf.v1.ResponseContentParts parts = 4;
877
+ */
878
+ value: ResponseContentParts;
879
+ case: "parts";
880
+ } | {
881
+ case: undefined;
882
+ value?: undefined;
883
+ };
884
+ /**
885
+ * output only: "in_progress" | "completed"
886
+ *
887
+ * @generated from field: optional string status = 5;
888
+ */
889
+ status?: string | undefined;
890
+ };
891
+ /**
892
+ * Describes the message llmleaf.v1.ResponseMessageItem.
893
+ * Use `create(ResponseMessageItemSchema)` to create a new message.
894
+ */
895
+ export declare const ResponseMessageItemSchema: GenMessage<ResponseMessageItem>;
896
+ /**
897
+ * One content part; the `"type"` wire token matches the set field's name:
898
+ * {"type":"input_text","text":...}
899
+ * {"type":"input_image","image_url":"<url>","detail":...} (image_url is a STRING here)
900
+ * {"type":"output_text","text":...,"annotations":[]}
901
+ *
902
+ * @generated from message llmleaf.v1.ResponseContentPart
903
+ */
904
+ export type ResponseContentPart = Message<"llmleaf.v1.ResponseContentPart"> & {
905
+ /**
906
+ * @generated from oneof llmleaf.v1.ResponseContentPart.part
907
+ */
908
+ part: {
909
+ /**
910
+ * @generated from field: llmleaf.v1.ResponseTextPart input_text = 1;
911
+ */
912
+ value: ResponseTextPart;
913
+ case: "inputText";
914
+ } | {
915
+ /**
916
+ * @generated from field: llmleaf.v1.ResponseInputImagePart input_image = 2;
917
+ */
918
+ value: ResponseInputImagePart;
919
+ case: "inputImage";
920
+ } | {
921
+ /**
922
+ * @generated from field: llmleaf.v1.ResponseTextPart output_text = 3;
923
+ */
924
+ value: ResponseTextPart;
925
+ case: "outputText";
926
+ } | {
927
+ case: undefined;
928
+ value?: undefined;
929
+ };
930
+ };
931
+ /**
932
+ * Describes the message llmleaf.v1.ResponseContentPart.
933
+ * Use `create(ResponseContentPartSchema)` to create a new message.
934
+ */
935
+ export declare const ResponseContentPartSchema: GenMessage<ResponseContentPart>;
936
+ /**
937
+ * @generated from message llmleaf.v1.ResponseContentParts
938
+ */
939
+ export type ResponseContentParts = Message<"llmleaf.v1.ResponseContentParts"> & {
940
+ /**
941
+ * @generated from field: repeated llmleaf.v1.ResponseContentPart items = 1;
942
+ */
943
+ items: ResponseContentPart[];
944
+ };
945
+ /**
946
+ * Describes the message llmleaf.v1.ResponseContentParts.
947
+ * Use `create(ResponseContentPartsSchema)` to create a new message.
948
+ */
949
+ export declare const ResponseContentPartsSchema: GenMessage<ResponseContentParts>;
950
+ /**
951
+ * @generated from message llmleaf.v1.ResponseTextPart
952
+ */
953
+ export type ResponseTextPart = Message<"llmleaf.v1.ResponseTextPart"> & {
954
+ /**
955
+ * @generated from field: string text = 1;
956
+ */
957
+ text: string;
958
+ };
959
+ /**
960
+ * Describes the message llmleaf.v1.ResponseTextPart.
961
+ * Use `create(ResponseTextPartSchema)` to create a new message.
962
+ */
963
+ export declare const ResponseTextPartSchema: GenMessage<ResponseTextPart>;
964
+ /**
965
+ * @generated from message llmleaf.v1.ResponseInputImagePart
966
+ */
967
+ export type ResponseInputImagePart = Message<"llmleaf.v1.ResponseInputImagePart"> & {
968
+ /**
969
+ * plain string, NOT the chat dialect's nested object
970
+ *
971
+ * @generated from field: string image_url = 1;
972
+ */
973
+ imageUrl: string;
974
+ /**
975
+ * "auto" | "low" | "high"
976
+ *
977
+ * @generated from field: optional string detail = 2;
978
+ */
979
+ detail?: string | undefined;
980
+ };
981
+ /**
982
+ * Describes the message llmleaf.v1.ResponseInputImagePart.
983
+ * Use `create(ResponseInputImagePartSchema)` to create a new message.
984
+ */
985
+ export declare const ResponseInputImagePartSchema: GenMessage<ResponseInputImagePart>;
986
+ /**
987
+ * A function call the model made. `call_id` pairs it with its function_call_output;
988
+ * `arguments` is the raw JSON string exactly as emitted.
989
+ *
990
+ * @generated from message llmleaf.v1.ResponseFunctionCallItem
991
+ */
992
+ export type ResponseFunctionCallItem = Message<"llmleaf.v1.ResponseFunctionCallItem"> & {
993
+ /**
994
+ * @generated from field: optional string id = 1;
995
+ */
996
+ id?: string | undefined;
997
+ /**
998
+ * @generated from field: string call_id = 2;
999
+ */
1000
+ callId: string;
1001
+ /**
1002
+ * @generated from field: string name = 3;
1003
+ */
1004
+ name: string;
1005
+ /**
1006
+ * @generated from field: string arguments = 4;
1007
+ */
1008
+ arguments: string;
1009
+ /**
1010
+ * @generated from field: optional string status = 5;
1011
+ */
1012
+ status?: string | undefined;
1013
+ };
1014
+ /**
1015
+ * Describes the message llmleaf.v1.ResponseFunctionCallItem.
1016
+ * Use `create(ResponseFunctionCallItemSchema)` to create a new message.
1017
+ */
1018
+ export declare const ResponseFunctionCallItemSchema: GenMessage<ResponseFunctionCallItem>;
1019
+ /**
1020
+ * The caller's answer to a function call, replayed on the next turn.
1021
+ *
1022
+ * @generated from message llmleaf.v1.ResponseFunctionCallOutputItem
1023
+ */
1024
+ export type ResponseFunctionCallOutputItem = Message<"llmleaf.v1.ResponseFunctionCallOutputItem"> & {
1025
+ /**
1026
+ * @generated from field: optional string id = 1;
1027
+ */
1028
+ id?: string | undefined;
1029
+ /**
1030
+ * @generated from field: string call_id = 2;
1031
+ */
1032
+ callId: string;
1033
+ /**
1034
+ * @generated from field: string output = 3;
1035
+ */
1036
+ output: string;
1037
+ };
1038
+ /**
1039
+ * Describes the message llmleaf.v1.ResponseFunctionCallOutputItem.
1040
+ * Use `create(ResponseFunctionCallOutputItemSchema)` to create a new message.
1041
+ */
1042
+ export declare const ResponseFunctionCallOutputItemSchema: GenMessage<ResponseFunctionCallOutputItem>;
1043
+ /**
1044
+ * A reasoning ("thinking") item. `summary` entries are {"type":"summary_text","text"},
1045
+ * `content` entries are {"type":"reasoning_text","text"} — the entry's list decides its
1046
+ * wire `type` token. `encrypted_content` is opaque and MUST be echoed back verbatim in
1047
+ * the next request's input to continue an encrypted reasoning turn (llmleaf requests it
1048
+ * from Responses-speaking upstreams so multi-turn reasoning survives statelessly).
1049
+ *
1050
+ * @generated from message llmleaf.v1.ResponseReasoningItem
1051
+ */
1052
+ export type ResponseReasoningItem = Message<"llmleaf.v1.ResponseReasoningItem"> & {
1053
+ /**
1054
+ * @generated from field: optional string id = 1;
1055
+ */
1056
+ id?: string | undefined;
1057
+ /**
1058
+ * @generated from field: repeated llmleaf.v1.ResponseReasoningText summary = 2;
1059
+ */
1060
+ summary: ResponseReasoningText[];
1061
+ /**
1062
+ * @generated from field: repeated llmleaf.v1.ResponseReasoningText content = 3;
1063
+ */
1064
+ content: ResponseReasoningText[];
1065
+ /**
1066
+ * @generated from field: optional string encrypted_content = 4;
1067
+ */
1068
+ encryptedContent?: string | undefined;
1069
+ };
1070
+ /**
1071
+ * Describes the message llmleaf.v1.ResponseReasoningItem.
1072
+ * Use `create(ResponseReasoningItemSchema)` to create a new message.
1073
+ */
1074
+ export declare const ResponseReasoningItemSchema: GenMessage<ResponseReasoningItem>;
1075
+ /**
1076
+ * @generated from message llmleaf.v1.ResponseReasoningText
1077
+ */
1078
+ export type ResponseReasoningText = Message<"llmleaf.v1.ResponseReasoningText"> & {
1079
+ /**
1080
+ * @generated from field: string text = 1;
1081
+ */
1082
+ text: string;
1083
+ };
1084
+ /**
1085
+ * Describes the message llmleaf.v1.ResponseReasoningText.
1086
+ * Use `create(ResponseReasoningTextSchema)` to create a new message.
1087
+ */
1088
+ export declare const ResponseReasoningTextSchema: GenMessage<ResponseReasoningText>;
1089
+ /**
1090
+ * A tool the model MAY call — FLAT in this dialect (`type`/`name`/`parameters` at the
1091
+ * top level, no nested `function` object). `parameters` is a raw JSON Schema string.
1092
+ *
1093
+ * @generated from message llmleaf.v1.ResponsesToolDef
1094
+ */
1095
+ export type ResponsesToolDef = Message<"llmleaf.v1.ResponsesToolDef"> & {
1096
+ /**
1097
+ * "function"
1098
+ *
1099
+ * @generated from field: string type = 1;
1100
+ */
1101
+ type: string;
1102
+ /**
1103
+ * @generated from field: string name = 2;
1104
+ */
1105
+ name: string;
1106
+ /**
1107
+ * @generated from field: optional string description = 3;
1108
+ */
1109
+ description?: string | undefined;
1110
+ /**
1111
+ * raw JSON object
1112
+ *
1113
+ * @generated from field: optional string parameters = 4;
1114
+ */
1115
+ parameters?: string | undefined;
1116
+ /**
1117
+ * defaults TRUE upstream; llmleaf's own edge pins false
1118
+ *
1119
+ * @generated from field: optional bool strict = 5;
1120
+ */
1121
+ strict?: boolean | undefined;
1122
+ };
1123
+ /**
1124
+ * Describes the message llmleaf.v1.ResponsesToolDef.
1125
+ * Use `create(ResponsesToolDefSchema)` to create a new message.
1126
+ */
1127
+ export declare const ResponsesToolDefSchema: GenMessage<ResponsesToolDef>;
1128
+ /**
1129
+ * tool_choice: a mode string ("auto"|"none"|"required") or the FLAT named object
1130
+ * {"type":"function","name":"..."} (no nested `function`, unlike the chat dialect).
1131
+ *
1132
+ * @generated from message llmleaf.v1.ResponsesToolChoice
1133
+ */
1134
+ export type ResponsesToolChoice = Message<"llmleaf.v1.ResponsesToolChoice"> & {
1135
+ /**
1136
+ * @generated from oneof llmleaf.v1.ResponsesToolChoice.choice
1137
+ */
1138
+ choice: {
1139
+ /**
1140
+ * @generated from field: string mode = 1;
1141
+ */
1142
+ value: string;
1143
+ case: "mode";
1144
+ } | {
1145
+ /**
1146
+ * @generated from field: llmleaf.v1.ResponsesNamedToolChoice named = 2;
1147
+ */
1148
+ value: ResponsesNamedToolChoice;
1149
+ case: "named";
1150
+ } | {
1151
+ case: undefined;
1152
+ value?: undefined;
1153
+ };
1154
+ };
1155
+ /**
1156
+ * Describes the message llmleaf.v1.ResponsesToolChoice.
1157
+ * Use `create(ResponsesToolChoiceSchema)` to create a new message.
1158
+ */
1159
+ export declare const ResponsesToolChoiceSchema: GenMessage<ResponsesToolChoice>;
1160
+ /**
1161
+ * @generated from message llmleaf.v1.ResponsesNamedToolChoice
1162
+ */
1163
+ export type ResponsesNamedToolChoice = Message<"llmleaf.v1.ResponsesNamedToolChoice"> & {
1164
+ /**
1165
+ * "function"
1166
+ *
1167
+ * @generated from field: string type = 1;
1168
+ */
1169
+ type: string;
1170
+ /**
1171
+ * @generated from field: string name = 2;
1172
+ */
1173
+ name: string;
1174
+ };
1175
+ /**
1176
+ * Describes the message llmleaf.v1.ResponsesNamedToolChoice.
1177
+ * Use `create(ResponsesNamedToolChoiceSchema)` to create a new message.
1178
+ */
1179
+ export declare const ResponsesNamedToolChoiceSchema: GenMessage<ResponsesNamedToolChoice>;
1180
+ /**
1181
+ * reasoning: {"effort":"minimal"|"low"|"medium"|"high"|..., "summary":...}
1182
+ *
1183
+ * @generated from message llmleaf.v1.ResponsesReasoning
1184
+ */
1185
+ export type ResponsesReasoning = Message<"llmleaf.v1.ResponsesReasoning"> & {
1186
+ /**
1187
+ * @generated from field: optional string effort = 1;
1188
+ */
1189
+ effort?: string | undefined;
1190
+ /**
1191
+ * @generated from field: optional string summary = 2;
1192
+ */
1193
+ summary?: string | undefined;
1194
+ };
1195
+ /**
1196
+ * Describes the message llmleaf.v1.ResponsesReasoning.
1197
+ * Use `create(ResponsesReasoningSchema)` to create a new message.
1198
+ */
1199
+ export declare const ResponsesReasoningSchema: GenMessage<ResponsesReasoning>;
1200
+ /**
1201
+ * @generated from message llmleaf.v1.ResponsesRequest
1202
+ */
1203
+ export type ResponsesRequest = Message<"llmleaf.v1.ResponsesRequest"> & {
1204
+ /**
1205
+ * @generated from field: string model = 1;
1206
+ */
1207
+ model: string;
1208
+ /**
1209
+ * Wire `input` is either a bare string (one user message) or an array of items.
1210
+ *
1211
+ * @generated from oneof llmleaf.v1.ResponsesRequest.input
1212
+ */
1213
+ input: {
1214
+ /**
1215
+ * @generated from field: string text = 2;
1216
+ */
1217
+ value: string;
1218
+ case: "text";
1219
+ } | {
1220
+ /**
1221
+ * @generated from field: llmleaf.v1.ResponseItemList items = 3;
1222
+ */
1223
+ value: ResponseItemList;
1224
+ case: "items";
1225
+ } | {
1226
+ case: undefined;
1227
+ value?: undefined;
1228
+ };
1229
+ /**
1230
+ * becomes a leading system message
1231
+ *
1232
+ * @generated from field: optional string instructions = 4;
1233
+ */
1234
+ instructions?: string | undefined;
1235
+ /**
1236
+ * @generated from field: optional bool stream = 5;
1237
+ */
1238
+ stream?: boolean | undefined;
1239
+ /**
1240
+ * @generated from field: optional float temperature = 6;
1241
+ */
1242
+ temperature?: number | undefined;
1243
+ /**
1244
+ * @generated from field: optional float top_p = 7;
1245
+ */
1246
+ topP?: number | undefined;
1247
+ /**
1248
+ * @generated from field: optional uint32 max_output_tokens = 8;
1249
+ */
1250
+ maxOutputTokens?: number | undefined;
1251
+ /**
1252
+ * @generated from field: repeated llmleaf.v1.ResponsesToolDef tools = 9;
1253
+ */
1254
+ tools: ResponsesToolDef[];
1255
+ /**
1256
+ * @generated from field: optional llmleaf.v1.ResponsesToolChoice tool_choice = 10;
1257
+ */
1258
+ toolChoice?: ResponsesToolChoice | undefined;
1259
+ /**
1260
+ * @generated from field: optional llmleaf.v1.ResponsesReasoning reasoning = 11;
1261
+ */
1262
+ reasoning?: ResponsesReasoning | undefined;
1263
+ /**
1264
+ * Accepted but always answered `false` — llmleaf stores nothing.
1265
+ *
1266
+ * @generated from field: optional bool store = 12;
1267
+ */
1268
+ store?: boolean | undefined;
1269
+ /**
1270
+ * Dialect-specific passthrough, spliced verbatim into the request body (P7).
1271
+ *
1272
+ * raw JSON object
1273
+ *
1274
+ * @generated from field: optional string extra = 13;
1275
+ */
1276
+ extra?: string | undefined;
1277
+ };
1278
+ /**
1279
+ * Describes the message llmleaf.v1.ResponsesRequest.
1280
+ * Use `create(ResponsesRequestSchema)` to create a new message.
1281
+ */
1282
+ export declare const ResponsesRequestSchema: GenMessage<ResponsesRequest>;
1283
+ /**
1284
+ * Token accounting in the Responses dialect's own names (`input_tokens`/`output_tokens`,
1285
+ * not the chat dialect's `prompt_tokens`/`completion_tokens`).
1286
+ *
1287
+ * @generated from message llmleaf.v1.ResponsesUsage
1288
+ */
1289
+ export type ResponsesUsage = Message<"llmleaf.v1.ResponsesUsage"> & {
1290
+ /**
1291
+ * @generated from field: uint32 input_tokens = 1;
1292
+ */
1293
+ inputTokens: number;
1294
+ /**
1295
+ * @generated from field: optional llmleaf.v1.ResponsesInputTokensDetails input_tokens_details = 2;
1296
+ */
1297
+ inputTokensDetails?: ResponsesInputTokensDetails | undefined;
1298
+ /**
1299
+ * @generated from field: uint32 output_tokens = 3;
1300
+ */
1301
+ outputTokens: number;
1302
+ /**
1303
+ * @generated from field: optional llmleaf.v1.ResponsesOutputTokensDetails output_tokens_details = 4;
1304
+ */
1305
+ outputTokensDetails?: ResponsesOutputTokensDetails | undefined;
1306
+ /**
1307
+ * @generated from field: uint32 total_tokens = 5;
1308
+ */
1309
+ totalTokens: number;
1310
+ };
1311
+ /**
1312
+ * Describes the message llmleaf.v1.ResponsesUsage.
1313
+ * Use `create(ResponsesUsageSchema)` to create a new message.
1314
+ */
1315
+ export declare const ResponsesUsageSchema: GenMessage<ResponsesUsage>;
1316
+ /**
1317
+ * @generated from message llmleaf.v1.ResponsesInputTokensDetails
1318
+ */
1319
+ export type ResponsesInputTokensDetails = Message<"llmleaf.v1.ResponsesInputTokensDetails"> & {
1320
+ /**
1321
+ * @generated from field: optional uint32 cached_tokens = 1;
1322
+ */
1323
+ cachedTokens?: number | undefined;
1324
+ };
1325
+ /**
1326
+ * Describes the message llmleaf.v1.ResponsesInputTokensDetails.
1327
+ * Use `create(ResponsesInputTokensDetailsSchema)` to create a new message.
1328
+ */
1329
+ export declare const ResponsesInputTokensDetailsSchema: GenMessage<ResponsesInputTokensDetails>;
1330
+ /**
1331
+ * @generated from message llmleaf.v1.ResponsesOutputTokensDetails
1332
+ */
1333
+ export type ResponsesOutputTokensDetails = Message<"llmleaf.v1.ResponsesOutputTokensDetails"> & {
1334
+ /**
1335
+ * @generated from field: optional uint32 reasoning_tokens = 1;
1336
+ */
1337
+ reasoningTokens?: number | undefined;
1338
+ };
1339
+ /**
1340
+ * Describes the message llmleaf.v1.ResponsesOutputTokensDetails.
1341
+ * Use `create(ResponsesOutputTokensDetailsSchema)` to create a new message.
1342
+ */
1343
+ export declare const ResponsesOutputTokensDetailsSchema: GenMessage<ResponsesOutputTokensDetails>;
1344
+ /**
1345
+ * status "incomplete" refinement: "max_output_tokens" | "content_filter".
1346
+ *
1347
+ * @generated from message llmleaf.v1.ResponsesIncompleteDetails
1348
+ */
1349
+ export type ResponsesIncompleteDetails = Message<"llmleaf.v1.ResponsesIncompleteDetails"> & {
1350
+ /**
1351
+ * @generated from field: string reason = 1;
1352
+ */
1353
+ reason: string;
1354
+ };
1355
+ /**
1356
+ * Describes the message llmleaf.v1.ResponsesIncompleteDetails.
1357
+ * Use `create(ResponsesIncompleteDetailsSchema)` to create a new message.
1358
+ */
1359
+ export declare const ResponsesIncompleteDetailsSchema: GenMessage<ResponsesIncompleteDetails>;
1360
+ /**
1361
+ * The response object (`"object":"response"`), also the snapshot carried by the
1362
+ * `response.created` / `response.in_progress` / `response.completed` stream events.
1363
+ * Fields the wire echoes but SDKs don't need typed (tools, tool_choice, truncation,
1364
+ * parallel_tool_calls, …) are simply ignored on decode — JSON tolerates unknown keys.
1365
+ *
1366
+ * @generated from message llmleaf.v1.ResponsesResponse
1367
+ */
1368
+ export type ResponsesResponse = Message<"llmleaf.v1.ResponsesResponse"> & {
1369
+ /**
1370
+ * @generated from field: string id = 1;
1371
+ */
1372
+ id: string;
1373
+ /**
1374
+ * "response"
1375
+ *
1376
+ * @generated from field: string object = 2;
1377
+ */
1378
+ object: string;
1379
+ /**
1380
+ * unix seconds
1381
+ *
1382
+ * @generated from field: int64 created_at = 3;
1383
+ */
1384
+ createdAt: bigint;
1385
+ /**
1386
+ * "completed" | "in_progress" | "incomplete" | "failed"
1387
+ *
1388
+ * @generated from field: string status = 4;
1389
+ */
1390
+ status: string;
1391
+ /**
1392
+ * @generated from field: optional llmleaf.v1.ResponsesIncompleteDetails incomplete_details = 5;
1393
+ */
1394
+ incompleteDetails?: ResponsesIncompleteDetails | undefined;
1395
+ /**
1396
+ * @generated from field: optional llmleaf.v1.ErrorBody error = 6;
1397
+ */
1398
+ error?: ErrorBody | undefined;
1399
+ /**
1400
+ * @generated from field: string model = 7;
1401
+ */
1402
+ model: string;
1403
+ /**
1404
+ * @generated from field: repeated llmleaf.v1.ResponseItem output = 8;
1405
+ */
1406
+ output: ResponseItem[];
1407
+ /**
1408
+ * null on in-flight snapshots
1409
+ *
1410
+ * @generated from field: optional llmleaf.v1.ResponsesUsage usage = 9;
1411
+ */
1412
+ usage?: ResponsesUsage | undefined;
1413
+ /**
1414
+ * llmleaf always answers false
1415
+ *
1416
+ * @generated from field: optional bool store = 10;
1417
+ */
1418
+ store?: boolean | undefined;
1419
+ /**
1420
+ * @generated from field: optional string instructions = 11;
1421
+ */
1422
+ instructions?: string | undefined;
1423
+ /**
1424
+ * @generated from field: optional uint32 max_output_tokens = 12;
1425
+ */
1426
+ maxOutputTokens?: number | undefined;
1427
+ /**
1428
+ * @generated from field: optional float temperature = 13;
1429
+ */
1430
+ temperature?: number | undefined;
1431
+ /**
1432
+ * @generated from field: optional float top_p = 14;
1433
+ */
1434
+ topP?: number | undefined;
1435
+ /**
1436
+ * @generated from field: optional llmleaf.v1.ResponsesReasoning reasoning = 15;
1437
+ */
1438
+ reasoning?: ResponsesReasoning | undefined;
1439
+ };
1440
+ /**
1441
+ * Describes the message llmleaf.v1.ResponsesResponse.
1442
+ * Use `create(ResponsesResponseSchema)` to create a new message.
1443
+ */
1444
+ export declare const ResponsesResponseSchema: GenMessage<ResponsesResponse>;
1445
+ /**
1446
+ * One streaming SSE event. Unlike chat streaming there is NO `data: [DONE]` sentinel:
1447
+ * each frame is `event: <type>` + `data: <json>` where the JSON is self-describing via
1448
+ * `type`, and the stream ends after the terminal `response.completed` /
1449
+ * `response.incomplete` / `response.failed` event. This is a flat superset of every
1450
+ * event's fields — `type` says which ones are meaningful; SDKs MUST ignore event types
1451
+ * they don't recognise (the dialect grows by adding types).
1452
+ *
1453
+ * @generated from message llmleaf.v1.ResponsesStreamEvent
1454
+ */
1455
+ export type ResponsesStreamEvent = Message<"llmleaf.v1.ResponsesStreamEvent"> & {
1456
+ /**
1457
+ * "response.created", "response.output_text.delta", ...
1458
+ *
1459
+ * @generated from field: string type = 1;
1460
+ */
1461
+ type: string;
1462
+ /**
1463
+ * @generated from field: uint64 sequence_number = 2;
1464
+ */
1465
+ sequenceNumber: bigint;
1466
+ /**
1467
+ * response.created/in_progress/completed/incomplete/failed
1468
+ *
1469
+ * @generated from field: optional llmleaf.v1.ResponsesResponse response = 3;
1470
+ */
1471
+ response?: ResponsesResponse | undefined;
1472
+ /**
1473
+ * @generated from field: optional uint32 output_index = 4;
1474
+ */
1475
+ outputIndex?: number | undefined;
1476
+ /**
1477
+ * @generated from field: optional string item_id = 5;
1478
+ */
1479
+ itemId?: string | undefined;
1480
+ /**
1481
+ * @generated from field: optional uint32 content_index = 6;
1482
+ */
1483
+ contentIndex?: number | undefined;
1484
+ /**
1485
+ * response.output_item.added/done
1486
+ *
1487
+ * @generated from field: optional llmleaf.v1.ResponseItem item = 7;
1488
+ */
1489
+ item?: ResponseItem | undefined;
1490
+ /**
1491
+ * response.content_part.added/done
1492
+ *
1493
+ * @generated from field: optional llmleaf.v1.ResponseContentPart part = 8;
1494
+ */
1495
+ part?: ResponseContentPart | undefined;
1496
+ /**
1497
+ * *.delta events (text / reasoning / arguments)
1498
+ *
1499
+ * @generated from field: optional string delta = 9;
1500
+ */
1501
+ delta?: string | undefined;
1502
+ /**
1503
+ * response.output_text.done / reasoning_text.done
1504
+ *
1505
+ * @generated from field: optional string text = 10;
1506
+ */
1507
+ text?: string | undefined;
1508
+ /**
1509
+ * response.function_call_arguments.done
1510
+ *
1511
+ * @generated from field: optional string arguments = 11;
1512
+ */
1513
+ arguments?: string | undefined;
1514
+ /**
1515
+ * "error" event
1516
+ *
1517
+ * @generated from field: optional string message = 12;
1518
+ */
1519
+ message?: string | undefined;
1520
+ };
1521
+ /**
1522
+ * Describes the message llmleaf.v1.ResponsesStreamEvent.
1523
+ * Use `create(ResponsesStreamEventSchema)` to create a new message.
1524
+ */
1525
+ export declare const ResponsesStreamEventSchema: GenMessage<ResponsesStreamEvent>;
787
1526
  /**
788
1527
  * @generated from message llmleaf.v1.EmbeddingRequest
789
1528
  */