tekimax-ts 0.1.7 → 1.0.0-beta.1
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 +155 -25
- package/dist/adapter-BtbeHotF.d.cts +81 -0
- package/dist/adapter-BtbeHotF.d.ts +81 -0
- package/dist/adapter-CMu9Gvvm.d.cts +81 -0
- package/dist/adapter-CMu9Gvvm.d.ts +81 -0
- package/dist/adapter-DeUJcFAn.d.cts +43 -0
- package/dist/adapter-DeUJcFAn.d.ts +43 -0
- package/dist/adapter-K9NFtBg8.d.cts +81 -0
- package/dist/adapter-K9NFtBg8.d.ts +81 -0
- package/dist/adapter-TuDzMu0Y.d.cts +43 -0
- package/dist/adapter-TuDzMu0Y.d.ts +43 -0
- package/dist/adapter-YcdKK3By.d.cts +63 -0
- package/dist/adapter-YcdKK3By.d.ts +63 -0
- package/dist/adapter-zXqUGXCx.d.cts +81 -0
- package/dist/adapter-zXqUGXCx.d.ts +81 -0
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/gen/index.js +1572 -378
- package/dist/gen/types.js +290 -201
- package/dist/gen/zod/allowedToolChoiceSchema.js +17 -13
- package/dist/gen/zod/allowedToolsParamSchema.js +28 -13
- package/dist/gen/zod/annotationSchema.js +16 -11
- package/dist/gen/zod/assistantMessageItemParamSchema.js +52 -19
- package/dist/gen/zod/createResponseBodySchema.js +142 -44
- package/dist/gen/zod/createresponseSchema.js +23 -12
- package/dist/gen/zod/detailEnumSchema.js +8 -8
- package/dist/gen/zod/developerMessageItemParamSchema.js +35 -16
- package/dist/gen/zod/emptyModelParamSchema.js +8 -8
- package/dist/gen/zod/errorPayloadSchema.js +27 -14
- package/dist/gen/zod/errorSchema.js +17 -11
- package/dist/gen/zod/errorStreamingEventSchema.js +23 -13
- package/dist/gen/zod/functionCallItemParamSchema.js +38 -15
- package/dist/gen/zod/functionCallItemStatusSchema.js +12 -8
- package/dist/gen/zod/functionCallOutputItemParamSchema.js +90 -27
- package/dist/gen/zod/functionCallOutputSchema.js +67 -24
- package/dist/gen/zod/functionCallOutputStatusEnumSchema.js +12 -8
- package/dist/gen/zod/functionCallSchema.js +29 -16
- package/dist/gen/zod/functionCallStatusSchema.js +12 -8
- package/dist/gen/zod/functionToolChoiceSchema.js +10 -10
- package/dist/gen/zod/functionToolParamSchema.js +25 -14
- package/dist/gen/zod/functionToolSchema.js +24 -14
- package/dist/gen/zod/imageDetailSchema.js +8 -8
- package/dist/gen/zod/includeEnumSchema.js +11 -8
- package/dist/gen/zod/incompleteDetailsSchema.js +14 -10
- package/dist/gen/zod/index.js +871 -213
- package/dist/gen/zod/inputFileContentParamSchema.js +24 -13
- package/dist/gen/zod/inputFileContentSchema.js +23 -12
- package/dist/gen/zod/inputImageContentParamAutoParamSchema.js +29 -13
- package/dist/gen/zod/inputImageContentSchema.js +22 -13
- package/dist/gen/zod/inputTextContentParamSchema.js +19 -11
- package/dist/gen/zod/inputTextContentSchema.js +16 -11
- package/dist/gen/zod/inputTokensDetailsSchema.js +15 -10
- package/dist/gen/zod/inputVideoContentSchema.js +17 -11
- package/dist/gen/zod/itemFieldSchema.js +45 -20
- package/dist/gen/zod/itemParamSchema.js +55 -23
- package/dist/gen/zod/itemReferenceParamSchema.js +15 -11
- package/dist/gen/zod/jsonObjectResponseFormatSchema.js +9 -9
- package/dist/gen/zod/jsonSchemaResponseFormatParamSchema.js +38 -13
- package/dist/gen/zod/jsonSchemaResponseFormatSchema.js +13 -13
- package/dist/gen/zod/logProbSchema.js +20 -14
- package/dist/gen/zod/messageRoleSchema.js +13 -8
- package/dist/gen/zod/messageSchema.js +109 -43
- package/dist/gen/zod/messageStatusSchema.js +12 -8
- package/dist/gen/zod/metadataParamSchema.js +13 -8
- package/dist/gen/zod/outputTextContentParamSchema.js +21 -12
- package/dist/gen/zod/outputTextContentSchema.js +30 -15
- package/dist/gen/zod/outputTokensDetailsSchema.js +17 -10
- package/dist/gen/zod/reasoningBodySchema.js +173 -54
- package/dist/gen/zod/reasoningEffortEnumSchema.js +14 -8
- package/dist/gen/zod/reasoningItemParamSchema.js +26 -14
- package/dist/gen/zod/reasoningParamSchema.js +33 -13
- package/dist/gen/zod/reasoningSchema.js +27 -13
- package/dist/gen/zod/reasoningSummaryContentParamSchema.js +13 -10
- package/dist/gen/zod/reasoningSummaryEnumSchema.js +12 -8
- package/dist/gen/zod/reasoningTextContentSchema.js +16 -11
- package/dist/gen/zod/refusalContentParamSchema.js +13 -10
- package/dist/gen/zod/refusalContentSchema.js +18 -11
- package/dist/gen/zod/responseCompletedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseContentPartAddedStreamingEventSchema.js +98 -39
- package/dist/gen/zod/responseContentPartDoneStreamingEventSchema.js +98 -39
- package/dist/gen/zod/responseCreatedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseFailedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.js +38 -15
- package/dist/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.js +33 -14
- package/dist/gen/zod/responseInProgressStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseIncompleteStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseOutputItemAddedStreamingEventSchema.js +32 -14
- package/dist/gen/zod/responseOutputItemDoneStreamingEventSchema.js +30 -14
- package/dist/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.js +43 -17
- package/dist/gen/zod/responseOutputTextDeltaStreamingEventSchema.js +48 -18
- package/dist/gen/zod/responseOutputTextDoneStreamingEventSchema.js +39 -17
- package/dist/gen/zod/responseQueuedStreamingEventSchema.js +23 -13
- package/dist/gen/zod/responseReasoningDeltaStreamingEventSchema.js +40 -16
- package/dist/gen/zod/responseReasoningDoneStreamingEventSchema.js +31 -15
- package/dist/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.js +42 -16
- package/dist/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.js +33 -15
- package/dist/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.js +102 -39
- package/dist/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.js +102 -39
- package/dist/gen/zod/responseRefusalDeltaStreamingEventSchema.js +33 -15
- package/dist/gen/zod/responseRefusalDoneStreamingEventSchema.js +31 -15
- package/dist/gen/zod/responseResourceSchema.js +146 -51
- package/dist/gen/zod/responsesToolParamSchema.js +15 -11
- package/dist/gen/zod/serviceTierEnumSchema.js +13 -8
- package/dist/gen/zod/specificFunctionParamSchema.js +13 -10
- package/dist/gen/zod/specificToolChoiceParamSchema.js +11 -9
- package/dist/gen/zod/streamOptionsParamSchema.js +18 -10
- package/dist/gen/zod/summaryTextContentSchema.js +18 -11
- package/dist/gen/zod/systemMessageItemParamSchema.js +35 -16
- package/dist/gen/zod/textContentSchema.js +13 -11
- package/dist/gen/zod/textFieldSchema.js +24 -14
- package/dist/gen/zod/textFormatParamSchema.js +16 -10
- package/dist/gen/zod/textParamSchema.js +23 -12
- package/dist/gen/zod/textResponseFormatSchema.js +9 -9
- package/dist/gen/zod/toolChoiceParamSchema.js +21 -11
- package/dist/gen/zod/toolChoiceValueEnumSchema.js +8 -8
- package/dist/gen/zod/toolSchema.js +16 -11
- package/dist/gen/zod/topLogProbSchema.js +14 -12
- package/dist/gen/zod/truncationEnumSchema.js +8 -8
- package/dist/gen/zod/urlCitationBodySchema.js +29 -14
- package/dist/gen/zod/urlCitationParamSchema.js +28 -13
- package/dist/gen/zod/usageSchema.js +35 -16
- package/dist/gen/zod/userMessageItemParamSchema.js +64 -22
- package/dist/gen/zod/verbosityEnumSchema.js +8 -8
- package/dist/index.cjs +740 -0
- package/dist/index.d.cts +2742 -0
- package/dist/index.d.mts +51000 -31111
- package/dist/index.d.ts +962 -29932
- package/dist/index.js +347 -1431
- package/dist/index.mjs +2441 -1010
- package/dist/react/index.cjs +119 -0
- package/dist/react/index.d.cts +21 -0
- package/dist/react/index.d.ts +21 -0
- package/dist/react/index.js +94 -0
- package/package.json +40 -8
- package/.dockerignore +0 -5
- package/Dockerfile +0 -25
- package/kubb.config.js +0 -30
- package/kubb.config.ts +0 -35
- package/public/logos/tekimax-logo-ScreenRGB-2.png +0 -0
- package/spec/openapi.json +0 -3876
- package/src/client.ts +0 -129
- package/src/gen/.kubb/config.ts +0 -43
- package/src/gen/client/createresponse.ts +0 -27
- package/src/gen/client/index.ts +0 -1
- package/src/gen/index.ts +0 -187
- package/src/gen/schemas/allowedToolChoice.json +0 -1
- package/src/gen/schemas/allowedToolsParam.json +0 -1
- package/src/gen/schemas/annotation.json +0 -1
- package/src/gen/schemas/assistantMessageItemParam.json +0 -1
- package/src/gen/schemas/createResponseBody.json +0 -1
- package/src/gen/schemas/detailEnum.json +0 -1
- package/src/gen/schemas/developerMessageItemParam.json +0 -1
- package/src/gen/schemas/emptyModelParam.json +0 -1
- package/src/gen/schemas/error.json +0 -1
- package/src/gen/schemas/errorPayload.json +0 -1
- package/src/gen/schemas/errorStreamingEvent.json +0 -1
- package/src/gen/schemas/functionCall.json +0 -1
- package/src/gen/schemas/functionCallItemParam.json +0 -1
- package/src/gen/schemas/functionCallItemStatus.json +0 -1
- package/src/gen/schemas/functionCallOutput.json +0 -1
- package/src/gen/schemas/functionCallOutputItemParam.json +0 -1
- package/src/gen/schemas/functionCallOutputStatusEnum.json +0 -1
- package/src/gen/schemas/functionCallStatus.json +0 -1
- package/src/gen/schemas/functionTool.json +0 -1
- package/src/gen/schemas/functionToolChoice.json +0 -1
- package/src/gen/schemas/functionToolParam.json +0 -1
- package/src/gen/schemas/imageDetail.json +0 -1
- package/src/gen/schemas/includeEnum.json +0 -1
- package/src/gen/schemas/incompleteDetails.json +0 -1
- package/src/gen/schemas/inputFileContent.json +0 -1
- package/src/gen/schemas/inputFileContentParam.json +0 -1
- package/src/gen/schemas/inputImageContent.json +0 -1
- package/src/gen/schemas/inputImageContentParamAutoParam.json +0 -1
- package/src/gen/schemas/inputTextContent.json +0 -1
- package/src/gen/schemas/inputTextContentParam.json +0 -1
- package/src/gen/schemas/inputTokensDetails.json +0 -1
- package/src/gen/schemas/inputVideoContent.json +0 -1
- package/src/gen/schemas/itemField.json +0 -1
- package/src/gen/schemas/itemParam.json +0 -1
- package/src/gen/schemas/itemReferenceParam.json +0 -1
- package/src/gen/schemas/jsonObjectResponseFormat.json +0 -1
- package/src/gen/schemas/jsonSchemaResponseFormat.json +0 -1
- package/src/gen/schemas/jsonSchemaResponseFormatParam.json +0 -1
- package/src/gen/schemas/logProb.json +0 -1
- package/src/gen/schemas/message.json +0 -1
- package/src/gen/schemas/messageRole.json +0 -1
- package/src/gen/schemas/messageStatus.json +0 -1
- package/src/gen/schemas/metadataParam.json +0 -1
- package/src/gen/schemas/outputTextContent.json +0 -1
- package/src/gen/schemas/outputTextContentParam.json +0 -1
- package/src/gen/schemas/outputTokensDetails.json +0 -1
- package/src/gen/schemas/reasoning.json +0 -1
- package/src/gen/schemas/reasoningBody.json +0 -1
- package/src/gen/schemas/reasoningEffortEnum.json +0 -1
- package/src/gen/schemas/reasoningItemParam.json +0 -1
- package/src/gen/schemas/reasoningParam.json +0 -1
- package/src/gen/schemas/reasoningSummaryContentParam.json +0 -1
- package/src/gen/schemas/reasoningSummaryEnum.json +0 -1
- package/src/gen/schemas/reasoningTextContent.json +0 -1
- package/src/gen/schemas/refusalContent.json +0 -1
- package/src/gen/schemas/refusalContentParam.json +0 -1
- package/src/gen/schemas/responseCompletedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseContentPartAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseContentPartDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseCreatedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseFailedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseFunctionCallArgumentsDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseFunctionCallArgumentsDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseInProgressStreamingEvent.json +0 -1
- package/src/gen/schemas/responseIncompleteStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputItemAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputItemDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputTextAnnotationAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputTextDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseOutputTextDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseQueuedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryPartAddedStreamingEvent.json +0 -1
- package/src/gen/schemas/responseReasoningSummaryPartDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseRefusalDeltaStreamingEvent.json +0 -1
- package/src/gen/schemas/responseRefusalDoneStreamingEvent.json +0 -1
- package/src/gen/schemas/responseResource.json +0 -1
- package/src/gen/schemas/responsesToolParam.json +0 -1
- package/src/gen/schemas/serviceTierEnum.json +0 -1
- package/src/gen/schemas/specificFunctionParam.json +0 -1
- package/src/gen/schemas/specificToolChoiceParam.json +0 -1
- package/src/gen/schemas/streamOptionsParam.json +0 -1
- package/src/gen/schemas/summaryTextContent.json +0 -1
- package/src/gen/schemas/systemMessageItemParam.json +0 -1
- package/src/gen/schemas/textContent.json +0 -1
- package/src/gen/schemas/textField.json +0 -1
- package/src/gen/schemas/textFormatParam.json +0 -1
- package/src/gen/schemas/textParam.json +0 -1
- package/src/gen/schemas/textResponseFormat.json +0 -1
- package/src/gen/schemas/tool.json +0 -1
- package/src/gen/schemas/toolChoiceParam.json +0 -1
- package/src/gen/schemas/toolChoiceValueEnum.json +0 -1
- package/src/gen/schemas/topLogProb.json +0 -1
- package/src/gen/schemas/truncationEnum.json +0 -1
- package/src/gen/schemas/urlCitationBody.json +0 -1
- package/src/gen/schemas/urlCitationParam.json +0 -1
- package/src/gen/schemas/usage.json +0 -1
- package/src/gen/schemas/userMessageItemParam.json +0 -1
- package/src/gen/schemas/verbosityEnum.json +0 -1
- package/src/gen/types.ts +0 -2613
- package/src/gen/zod/allowedToolChoiceSchema.ts +0 -14
- package/src/gen/zod/allowedToolsParamSchema.ts +0 -14
- package/src/gen/zod/annotationSchema.ts +0 -14
- package/src/gen/zod/assistantMessageItemParamSchema.ts +0 -20
- package/src/gen/zod/createResponseBodySchema.ts +0 -45
- package/src/gen/zod/createresponseSchema.ts +0 -17
- package/src/gen/zod/detailEnumSchema.ts +0 -8
- package/src/gen/zod/developerMessageItemParamSchema.ts +0 -17
- package/src/gen/zod/emptyModelParamSchema.ts +0 -10
- package/src/gen/zod/errorPayloadSchema.ts +0 -19
- package/src/gen/zod/errorSchema.ts +0 -14
- package/src/gen/zod/errorStreamingEventSchema.ts +0 -16
- package/src/gen/zod/functionCallItemParamSchema.ts +0 -16
- package/src/gen/zod/functionCallItemStatusSchema.ts +0 -8
- package/src/gen/zod/functionCallOutputItemParamSchema.ts +0 -30
- package/src/gen/zod/functionCallOutputSchema.ts +0 -27
- package/src/gen/zod/functionCallOutputStatusEnumSchema.ts +0 -11
- package/src/gen/zod/functionCallSchema.ts +0 -19
- package/src/gen/zod/functionCallStatusSchema.ts +0 -8
- package/src/gen/zod/functionToolChoiceSchema.ts +0 -11
- package/src/gen/zod/functionToolParamSchema.ts +0 -15
- package/src/gen/zod/functionToolSchema.ts +0 -19
- package/src/gen/zod/imageDetailSchema.ts +0 -8
- package/src/gen/zod/includeEnumSchema.ts +0 -8
- package/src/gen/zod/incompleteDetailsSchema.ts +0 -13
- package/src/gen/zod/index.ts +0 -103
- package/src/gen/zod/inputFileContentParamSchema.ts +0 -16
- package/src/gen/zod/inputFileContentSchema.ts +0 -15
- package/src/gen/zod/inputImageContentParamAutoParamSchema.ts +0 -16
- package/src/gen/zod/inputImageContentSchema.ts +0 -16
- package/src/gen/zod/inputTextContentParamSchema.ts +0 -14
- package/src/gen/zod/inputTextContentSchema.ts +0 -14
- package/src/gen/zod/inputTokensDetailsSchema.ts +0 -13
- package/src/gen/zod/inputVideoContentSchema.ts +0 -14
- package/src/gen/zod/itemFieldSchema.ts +0 -23
- package/src/gen/zod/itemParamSchema.ts +0 -23
- package/src/gen/zod/itemReferenceParamSchema.ts +0 -14
- package/src/gen/zod/jsonObjectResponseFormatSchema.ts +0 -10
- package/src/gen/zod/jsonSchemaResponseFormatParamSchema.ts +0 -16
- package/src/gen/zod/jsonSchemaResponseFormatSchema.ts +0 -14
- package/src/gen/zod/logProbSchema.ts +0 -17
- package/src/gen/zod/messageRoleSchema.ts +0 -8
- package/src/gen/zod/messageSchema.ts +0 -46
- package/src/gen/zod/messageStatusSchema.ts +0 -8
- package/src/gen/zod/metadataParamSchema.ts +0 -13
- package/src/gen/zod/outputTextContentParamSchema.ts +0 -13
- package/src/gen/zod/outputTextContentSchema.ts +0 -18
- package/src/gen/zod/outputTokensDetailsSchema.ts +0 -13
- package/src/gen/zod/reasoningBodySchema.ts +0 -57
- package/src/gen/zod/reasoningEffortEnumSchema.ts +0 -8
- package/src/gen/zod/reasoningItemParamSchema.ts +0 -15
- package/src/gen/zod/reasoningParamSchema.ts +0 -16
- package/src/gen/zod/reasoningSchema.ts +0 -16
- package/src/gen/zod/reasoningSummaryContentParamSchema.ts +0 -11
- package/src/gen/zod/reasoningSummaryEnumSchema.ts +0 -8
- package/src/gen/zod/reasoningTextContentSchema.ts +0 -14
- package/src/gen/zod/refusalContentParamSchema.ts +0 -11
- package/src/gen/zod/refusalContentSchema.ts +0 -14
- package/src/gen/zod/responseCompletedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseContentPartAddedStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseContentPartDoneStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseCreatedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseFailedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts +0 -17
- package/src/gen/zod/responseInProgressStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseIncompleteStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts +0 -17
- package/src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts +0 -17
- package/src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts +0 -20
- package/src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts +0 -21
- package/src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts +0 -20
- package/src/gen/zod/responseQueuedStreamingEventSchema.ts +0 -16
- package/src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts +0 -19
- package/src/gen/zod/responseReasoningDoneStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts +0 -19
- package/src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts +0 -42
- package/src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseRefusalDoneStreamingEventSchema.ts +0 -18
- package/src/gen/zod/responseResourceSchema.ts +0 -54
- package/src/gen/zod/responsesToolParamSchema.ts +0 -11
- package/src/gen/zod/serviceTierEnumSchema.ts +0 -8
- package/src/gen/zod/specificFunctionParamSchema.ts +0 -11
- package/src/gen/zod/specificToolChoiceParamSchema.ts +0 -9
- package/src/gen/zod/streamOptionsParamSchema.ts +0 -13
- package/src/gen/zod/summaryTextContentSchema.ts +0 -14
- package/src/gen/zod/systemMessageItemParamSchema.ts +0 -17
- package/src/gen/zod/textContentSchema.ts +0 -14
- package/src/gen/zod/textFieldSchema.ts +0 -15
- package/src/gen/zod/textFormatParamSchema.ts +0 -10
- package/src/gen/zod/textParamSchema.ts +0 -13
- package/src/gen/zod/textResponseFormatSchema.ts +0 -10
- package/src/gen/zod/toolChoiceParamSchema.ts +0 -14
- package/src/gen/zod/toolChoiceValueEnumSchema.ts +0 -8
- package/src/gen/zod/toolSchema.ts +0 -14
- package/src/gen/zod/topLogProbSchema.ts +0 -15
- package/src/gen/zod/truncationEnumSchema.ts +0 -8
- package/src/gen/zod/urlCitationBodySchema.ts +0 -17
- package/src/gen/zod/urlCitationParamSchema.ts +0 -14
- package/src/gen/zod/usageSchema.ts +0 -19
- package/src/gen/zod/userMessageItemParamSchema.ts +0 -23
- package/src/gen/zod/verbosityEnumSchema.ts +0 -8
- package/src/index.ts +0 -3
- package/tsconfig.json +0 -21
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,2742 @@
|
|
|
1
|
+
import { A as AIProvider, C as ChatOptions, a as ChatResult, S as StreamChunk, T as Tool$1, M as Message$1, G as GenerateTextResult } from './adapter-zXqUGXCx.cjs';
|
|
2
|
+
export { b as MessageRole, c as ToolCall, d as ToolDefinition } from './adapter-zXqUGXCx.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Generated by Kubb (https://kubb.dev/).
|
|
6
|
+
* Do not edit manually.
|
|
7
|
+
*/
|
|
8
|
+
declare const itemReferenceParamTypeEnum: {
|
|
9
|
+
readonly item_reference: "item_reference";
|
|
10
|
+
};
|
|
11
|
+
type ItemReferenceParamTypeEnumKey = (typeof itemReferenceParamTypeEnum)[keyof typeof itemReferenceParamTypeEnum];
|
|
12
|
+
/**
|
|
13
|
+
* @description An internal identifier for an item to reference.
|
|
14
|
+
*/
|
|
15
|
+
type ItemReferenceParam = {
|
|
16
|
+
type?: ItemReferenceParamTypeEnumKey | null;
|
|
17
|
+
/**
|
|
18
|
+
* @description The ID of the item to reference.
|
|
19
|
+
* @type string
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
};
|
|
23
|
+
declare const reasoningSummaryContentParamTypeEnum: {
|
|
24
|
+
readonly summary_text: "summary_text";
|
|
25
|
+
};
|
|
26
|
+
type ReasoningSummaryContentParamTypeEnumKey = (typeof reasoningSummaryContentParamTypeEnum)[keyof typeof reasoningSummaryContentParamTypeEnum];
|
|
27
|
+
type ReasoningSummaryContentParam = {
|
|
28
|
+
/**
|
|
29
|
+
* @description The content type. Always `summary_text`.
|
|
30
|
+
* @default "summary_text"
|
|
31
|
+
* @type string
|
|
32
|
+
*/
|
|
33
|
+
type: ReasoningSummaryContentParamTypeEnumKey;
|
|
34
|
+
/**
|
|
35
|
+
* @description The reasoning summary text.
|
|
36
|
+
* @maxLength 10485760
|
|
37
|
+
* @type string
|
|
38
|
+
*/
|
|
39
|
+
text: string;
|
|
40
|
+
};
|
|
41
|
+
declare const reasoningItemParamTypeEnum: {
|
|
42
|
+
readonly reasoning: "reasoning";
|
|
43
|
+
};
|
|
44
|
+
type ReasoningItemParamTypeEnumKey = (typeof reasoningItemParamTypeEnum)[keyof typeof reasoningItemParamTypeEnum];
|
|
45
|
+
type ReasoningItemParam = {
|
|
46
|
+
id?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* @description The item type. Always `reasoning`.
|
|
49
|
+
* @default "reasoning"
|
|
50
|
+
* @type string
|
|
51
|
+
*/
|
|
52
|
+
type: ReasoningItemParamTypeEnumKey;
|
|
53
|
+
/**
|
|
54
|
+
* @description Reasoning summary content associated with this item.
|
|
55
|
+
* @type array
|
|
56
|
+
*/
|
|
57
|
+
summary: Array<ReasoningSummaryContentParam>;
|
|
58
|
+
content?: null;
|
|
59
|
+
encrypted_content?: string | null;
|
|
60
|
+
};
|
|
61
|
+
declare const inputTextContentParamTypeEnum: {
|
|
62
|
+
readonly input_text: "input_text";
|
|
63
|
+
};
|
|
64
|
+
type InputTextContentParamTypeEnumKey = (typeof inputTextContentParamTypeEnum)[keyof typeof inputTextContentParamTypeEnum];
|
|
65
|
+
/**
|
|
66
|
+
* @description A text input to the model.
|
|
67
|
+
*/
|
|
68
|
+
type InputTextContentParam = {
|
|
69
|
+
/**
|
|
70
|
+
* @description The type of the input item. Always `input_text`.
|
|
71
|
+
* @default "input_text"
|
|
72
|
+
* @type string
|
|
73
|
+
*/
|
|
74
|
+
type: InputTextContentParamTypeEnumKey;
|
|
75
|
+
/**
|
|
76
|
+
* @description The text input to the model.
|
|
77
|
+
* @maxLength 10485760
|
|
78
|
+
* @type string
|
|
79
|
+
*/
|
|
80
|
+
text: string;
|
|
81
|
+
};
|
|
82
|
+
declare const detailEnumEnum: {
|
|
83
|
+
readonly low: "low";
|
|
84
|
+
readonly high: "high";
|
|
85
|
+
readonly auto: "auto";
|
|
86
|
+
};
|
|
87
|
+
type DetailEnumEnumKey = (typeof detailEnumEnum)[keyof typeof detailEnumEnum];
|
|
88
|
+
type DetailEnum = DetailEnumEnumKey;
|
|
89
|
+
declare const imageDetailEnum: {
|
|
90
|
+
readonly low: "low";
|
|
91
|
+
readonly high: "high";
|
|
92
|
+
readonly auto: "auto";
|
|
93
|
+
};
|
|
94
|
+
type ImageDetailEnumKey = (typeof imageDetailEnum)[keyof typeof imageDetailEnum];
|
|
95
|
+
type ImageDetail = ImageDetailEnumKey;
|
|
96
|
+
declare const inputImageContentParamAutoParamTypeEnum: {
|
|
97
|
+
readonly input_image: "input_image";
|
|
98
|
+
};
|
|
99
|
+
type InputImageContentParamAutoParamTypeEnumKey = (typeof inputImageContentParamAutoParamTypeEnum)[keyof typeof inputImageContentParamAutoParamTypeEnum];
|
|
100
|
+
/**
|
|
101
|
+
* @description An image input to the model. Learn about [image inputs](/docs/guides/vision)
|
|
102
|
+
*/
|
|
103
|
+
type InputImageContentParamAutoParam = {
|
|
104
|
+
/**
|
|
105
|
+
* @description The type of the input item. Always `input_image`.
|
|
106
|
+
* @default "input_image"
|
|
107
|
+
* @type string
|
|
108
|
+
*/
|
|
109
|
+
type: InputImageContentParamAutoParamTypeEnumKey;
|
|
110
|
+
image_url?: string | null;
|
|
111
|
+
detail?: (ImageDetail & any) | null;
|
|
112
|
+
};
|
|
113
|
+
declare const inputFileContentParamTypeEnum: {
|
|
114
|
+
readonly input_file: "input_file";
|
|
115
|
+
};
|
|
116
|
+
type InputFileContentParamTypeEnumKey = (typeof inputFileContentParamTypeEnum)[keyof typeof inputFileContentParamTypeEnum];
|
|
117
|
+
/**
|
|
118
|
+
* @description A file input to the model.
|
|
119
|
+
*/
|
|
120
|
+
type InputFileContentParam = {
|
|
121
|
+
/**
|
|
122
|
+
* @description The type of the input item. Always `input_file`.
|
|
123
|
+
* @default "input_file"
|
|
124
|
+
* @type string
|
|
125
|
+
*/
|
|
126
|
+
type: InputFileContentParamTypeEnumKey;
|
|
127
|
+
filename?: string | null;
|
|
128
|
+
file_data?: string | null;
|
|
129
|
+
file_url?: string | null;
|
|
130
|
+
};
|
|
131
|
+
declare const userMessageItemParamTypeEnum: {
|
|
132
|
+
readonly message: "message";
|
|
133
|
+
};
|
|
134
|
+
type UserMessageItemParamTypeEnumKey = (typeof userMessageItemParamTypeEnum)[keyof typeof userMessageItemParamTypeEnum];
|
|
135
|
+
declare const userMessageItemParamRoleEnum: {
|
|
136
|
+
readonly user: "user";
|
|
137
|
+
};
|
|
138
|
+
type UserMessageItemParamRoleEnumKey = (typeof userMessageItemParamRoleEnum)[keyof typeof userMessageItemParamRoleEnum];
|
|
139
|
+
type UserMessageItemParam = {
|
|
140
|
+
id?: string | null;
|
|
141
|
+
/**
|
|
142
|
+
* @description The item type. Always `message`.
|
|
143
|
+
* @default "message"
|
|
144
|
+
* @type string
|
|
145
|
+
*/
|
|
146
|
+
type: UserMessageItemParamTypeEnumKey;
|
|
147
|
+
/**
|
|
148
|
+
* @description The message role. Always `user`.
|
|
149
|
+
* @default "user"
|
|
150
|
+
* @type string
|
|
151
|
+
*/
|
|
152
|
+
role: UserMessageItemParamRoleEnumKey;
|
|
153
|
+
/**
|
|
154
|
+
* @description The message content, as an array of content parts.
|
|
155
|
+
*/
|
|
156
|
+
content: Array<(InputTextContentParam & {
|
|
157
|
+
type: 'input_text';
|
|
158
|
+
}) | (InputImageContentParamAutoParam & {
|
|
159
|
+
type: 'input_image';
|
|
160
|
+
}) | (InputFileContentParam & {
|
|
161
|
+
type: 'input_file';
|
|
162
|
+
})> | string;
|
|
163
|
+
status?: string | null;
|
|
164
|
+
};
|
|
165
|
+
declare const systemMessageItemParamTypeEnum: {
|
|
166
|
+
readonly message: "message";
|
|
167
|
+
};
|
|
168
|
+
type SystemMessageItemParamTypeEnumKey = (typeof systemMessageItemParamTypeEnum)[keyof typeof systemMessageItemParamTypeEnum];
|
|
169
|
+
declare const systemMessageItemParamRoleEnum: {
|
|
170
|
+
readonly system: "system";
|
|
171
|
+
};
|
|
172
|
+
type SystemMessageItemParamRoleEnumKey = (typeof systemMessageItemParamRoleEnum)[keyof typeof systemMessageItemParamRoleEnum];
|
|
173
|
+
type SystemMessageItemParam = {
|
|
174
|
+
id?: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* @description The item type. Always `message`.
|
|
177
|
+
* @default "message"
|
|
178
|
+
* @type string
|
|
179
|
+
*/
|
|
180
|
+
type: SystemMessageItemParamTypeEnumKey;
|
|
181
|
+
/**
|
|
182
|
+
* @description The message role. Always `system`.
|
|
183
|
+
* @default "system"
|
|
184
|
+
* @type string
|
|
185
|
+
*/
|
|
186
|
+
role: SystemMessageItemParamRoleEnumKey;
|
|
187
|
+
/**
|
|
188
|
+
* @description The message content, as an array of content parts.
|
|
189
|
+
*/
|
|
190
|
+
content: Array<InputTextContentParam & {
|
|
191
|
+
type: 'input_text';
|
|
192
|
+
}> | string;
|
|
193
|
+
status?: string | null;
|
|
194
|
+
};
|
|
195
|
+
declare const developerMessageItemParamTypeEnum: {
|
|
196
|
+
readonly message: "message";
|
|
197
|
+
};
|
|
198
|
+
type DeveloperMessageItemParamTypeEnumKey = (typeof developerMessageItemParamTypeEnum)[keyof typeof developerMessageItemParamTypeEnum];
|
|
199
|
+
declare const developerMessageItemParamRoleEnum: {
|
|
200
|
+
readonly developer: "developer";
|
|
201
|
+
};
|
|
202
|
+
type DeveloperMessageItemParamRoleEnumKey = (typeof developerMessageItemParamRoleEnum)[keyof typeof developerMessageItemParamRoleEnum];
|
|
203
|
+
type DeveloperMessageItemParam = {
|
|
204
|
+
id?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* @description The item type. Always `message`.
|
|
207
|
+
* @default "message"
|
|
208
|
+
* @type string
|
|
209
|
+
*/
|
|
210
|
+
type: DeveloperMessageItemParamTypeEnumKey;
|
|
211
|
+
/**
|
|
212
|
+
* @description The message role. Always `developer`.
|
|
213
|
+
* @default "developer"
|
|
214
|
+
* @type string
|
|
215
|
+
*/
|
|
216
|
+
role: DeveloperMessageItemParamRoleEnumKey;
|
|
217
|
+
/**
|
|
218
|
+
* @description The message content, as an array of content parts.
|
|
219
|
+
*/
|
|
220
|
+
content: Array<InputTextContentParam & {
|
|
221
|
+
type: 'input_text';
|
|
222
|
+
}> | string;
|
|
223
|
+
status?: string | null;
|
|
224
|
+
};
|
|
225
|
+
declare const urlCitationParamTypeEnum: {
|
|
226
|
+
readonly url_citation: "url_citation";
|
|
227
|
+
};
|
|
228
|
+
type UrlCitationParamTypeEnumKey = (typeof urlCitationParamTypeEnum)[keyof typeof urlCitationParamTypeEnum];
|
|
229
|
+
type UrlCitationParam = {
|
|
230
|
+
/**
|
|
231
|
+
* @description The citation type. Always `url_citation`.
|
|
232
|
+
* @default "url_citation"
|
|
233
|
+
* @type string
|
|
234
|
+
*/
|
|
235
|
+
type: UrlCitationParamTypeEnumKey;
|
|
236
|
+
/**
|
|
237
|
+
* @description The index of the first character of the citation in the message.
|
|
238
|
+
* @minLength 0
|
|
239
|
+
* @type integer
|
|
240
|
+
*/
|
|
241
|
+
start_index: number;
|
|
242
|
+
/**
|
|
243
|
+
* @description The index of the last character of the citation in the message.
|
|
244
|
+
* @minLength 0
|
|
245
|
+
* @type integer
|
|
246
|
+
*/
|
|
247
|
+
end_index: number;
|
|
248
|
+
/**
|
|
249
|
+
* @description The URL of the cited resource.
|
|
250
|
+
* @type string
|
|
251
|
+
*/
|
|
252
|
+
url: string;
|
|
253
|
+
/**
|
|
254
|
+
* @description The title of the cited resource.
|
|
255
|
+
* @type string
|
|
256
|
+
*/
|
|
257
|
+
title: string;
|
|
258
|
+
};
|
|
259
|
+
declare const outputTextContentParamTypeEnum: {
|
|
260
|
+
readonly output_text: "output_text";
|
|
261
|
+
};
|
|
262
|
+
type OutputTextContentParamTypeEnumKey = (typeof outputTextContentParamTypeEnum)[keyof typeof outputTextContentParamTypeEnum];
|
|
263
|
+
type OutputTextContentParam = {
|
|
264
|
+
/**
|
|
265
|
+
* @description The content type. Always `output_text`.
|
|
266
|
+
* @default "output_text"
|
|
267
|
+
* @type string
|
|
268
|
+
*/
|
|
269
|
+
type: OutputTextContentParamTypeEnumKey;
|
|
270
|
+
/**
|
|
271
|
+
* @description The text content.
|
|
272
|
+
* @maxLength 10485760
|
|
273
|
+
* @type string
|
|
274
|
+
*/
|
|
275
|
+
text: string;
|
|
276
|
+
/**
|
|
277
|
+
* @description Citations associated with the text content.
|
|
278
|
+
*/
|
|
279
|
+
annotations?: Array<UrlCitationParam>;
|
|
280
|
+
};
|
|
281
|
+
declare const refusalContentParamTypeEnum: {
|
|
282
|
+
readonly refusal: "refusal";
|
|
283
|
+
};
|
|
284
|
+
type RefusalContentParamTypeEnumKey = (typeof refusalContentParamTypeEnum)[keyof typeof refusalContentParamTypeEnum];
|
|
285
|
+
type RefusalContentParam = {
|
|
286
|
+
/**
|
|
287
|
+
* @description The content type. Always `refusal`.
|
|
288
|
+
* @default "refusal"
|
|
289
|
+
* @type string
|
|
290
|
+
*/
|
|
291
|
+
type: RefusalContentParamTypeEnumKey;
|
|
292
|
+
/**
|
|
293
|
+
* @description The refusal text.
|
|
294
|
+
* @maxLength 10485760
|
|
295
|
+
* @type string
|
|
296
|
+
*/
|
|
297
|
+
refusal: string;
|
|
298
|
+
};
|
|
299
|
+
declare const assistantMessageItemParamTypeEnum: {
|
|
300
|
+
readonly message: "message";
|
|
301
|
+
};
|
|
302
|
+
type AssistantMessageItemParamTypeEnumKey = (typeof assistantMessageItemParamTypeEnum)[keyof typeof assistantMessageItemParamTypeEnum];
|
|
303
|
+
declare const assistantMessageItemParamRoleEnum: {
|
|
304
|
+
readonly assistant: "assistant";
|
|
305
|
+
};
|
|
306
|
+
type AssistantMessageItemParamRoleEnumKey = (typeof assistantMessageItemParamRoleEnum)[keyof typeof assistantMessageItemParamRoleEnum];
|
|
307
|
+
type AssistantMessageItemParam = {
|
|
308
|
+
id?: string | null;
|
|
309
|
+
/**
|
|
310
|
+
* @description The item type. Always `message`.
|
|
311
|
+
* @default "message"
|
|
312
|
+
* @type string
|
|
313
|
+
*/
|
|
314
|
+
type: AssistantMessageItemParamTypeEnumKey;
|
|
315
|
+
/**
|
|
316
|
+
* @description The role of the message author. Always `assistant`.
|
|
317
|
+
* @default "assistant"
|
|
318
|
+
* @type string
|
|
319
|
+
*/
|
|
320
|
+
role: AssistantMessageItemParamRoleEnumKey;
|
|
321
|
+
/**
|
|
322
|
+
* @description The message content, as an array of content parts.
|
|
323
|
+
*/
|
|
324
|
+
content: Array<(OutputTextContentParam & {
|
|
325
|
+
type: 'output_text';
|
|
326
|
+
}) | (RefusalContentParam & {
|
|
327
|
+
type: 'refusal';
|
|
328
|
+
})> | string;
|
|
329
|
+
status?: string | null;
|
|
330
|
+
};
|
|
331
|
+
declare const functionCallItemStatusEnum: {
|
|
332
|
+
readonly in_progress: "in_progress";
|
|
333
|
+
readonly completed: "completed";
|
|
334
|
+
readonly incomplete: "incomplete";
|
|
335
|
+
};
|
|
336
|
+
type FunctionCallItemStatusEnumKey = (typeof functionCallItemStatusEnum)[keyof typeof functionCallItemStatusEnum];
|
|
337
|
+
type FunctionCallItemStatus = FunctionCallItemStatusEnumKey;
|
|
338
|
+
declare const functionCallStatusEnum: {
|
|
339
|
+
readonly in_progress: "in_progress";
|
|
340
|
+
readonly completed: "completed";
|
|
341
|
+
readonly incomplete: "incomplete";
|
|
342
|
+
};
|
|
343
|
+
type FunctionCallStatusEnumKey = (typeof functionCallStatusEnum)[keyof typeof functionCallStatusEnum];
|
|
344
|
+
type FunctionCallStatus = FunctionCallStatusEnumKey;
|
|
345
|
+
declare const functionCallItemParamTypeEnum: {
|
|
346
|
+
readonly function_call: "function_call";
|
|
347
|
+
};
|
|
348
|
+
type FunctionCallItemParamTypeEnumKey = (typeof functionCallItemParamTypeEnum)[keyof typeof functionCallItemParamTypeEnum];
|
|
349
|
+
type FunctionCallItemParam = {
|
|
350
|
+
id?: string | null;
|
|
351
|
+
/**
|
|
352
|
+
* @description The unique ID of the function tool call generated by the model.
|
|
353
|
+
* @minLength 1
|
|
354
|
+
* @maxLength 64
|
|
355
|
+
* @type string
|
|
356
|
+
*/
|
|
357
|
+
call_id: string;
|
|
358
|
+
/**
|
|
359
|
+
* @description The item type. Always `function_call`.
|
|
360
|
+
* @default "function_call"
|
|
361
|
+
* @type string
|
|
362
|
+
*/
|
|
363
|
+
type: FunctionCallItemParamTypeEnumKey;
|
|
364
|
+
/**
|
|
365
|
+
* @description The name of the function to call.
|
|
366
|
+
* @minLength 1
|
|
367
|
+
* @maxLength 64
|
|
368
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
369
|
+
* @type string
|
|
370
|
+
*/
|
|
371
|
+
name: string;
|
|
372
|
+
/**
|
|
373
|
+
* @description The function arguments as a JSON string.
|
|
374
|
+
* @type string
|
|
375
|
+
*/
|
|
376
|
+
arguments: string;
|
|
377
|
+
status?: (FunctionCallStatus & any) | null;
|
|
378
|
+
};
|
|
379
|
+
declare const inputVideoContentTypeEnum: {
|
|
380
|
+
readonly input_video: "input_video";
|
|
381
|
+
};
|
|
382
|
+
type InputVideoContentTypeEnumKey = (typeof inputVideoContentTypeEnum)[keyof typeof inputVideoContentTypeEnum];
|
|
383
|
+
/**
|
|
384
|
+
* @description A content block representing a video input to the model.
|
|
385
|
+
*/
|
|
386
|
+
type InputVideoContent = {
|
|
387
|
+
/**
|
|
388
|
+
* @description The type of the input content. Always `input_video`.
|
|
389
|
+
* @type string
|
|
390
|
+
*/
|
|
391
|
+
type: InputVideoContentTypeEnumKey;
|
|
392
|
+
/**
|
|
393
|
+
* @description A base64 or remote url that resolves to a video file.
|
|
394
|
+
* @type string
|
|
395
|
+
*/
|
|
396
|
+
video_url: string;
|
|
397
|
+
};
|
|
398
|
+
declare const functionCallOutputItemParamTypeEnum: {
|
|
399
|
+
readonly function_call_output: "function_call_output";
|
|
400
|
+
};
|
|
401
|
+
type FunctionCallOutputItemParamTypeEnumKey = (typeof functionCallOutputItemParamTypeEnum)[keyof typeof functionCallOutputItemParamTypeEnum];
|
|
402
|
+
/**
|
|
403
|
+
* @description The output of a function tool call.
|
|
404
|
+
*/
|
|
405
|
+
type FunctionCallOutputItemParam = {
|
|
406
|
+
id?: string | null;
|
|
407
|
+
/**
|
|
408
|
+
* @description The unique ID of the function tool call generated by the model.
|
|
409
|
+
* @minLength 1
|
|
410
|
+
* @maxLength 64
|
|
411
|
+
* @type string
|
|
412
|
+
*/
|
|
413
|
+
call_id: string;
|
|
414
|
+
/**
|
|
415
|
+
* @description The type of the function tool call output. Always `function_call_output`.
|
|
416
|
+
* @default "function_call_output"
|
|
417
|
+
* @type string
|
|
418
|
+
*/
|
|
419
|
+
type: FunctionCallOutputItemParamTypeEnumKey;
|
|
420
|
+
/**
|
|
421
|
+
* @description Text, image, or file output of the function tool call.
|
|
422
|
+
*/
|
|
423
|
+
output: string | Array<(InputTextContentParam & {
|
|
424
|
+
type: 'input_text';
|
|
425
|
+
}) | (InputImageContentParamAutoParam & {
|
|
426
|
+
type: 'input_image';
|
|
427
|
+
}) | (InputFileContentParam & {
|
|
428
|
+
type: 'input_file';
|
|
429
|
+
}) | (InputVideoContent & {
|
|
430
|
+
type: 'input_video';
|
|
431
|
+
})>;
|
|
432
|
+
status?: (FunctionCallStatus & any) | null;
|
|
433
|
+
};
|
|
434
|
+
type ItemParam = (ItemReferenceParam & {
|
|
435
|
+
type: 'Item reference';
|
|
436
|
+
}) | (ReasoningItemParam & {
|
|
437
|
+
type: 'reasoning';
|
|
438
|
+
}) | (AssistantMessageItemParam & {
|
|
439
|
+
type: 'message';
|
|
440
|
+
}) | (FunctionCallItemParam & {
|
|
441
|
+
type: 'function_call';
|
|
442
|
+
}) | (FunctionCallOutputItemParam & {
|
|
443
|
+
type: 'function_call_output';
|
|
444
|
+
});
|
|
445
|
+
declare const includeEnumEnum: {
|
|
446
|
+
readonly 'reasoning.encrypted_content': "reasoning.encrypted_content";
|
|
447
|
+
readonly 'message.output_text.logprobs': "message.output_text.logprobs";
|
|
448
|
+
};
|
|
449
|
+
type IncludeEnumEnumKey = (typeof includeEnumEnum)[keyof typeof includeEnumEnum];
|
|
450
|
+
type IncludeEnum = IncludeEnumEnumKey;
|
|
451
|
+
type EmptyModelParam = object;
|
|
452
|
+
declare const functionToolParamTypeEnum: {
|
|
453
|
+
readonly function: "function";
|
|
454
|
+
};
|
|
455
|
+
type FunctionToolParamTypeEnumKey = (typeof functionToolParamTypeEnum)[keyof typeof functionToolParamTypeEnum];
|
|
456
|
+
type FunctionToolParam = {
|
|
457
|
+
/**
|
|
458
|
+
* @minLength 1
|
|
459
|
+
* @maxLength 64
|
|
460
|
+
* @pattern ^[a-zA-Z0-9_-]+$
|
|
461
|
+
* @type string
|
|
462
|
+
*/
|
|
463
|
+
name: string;
|
|
464
|
+
description?: string | null;
|
|
465
|
+
parameters?: EmptyModelParam | null;
|
|
466
|
+
/**
|
|
467
|
+
* @type boolean | undefined
|
|
468
|
+
*/
|
|
469
|
+
strict?: boolean;
|
|
470
|
+
/**
|
|
471
|
+
* @default "function"
|
|
472
|
+
* @type string
|
|
473
|
+
*/
|
|
474
|
+
type: FunctionToolParamTypeEnumKey;
|
|
475
|
+
};
|
|
476
|
+
type ResponsesToolParam = FunctionToolParam & {
|
|
477
|
+
type: 'function';
|
|
478
|
+
};
|
|
479
|
+
declare const specificFunctionParamTypeEnum: {
|
|
480
|
+
readonly function: "function";
|
|
481
|
+
};
|
|
482
|
+
type SpecificFunctionParamTypeEnumKey = (typeof specificFunctionParamTypeEnum)[keyof typeof specificFunctionParamTypeEnum];
|
|
483
|
+
type SpecificFunctionParam = {
|
|
484
|
+
/**
|
|
485
|
+
* @description The tool to call. Always `function`.
|
|
486
|
+
* @default "function"
|
|
487
|
+
* @type string
|
|
488
|
+
*/
|
|
489
|
+
type: SpecificFunctionParamTypeEnumKey;
|
|
490
|
+
/**
|
|
491
|
+
* @description The name of the function tool to call.
|
|
492
|
+
* @type string
|
|
493
|
+
*/
|
|
494
|
+
name: string;
|
|
495
|
+
};
|
|
496
|
+
type SpecificToolChoiceParam = SpecificFunctionParam;
|
|
497
|
+
declare const toolChoiceValueEnumEnum: {
|
|
498
|
+
readonly none: "none";
|
|
499
|
+
readonly auto: "auto";
|
|
500
|
+
readonly required: "required";
|
|
501
|
+
};
|
|
502
|
+
type ToolChoiceValueEnumEnumKey = (typeof toolChoiceValueEnumEnum)[keyof typeof toolChoiceValueEnumEnum];
|
|
503
|
+
type ToolChoiceValueEnum = ToolChoiceValueEnumEnumKey;
|
|
504
|
+
declare const allowedToolsParamTypeEnum: {
|
|
505
|
+
readonly allowed_tools: "allowed_tools";
|
|
506
|
+
};
|
|
507
|
+
type AllowedToolsParamTypeEnumKey = (typeof allowedToolsParamTypeEnum)[keyof typeof allowedToolsParamTypeEnum];
|
|
508
|
+
type AllowedToolsParam = {
|
|
509
|
+
/**
|
|
510
|
+
* @description The tool choice type. Always `allowed_tools`.
|
|
511
|
+
* @default "allowed_tools"
|
|
512
|
+
* @type string
|
|
513
|
+
*/
|
|
514
|
+
type: AllowedToolsParamTypeEnumKey;
|
|
515
|
+
/**
|
|
516
|
+
* @description The list of tools that are permitted for this request.
|
|
517
|
+
* @type array
|
|
518
|
+
*/
|
|
519
|
+
tools: Array<SpecificToolChoiceParam>;
|
|
520
|
+
mode?: ToolChoiceValueEnum & any;
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* @description Controls which tool the model should use, if any.
|
|
524
|
+
*/
|
|
525
|
+
type ToolChoiceParam = SpecificToolChoiceParam | ToolChoiceValueEnum | AllowedToolsParam;
|
|
526
|
+
/**
|
|
527
|
+
* @description Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.\n Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
|
|
528
|
+
*/
|
|
529
|
+
type MetadataParam = {
|
|
530
|
+
[key: string]: string;
|
|
531
|
+
};
|
|
532
|
+
declare const verbosityEnumEnum: {
|
|
533
|
+
readonly low: "low";
|
|
534
|
+
readonly medium: "medium";
|
|
535
|
+
readonly high: "high";
|
|
536
|
+
};
|
|
537
|
+
type VerbosityEnumEnumKey = (typeof verbosityEnumEnum)[keyof typeof verbosityEnumEnum];
|
|
538
|
+
type VerbosityEnum = VerbosityEnumEnumKey;
|
|
539
|
+
declare const textResponseFormatTypeEnum: {
|
|
540
|
+
readonly text: "text";
|
|
541
|
+
};
|
|
542
|
+
type TextResponseFormatTypeEnumKey = (typeof textResponseFormatTypeEnum)[keyof typeof textResponseFormatTypeEnum];
|
|
543
|
+
type TextResponseFormat = {
|
|
544
|
+
/**
|
|
545
|
+
* @default "text"
|
|
546
|
+
* @type string
|
|
547
|
+
*/
|
|
548
|
+
type: TextResponseFormatTypeEnumKey;
|
|
549
|
+
};
|
|
550
|
+
declare const jsonSchemaResponseFormatParamTypeEnum: {
|
|
551
|
+
readonly json_schema: "json_schema";
|
|
552
|
+
};
|
|
553
|
+
type JsonSchemaResponseFormatParamTypeEnumKey = (typeof jsonSchemaResponseFormatParamTypeEnum)[keyof typeof jsonSchemaResponseFormatParamTypeEnum];
|
|
554
|
+
type JsonSchemaResponseFormatParam = {
|
|
555
|
+
/**
|
|
556
|
+
* @description The type of response format being defined. Always `json_schema`.
|
|
557
|
+
* @type string | undefined
|
|
558
|
+
*/
|
|
559
|
+
type?: JsonSchemaResponseFormatParamTypeEnumKey;
|
|
560
|
+
/**
|
|
561
|
+
* @description A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n
|
|
562
|
+
* @type string | undefined
|
|
563
|
+
*/
|
|
564
|
+
description?: string;
|
|
565
|
+
/**
|
|
566
|
+
* @description The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n
|
|
567
|
+
* @type string | undefined
|
|
568
|
+
*/
|
|
569
|
+
name?: string;
|
|
570
|
+
/**
|
|
571
|
+
* @description The schema for the response format, described as a JSON Schema object.\n
|
|
572
|
+
* @type object | undefined
|
|
573
|
+
*/
|
|
574
|
+
schema?: {
|
|
575
|
+
[key: string]: any;
|
|
576
|
+
};
|
|
577
|
+
strict?: boolean | null;
|
|
578
|
+
};
|
|
579
|
+
type TextFormatParam = TextResponseFormat | JsonSchemaResponseFormatParam;
|
|
580
|
+
type TextParam = {
|
|
581
|
+
/**
|
|
582
|
+
* @description The format configuration for text output.
|
|
583
|
+
*/
|
|
584
|
+
format?: TextFormatParam | null;
|
|
585
|
+
verbosity?: VerbosityEnum & any;
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* @description Options that control streamed response behavior.
|
|
589
|
+
*/
|
|
590
|
+
type StreamOptionsParam = {
|
|
591
|
+
/**
|
|
592
|
+
* @description Whether to obfuscate sensitive information in streamed output. Defaults to `true`.
|
|
593
|
+
* @type boolean | undefined
|
|
594
|
+
*/
|
|
595
|
+
include_obfuscation?: boolean;
|
|
596
|
+
};
|
|
597
|
+
declare const reasoningEffortEnumEnum: {
|
|
598
|
+
readonly none: "none";
|
|
599
|
+
readonly low: "low";
|
|
600
|
+
readonly medium: "medium";
|
|
601
|
+
readonly high: "high";
|
|
602
|
+
readonly xhigh: "xhigh";
|
|
603
|
+
};
|
|
604
|
+
type ReasoningEffortEnumEnumKey = (typeof reasoningEffortEnumEnum)[keyof typeof reasoningEffortEnumEnum];
|
|
605
|
+
type ReasoningEffortEnum = ReasoningEffortEnumEnumKey;
|
|
606
|
+
declare const reasoningSummaryEnumEnum: {
|
|
607
|
+
readonly concise: "concise";
|
|
608
|
+
readonly detailed: "detailed";
|
|
609
|
+
readonly auto: "auto";
|
|
610
|
+
};
|
|
611
|
+
type ReasoningSummaryEnumEnumKey = (typeof reasoningSummaryEnumEnum)[keyof typeof reasoningSummaryEnumEnum];
|
|
612
|
+
type ReasoningSummaryEnum = ReasoningSummaryEnumEnumKey;
|
|
613
|
+
/**
|
|
614
|
+
* @description **gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
615
|
+
*/
|
|
616
|
+
type ReasoningParam = {
|
|
617
|
+
effort?: ReasoningEffortEnum | null;
|
|
618
|
+
summary?: (ReasoningSummaryEnum & any) | null;
|
|
619
|
+
};
|
|
620
|
+
declare const truncationEnumEnum: {
|
|
621
|
+
readonly auto: "auto";
|
|
622
|
+
readonly disabled: "disabled";
|
|
623
|
+
};
|
|
624
|
+
type TruncationEnumEnumKey = (typeof truncationEnumEnum)[keyof typeof truncationEnumEnum];
|
|
625
|
+
type TruncationEnum = TruncationEnumEnumKey;
|
|
626
|
+
declare const serviceTierEnumEnum: {
|
|
627
|
+
readonly auto: "auto";
|
|
628
|
+
readonly default: "default";
|
|
629
|
+
readonly flex: "flex";
|
|
630
|
+
readonly priority: "priority";
|
|
631
|
+
};
|
|
632
|
+
type ServiceTierEnumEnumKey = (typeof serviceTierEnumEnum)[keyof typeof serviceTierEnumEnum];
|
|
633
|
+
type ServiceTierEnum = ServiceTierEnumEnumKey;
|
|
634
|
+
type CreateResponseBody = {
|
|
635
|
+
model?: string | null;
|
|
636
|
+
input?: (string | Array<ItemParam>) | null;
|
|
637
|
+
previous_response_id?: string | null;
|
|
638
|
+
/**
|
|
639
|
+
* @type array | undefined
|
|
640
|
+
*/
|
|
641
|
+
include?: Array<IncludeEnum>;
|
|
642
|
+
tools?: Array<ResponsesToolParam> | null;
|
|
643
|
+
tool_choice?: (ToolChoiceParam & any) | null;
|
|
644
|
+
metadata?: (MetadataParam & any) | null;
|
|
645
|
+
text?: (TextParam & any) | null;
|
|
646
|
+
temperature?: number | null;
|
|
647
|
+
top_p?: number | null;
|
|
648
|
+
presence_penalty?: number | null;
|
|
649
|
+
frequency_penalty?: number | null;
|
|
650
|
+
parallel_tool_calls?: boolean | null;
|
|
651
|
+
/**
|
|
652
|
+
* @description Whether to stream response events as server-sent events.
|
|
653
|
+
* @type boolean | undefined
|
|
654
|
+
*/
|
|
655
|
+
stream?: boolean;
|
|
656
|
+
stream_options?: (StreamOptionsParam & any) | null;
|
|
657
|
+
/**
|
|
658
|
+
* @description Whether to run the request in the background and return immediately.
|
|
659
|
+
* @type boolean | undefined
|
|
660
|
+
*/
|
|
661
|
+
background?: boolean;
|
|
662
|
+
max_output_tokens?: number | null;
|
|
663
|
+
max_tool_calls?: number | null;
|
|
664
|
+
reasoning?: (ReasoningParam & any) | null;
|
|
665
|
+
safety_identifier?: string | null;
|
|
666
|
+
prompt_cache_key?: string | null;
|
|
667
|
+
truncation?: TruncationEnum & any;
|
|
668
|
+
instructions?: string | null;
|
|
669
|
+
/**
|
|
670
|
+
* @description Whether to store the response so it can be retrieved later.
|
|
671
|
+
* @type boolean | undefined
|
|
672
|
+
*/
|
|
673
|
+
store?: boolean;
|
|
674
|
+
service_tier?: ServiceTierEnum & any;
|
|
675
|
+
top_logprobs?: number | null;
|
|
676
|
+
};
|
|
677
|
+
/**
|
|
678
|
+
* @description Details about why the response was incomplete.
|
|
679
|
+
*/
|
|
680
|
+
type IncompleteDetails = {
|
|
681
|
+
/**
|
|
682
|
+
* @description The reason the response could not be completed.
|
|
683
|
+
* @type string
|
|
684
|
+
*/
|
|
685
|
+
reason: string;
|
|
686
|
+
};
|
|
687
|
+
declare const messageRoleEnum: {
|
|
688
|
+
readonly user: "user";
|
|
689
|
+
readonly assistant: "assistant";
|
|
690
|
+
readonly system: "system";
|
|
691
|
+
readonly developer: "developer";
|
|
692
|
+
};
|
|
693
|
+
type MessageRoleEnumKey = (typeof messageRoleEnum)[keyof typeof messageRoleEnum];
|
|
694
|
+
type MessageRole = MessageRoleEnumKey;
|
|
695
|
+
declare const inputTextContentTypeEnum: {
|
|
696
|
+
readonly input_text: "input_text";
|
|
697
|
+
};
|
|
698
|
+
type InputTextContentTypeEnumKey = (typeof inputTextContentTypeEnum)[keyof typeof inputTextContentTypeEnum];
|
|
699
|
+
/**
|
|
700
|
+
* @description A text input to the model.
|
|
701
|
+
*/
|
|
702
|
+
type InputTextContent = {
|
|
703
|
+
/**
|
|
704
|
+
* @description The type of the input item. Always `input_text`.
|
|
705
|
+
* @default "input_text"
|
|
706
|
+
* @type string
|
|
707
|
+
*/
|
|
708
|
+
type: InputTextContentTypeEnumKey;
|
|
709
|
+
/**
|
|
710
|
+
* @description The text input to the model.
|
|
711
|
+
* @type string
|
|
712
|
+
*/
|
|
713
|
+
text: string;
|
|
714
|
+
};
|
|
715
|
+
declare const urlCitationBodyTypeEnum: {
|
|
716
|
+
readonly url_citation: "url_citation";
|
|
717
|
+
};
|
|
718
|
+
type UrlCitationBodyTypeEnumKey = (typeof urlCitationBodyTypeEnum)[keyof typeof urlCitationBodyTypeEnum];
|
|
719
|
+
/**
|
|
720
|
+
* @description A citation for a web resource used to generate a model response.
|
|
721
|
+
*/
|
|
722
|
+
type UrlCitationBody = {
|
|
723
|
+
/**
|
|
724
|
+
* @description The type of the URL citation. Always `url_citation`.
|
|
725
|
+
* @default "url_citation"
|
|
726
|
+
* @type string
|
|
727
|
+
*/
|
|
728
|
+
type: UrlCitationBodyTypeEnumKey;
|
|
729
|
+
/**
|
|
730
|
+
* @description The URL of the web resource.
|
|
731
|
+
* @type string
|
|
732
|
+
*/
|
|
733
|
+
url: string;
|
|
734
|
+
/**
|
|
735
|
+
* @description The index of the first character of the URL citation in the message.
|
|
736
|
+
* @type integer
|
|
737
|
+
*/
|
|
738
|
+
start_index: number;
|
|
739
|
+
/**
|
|
740
|
+
* @description The index of the last character of the URL citation in the message.
|
|
741
|
+
* @type integer
|
|
742
|
+
*/
|
|
743
|
+
end_index: number;
|
|
744
|
+
/**
|
|
745
|
+
* @description The title of the web resource.
|
|
746
|
+
* @type string
|
|
747
|
+
*/
|
|
748
|
+
title: string;
|
|
749
|
+
};
|
|
750
|
+
/**
|
|
751
|
+
* @description An annotation that applies to a span of output text.
|
|
752
|
+
*/
|
|
753
|
+
type Annotation = UrlCitationBody & {
|
|
754
|
+
type: 'url_citation';
|
|
755
|
+
};
|
|
756
|
+
/**
|
|
757
|
+
* @description The top log probability of a token.
|
|
758
|
+
*/
|
|
759
|
+
type TopLogProb = {
|
|
760
|
+
/**
|
|
761
|
+
* @type string
|
|
762
|
+
*/
|
|
763
|
+
token: string;
|
|
764
|
+
/**
|
|
765
|
+
* @type number
|
|
766
|
+
*/
|
|
767
|
+
logprob: number;
|
|
768
|
+
/**
|
|
769
|
+
* @type array
|
|
770
|
+
*/
|
|
771
|
+
bytes: Array<number>;
|
|
772
|
+
};
|
|
773
|
+
/**
|
|
774
|
+
* @description The log probability of a token.
|
|
775
|
+
*/
|
|
776
|
+
type LogProb = {
|
|
777
|
+
/**
|
|
778
|
+
* @type string
|
|
779
|
+
*/
|
|
780
|
+
token: string;
|
|
781
|
+
/**
|
|
782
|
+
* @type number
|
|
783
|
+
*/
|
|
784
|
+
logprob: number;
|
|
785
|
+
/**
|
|
786
|
+
* @type array
|
|
787
|
+
*/
|
|
788
|
+
bytes: Array<number>;
|
|
789
|
+
/**
|
|
790
|
+
* @type array
|
|
791
|
+
*/
|
|
792
|
+
top_logprobs: Array<TopLogProb>;
|
|
793
|
+
};
|
|
794
|
+
declare const outputTextContentTypeEnum: {
|
|
795
|
+
readonly output_text: "output_text";
|
|
796
|
+
};
|
|
797
|
+
type OutputTextContentTypeEnumKey = (typeof outputTextContentTypeEnum)[keyof typeof outputTextContentTypeEnum];
|
|
798
|
+
/**
|
|
799
|
+
* @description A text output from the model.
|
|
800
|
+
*/
|
|
801
|
+
type OutputTextContent = {
|
|
802
|
+
/**
|
|
803
|
+
* @description The type of the output text. Always `output_text`.
|
|
804
|
+
* @default "output_text"
|
|
805
|
+
* @type string
|
|
806
|
+
*/
|
|
807
|
+
type: OutputTextContentTypeEnumKey;
|
|
808
|
+
/**
|
|
809
|
+
* @description The text output from the model.
|
|
810
|
+
* @type string
|
|
811
|
+
*/
|
|
812
|
+
text: string;
|
|
813
|
+
/**
|
|
814
|
+
* @description The annotations of the text output.
|
|
815
|
+
* @type array
|
|
816
|
+
*/
|
|
817
|
+
annotations: Array<Annotation>;
|
|
818
|
+
/**
|
|
819
|
+
* @type array
|
|
820
|
+
*/
|
|
821
|
+
logprobs: Array<LogProb>;
|
|
822
|
+
};
|
|
823
|
+
declare const textContentTypeEnum: {
|
|
824
|
+
readonly text: "text";
|
|
825
|
+
};
|
|
826
|
+
type TextContentTypeEnumKey = (typeof textContentTypeEnum)[keyof typeof textContentTypeEnum];
|
|
827
|
+
/**
|
|
828
|
+
* @description A text content.
|
|
829
|
+
*/
|
|
830
|
+
type TextContent = {
|
|
831
|
+
/**
|
|
832
|
+
* @default "text"
|
|
833
|
+
* @type string
|
|
834
|
+
*/
|
|
835
|
+
type: TextContentTypeEnumKey;
|
|
836
|
+
/**
|
|
837
|
+
* @type string
|
|
838
|
+
*/
|
|
839
|
+
text: string;
|
|
840
|
+
};
|
|
841
|
+
declare const summaryTextContentTypeEnum: {
|
|
842
|
+
readonly summary_text: "summary_text";
|
|
843
|
+
};
|
|
844
|
+
type SummaryTextContentTypeEnumKey = (typeof summaryTextContentTypeEnum)[keyof typeof summaryTextContentTypeEnum];
|
|
845
|
+
/**
|
|
846
|
+
* @description A summary text from the model.
|
|
847
|
+
*/
|
|
848
|
+
type SummaryTextContent = {
|
|
849
|
+
/**
|
|
850
|
+
* @description The type of the object. Always `summary_text`.
|
|
851
|
+
* @default "summary_text"
|
|
852
|
+
* @type string
|
|
853
|
+
*/
|
|
854
|
+
type: SummaryTextContentTypeEnumKey;
|
|
855
|
+
/**
|
|
856
|
+
* @description A summary of the reasoning output from the model so far.
|
|
857
|
+
* @type string
|
|
858
|
+
*/
|
|
859
|
+
text: string;
|
|
860
|
+
};
|
|
861
|
+
declare const reasoningTextContentTypeEnum: {
|
|
862
|
+
readonly reasoning_text: "reasoning_text";
|
|
863
|
+
};
|
|
864
|
+
type ReasoningTextContentTypeEnumKey = (typeof reasoningTextContentTypeEnum)[keyof typeof reasoningTextContentTypeEnum];
|
|
865
|
+
/**
|
|
866
|
+
* @description Reasoning text from the model.
|
|
867
|
+
*/
|
|
868
|
+
type ReasoningTextContent = {
|
|
869
|
+
/**
|
|
870
|
+
* @description The type of the reasoning text. Always `reasoning_text`.
|
|
871
|
+
* @default "reasoning_text"
|
|
872
|
+
* @type string
|
|
873
|
+
*/
|
|
874
|
+
type: ReasoningTextContentTypeEnumKey;
|
|
875
|
+
/**
|
|
876
|
+
* @description The reasoning text from the model.
|
|
877
|
+
* @type string
|
|
878
|
+
*/
|
|
879
|
+
text: string;
|
|
880
|
+
};
|
|
881
|
+
declare const refusalContentTypeEnum: {
|
|
882
|
+
readonly refusal: "refusal";
|
|
883
|
+
};
|
|
884
|
+
type RefusalContentTypeEnumKey = (typeof refusalContentTypeEnum)[keyof typeof refusalContentTypeEnum];
|
|
885
|
+
/**
|
|
886
|
+
* @description A refusal from the model.
|
|
887
|
+
*/
|
|
888
|
+
type RefusalContent = {
|
|
889
|
+
/**
|
|
890
|
+
* @description The type of the refusal. Always `refusal`.
|
|
891
|
+
* @default "refusal"
|
|
892
|
+
* @type string
|
|
893
|
+
*/
|
|
894
|
+
type: RefusalContentTypeEnumKey;
|
|
895
|
+
/**
|
|
896
|
+
* @description The refusal explanation from the model.
|
|
897
|
+
* @type string
|
|
898
|
+
*/
|
|
899
|
+
refusal: string;
|
|
900
|
+
};
|
|
901
|
+
declare const inputImageContentTypeEnum: {
|
|
902
|
+
readonly input_image: "input_image";
|
|
903
|
+
};
|
|
904
|
+
type InputImageContentTypeEnumKey = (typeof inputImageContentTypeEnum)[keyof typeof inputImageContentTypeEnum];
|
|
905
|
+
/**
|
|
906
|
+
* @description An image input to the model. Learn about [image inputs](/docs/guides/vision).
|
|
907
|
+
*/
|
|
908
|
+
type InputImageContent = {
|
|
909
|
+
/**
|
|
910
|
+
* @description The type of the input item. Always `input_image`.
|
|
911
|
+
* @default "input_image"
|
|
912
|
+
* @type string
|
|
913
|
+
*/
|
|
914
|
+
type: InputImageContentTypeEnumKey;
|
|
915
|
+
image_url: string | null;
|
|
916
|
+
detail: ImageDetail & any;
|
|
917
|
+
};
|
|
918
|
+
declare const inputFileContentTypeEnum: {
|
|
919
|
+
readonly input_file: "input_file";
|
|
920
|
+
};
|
|
921
|
+
type InputFileContentTypeEnumKey = (typeof inputFileContentTypeEnum)[keyof typeof inputFileContentTypeEnum];
|
|
922
|
+
/**
|
|
923
|
+
* @description A file input to the model.
|
|
924
|
+
*/
|
|
925
|
+
type InputFileContent = {
|
|
926
|
+
/**
|
|
927
|
+
* @description The type of the input item. Always `input_file`.
|
|
928
|
+
* @default "input_file"
|
|
929
|
+
* @type string
|
|
930
|
+
*/
|
|
931
|
+
type: InputFileContentTypeEnumKey;
|
|
932
|
+
/**
|
|
933
|
+
* @description The name of the file to be sent to the model.
|
|
934
|
+
* @type string | undefined
|
|
935
|
+
*/
|
|
936
|
+
filename?: string;
|
|
937
|
+
/**
|
|
938
|
+
* @description The URL of the file to be sent to the model.
|
|
939
|
+
* @type string | undefined
|
|
940
|
+
*/
|
|
941
|
+
file_url?: string;
|
|
942
|
+
};
|
|
943
|
+
declare const messageStatusEnum: {
|
|
944
|
+
readonly in_progress: "in_progress";
|
|
945
|
+
readonly completed: "completed";
|
|
946
|
+
readonly incomplete: "incomplete";
|
|
947
|
+
};
|
|
948
|
+
type MessageStatusEnumKey = (typeof messageStatusEnum)[keyof typeof messageStatusEnum];
|
|
949
|
+
type MessageStatus = MessageStatusEnumKey;
|
|
950
|
+
declare const messageTypeEnum: {
|
|
951
|
+
readonly message: "message";
|
|
952
|
+
};
|
|
953
|
+
type MessageTypeEnumKey = (typeof messageTypeEnum)[keyof typeof messageTypeEnum];
|
|
954
|
+
/**
|
|
955
|
+
* @description A message to or from the model.
|
|
956
|
+
*/
|
|
957
|
+
type Message = {
|
|
958
|
+
/**
|
|
959
|
+
* @description The type of the message. Always set to `message`.
|
|
960
|
+
* @default "message"
|
|
961
|
+
* @type string
|
|
962
|
+
*/
|
|
963
|
+
type: MessageTypeEnumKey;
|
|
964
|
+
/**
|
|
965
|
+
* @description The unique ID of the message.
|
|
966
|
+
* @type string
|
|
967
|
+
*/
|
|
968
|
+
id: string;
|
|
969
|
+
status: MessageStatus & any;
|
|
970
|
+
role: MessageRole & any;
|
|
971
|
+
/**
|
|
972
|
+
* @description The content of the message
|
|
973
|
+
* @type array
|
|
974
|
+
*/
|
|
975
|
+
content: Array<(InputTextContent & {
|
|
976
|
+
type: 'input_text';
|
|
977
|
+
}) | (OutputTextContent & {
|
|
978
|
+
type: 'output_text';
|
|
979
|
+
}) | (TextContent & {
|
|
980
|
+
type: 'text';
|
|
981
|
+
}) | (SummaryTextContent & {
|
|
982
|
+
type: 'summary_text';
|
|
983
|
+
}) | (ReasoningTextContent & {
|
|
984
|
+
type: 'reasoning_text';
|
|
985
|
+
}) | (RefusalContent & {
|
|
986
|
+
type: 'refusal';
|
|
987
|
+
}) | (InputImageContent & {
|
|
988
|
+
type: 'input_image';
|
|
989
|
+
}) | (InputFileContent & {
|
|
990
|
+
type: 'input_file';
|
|
991
|
+
}) | (InputVideoContent & {
|
|
992
|
+
type: 'input_video';
|
|
993
|
+
})>;
|
|
994
|
+
};
|
|
995
|
+
declare const functionCallTypeEnum: {
|
|
996
|
+
readonly function_call: "function_call";
|
|
997
|
+
};
|
|
998
|
+
type FunctionCallTypeEnumKey = (typeof functionCallTypeEnum)[keyof typeof functionCallTypeEnum];
|
|
999
|
+
/**
|
|
1000
|
+
* @description A function tool call that was generated by the model.
|
|
1001
|
+
*/
|
|
1002
|
+
type FunctionCall = {
|
|
1003
|
+
/**
|
|
1004
|
+
* @description The type of the item. Always `function_call`.
|
|
1005
|
+
* @default "function_call"
|
|
1006
|
+
* @type string
|
|
1007
|
+
*/
|
|
1008
|
+
type: FunctionCallTypeEnumKey;
|
|
1009
|
+
/**
|
|
1010
|
+
* @description The unique ID of the function call item.
|
|
1011
|
+
* @type string
|
|
1012
|
+
*/
|
|
1013
|
+
id: string;
|
|
1014
|
+
/**
|
|
1015
|
+
* @description The unique ID of the function tool call that was generated.
|
|
1016
|
+
* @type string
|
|
1017
|
+
*/
|
|
1018
|
+
call_id: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* @description The name of the function that was called.
|
|
1021
|
+
* @type string
|
|
1022
|
+
*/
|
|
1023
|
+
name: string;
|
|
1024
|
+
/**
|
|
1025
|
+
* @description The arguments JSON string that was generated.
|
|
1026
|
+
* @type string
|
|
1027
|
+
*/
|
|
1028
|
+
arguments: string;
|
|
1029
|
+
status: FunctionCallStatus & any;
|
|
1030
|
+
};
|
|
1031
|
+
declare const functionCallOutputStatusEnumEnum: {
|
|
1032
|
+
readonly in_progress: "in_progress";
|
|
1033
|
+
readonly completed: "completed";
|
|
1034
|
+
readonly incomplete: "incomplete";
|
|
1035
|
+
};
|
|
1036
|
+
type FunctionCallOutputStatusEnumEnumKey = (typeof functionCallOutputStatusEnumEnum)[keyof typeof functionCallOutputStatusEnumEnum];
|
|
1037
|
+
/**
|
|
1038
|
+
* @description Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.
|
|
1039
|
+
*/
|
|
1040
|
+
type FunctionCallOutputStatusEnum = FunctionCallOutputStatusEnumEnumKey;
|
|
1041
|
+
declare const functionCallOutputTypeEnum: {
|
|
1042
|
+
readonly function_call_output: "function_call_output";
|
|
1043
|
+
};
|
|
1044
|
+
type FunctionCallOutputTypeEnumKey = (typeof functionCallOutputTypeEnum)[keyof typeof functionCallOutputTypeEnum];
|
|
1045
|
+
/**
|
|
1046
|
+
* @description A function tool call output that was returned by the tool.
|
|
1047
|
+
*/
|
|
1048
|
+
type FunctionCallOutput = {
|
|
1049
|
+
/**
|
|
1050
|
+
* @description The type of the function tool call output. Always `function_call_output`.
|
|
1051
|
+
* @default "function_call_output"
|
|
1052
|
+
* @type string
|
|
1053
|
+
*/
|
|
1054
|
+
type: FunctionCallOutputTypeEnumKey;
|
|
1055
|
+
/**
|
|
1056
|
+
* @description The unique ID of the function tool call output. Populated when this item is returned via API.
|
|
1057
|
+
* @type string
|
|
1058
|
+
*/
|
|
1059
|
+
id: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* @description The unique ID of the function tool call generated by the model.
|
|
1062
|
+
* @type string
|
|
1063
|
+
*/
|
|
1064
|
+
call_id: string;
|
|
1065
|
+
output: string | Array<(InputTextContent & {
|
|
1066
|
+
type: 'input_text';
|
|
1067
|
+
}) | (InputImageContent & {
|
|
1068
|
+
type: 'input_image';
|
|
1069
|
+
}) | (InputFileContent & {
|
|
1070
|
+
type: 'input_file';
|
|
1071
|
+
})>;
|
|
1072
|
+
status: FunctionCallOutputStatusEnum & any;
|
|
1073
|
+
};
|
|
1074
|
+
declare const reasoningBodyTypeEnum: {
|
|
1075
|
+
readonly reasoning: "reasoning";
|
|
1076
|
+
};
|
|
1077
|
+
type ReasoningBodyTypeEnumKey = (typeof reasoningBodyTypeEnum)[keyof typeof reasoningBodyTypeEnum];
|
|
1078
|
+
/**
|
|
1079
|
+
* @description A reasoning item that was generated by the model.
|
|
1080
|
+
*/
|
|
1081
|
+
type ReasoningBody = {
|
|
1082
|
+
/**
|
|
1083
|
+
* @description The type of the item. Always `reasoning`.
|
|
1084
|
+
* @default "reasoning"
|
|
1085
|
+
* @type string
|
|
1086
|
+
*/
|
|
1087
|
+
type: ReasoningBodyTypeEnumKey;
|
|
1088
|
+
/**
|
|
1089
|
+
* @description The unique ID of the reasoning item.
|
|
1090
|
+
* @type string
|
|
1091
|
+
*/
|
|
1092
|
+
id: string;
|
|
1093
|
+
/**
|
|
1094
|
+
* @description The reasoning content that was generated.
|
|
1095
|
+
* @type array | undefined
|
|
1096
|
+
*/
|
|
1097
|
+
content?: Array<(InputTextContent & {
|
|
1098
|
+
type: 'input_text';
|
|
1099
|
+
}) | (OutputTextContent & {
|
|
1100
|
+
type: 'output_text';
|
|
1101
|
+
}) | (TextContent & {
|
|
1102
|
+
type: 'text';
|
|
1103
|
+
}) | (SummaryTextContent & {
|
|
1104
|
+
type: 'summary_text';
|
|
1105
|
+
}) | (ReasoningTextContent & {
|
|
1106
|
+
type: 'reasoning_text';
|
|
1107
|
+
}) | (RefusalContent & {
|
|
1108
|
+
type: 'refusal';
|
|
1109
|
+
}) | (InputImageContent & {
|
|
1110
|
+
type: 'input_image';
|
|
1111
|
+
}) | (InputFileContent & {
|
|
1112
|
+
type: 'input_file';
|
|
1113
|
+
})>;
|
|
1114
|
+
/**
|
|
1115
|
+
* @description The reasoning summary content that was generated.
|
|
1116
|
+
* @type array
|
|
1117
|
+
*/
|
|
1118
|
+
summary: Array<(InputTextContent & {
|
|
1119
|
+
type: 'input_text';
|
|
1120
|
+
}) | (OutputTextContent & {
|
|
1121
|
+
type: 'output_text';
|
|
1122
|
+
}) | (TextContent & {
|
|
1123
|
+
type: 'text';
|
|
1124
|
+
}) | (SummaryTextContent & {
|
|
1125
|
+
type: 'summary_text';
|
|
1126
|
+
}) | (ReasoningTextContent & {
|
|
1127
|
+
type: 'reasoning_text';
|
|
1128
|
+
}) | (RefusalContent & {
|
|
1129
|
+
type: 'refusal';
|
|
1130
|
+
}) | (InputImageContent & {
|
|
1131
|
+
type: 'input_image';
|
|
1132
|
+
}) | (InputFileContent & {
|
|
1133
|
+
type: 'input_file';
|
|
1134
|
+
})>;
|
|
1135
|
+
/**
|
|
1136
|
+
* @description The encrypted reasoning content that was generated.
|
|
1137
|
+
* @type string | undefined
|
|
1138
|
+
*/
|
|
1139
|
+
encrypted_content?: string;
|
|
1140
|
+
};
|
|
1141
|
+
/**
|
|
1142
|
+
* @description An item representing a message, tool call, tool output, reasoning, or other response element.
|
|
1143
|
+
*/
|
|
1144
|
+
type ItemField = (Message & {
|
|
1145
|
+
type: 'message';
|
|
1146
|
+
}) | (FunctionCall & {
|
|
1147
|
+
type: 'function_call';
|
|
1148
|
+
}) | (FunctionCallOutput & {
|
|
1149
|
+
type: 'function_call_output';
|
|
1150
|
+
}) | (ReasoningBody & {
|
|
1151
|
+
type: 'reasoning';
|
|
1152
|
+
});
|
|
1153
|
+
/**
|
|
1154
|
+
* @description An error that occurred while generating the response.
|
|
1155
|
+
*/
|
|
1156
|
+
type Error = {
|
|
1157
|
+
/**
|
|
1158
|
+
* @description A machine-readable error code that was returned.
|
|
1159
|
+
* @type string
|
|
1160
|
+
*/
|
|
1161
|
+
code: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* @description A human-readable description of the error that was returned.
|
|
1164
|
+
* @type string
|
|
1165
|
+
*/
|
|
1166
|
+
message: string;
|
|
1167
|
+
};
|
|
1168
|
+
declare const functionToolTypeEnum: {
|
|
1169
|
+
readonly function: "function";
|
|
1170
|
+
};
|
|
1171
|
+
type FunctionToolTypeEnumKey = (typeof functionToolTypeEnum)[keyof typeof functionToolTypeEnum];
|
|
1172
|
+
/**
|
|
1173
|
+
* @description Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).
|
|
1174
|
+
*/
|
|
1175
|
+
type FunctionTool = {
|
|
1176
|
+
/**
|
|
1177
|
+
* @description The type of the function tool. Always `function`.
|
|
1178
|
+
* @default "function"
|
|
1179
|
+
* @type string
|
|
1180
|
+
*/
|
|
1181
|
+
type: FunctionToolTypeEnumKey;
|
|
1182
|
+
/**
|
|
1183
|
+
* @description The name of the function to call.
|
|
1184
|
+
* @type string
|
|
1185
|
+
*/
|
|
1186
|
+
name: string;
|
|
1187
|
+
description: string | null;
|
|
1188
|
+
parameters: {
|
|
1189
|
+
[key: string]: any;
|
|
1190
|
+
} | null;
|
|
1191
|
+
strict: boolean | null;
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* @description A tool that can be used to generate a response.
|
|
1195
|
+
*/
|
|
1196
|
+
type Tool = FunctionTool & {
|
|
1197
|
+
type: 'function';
|
|
1198
|
+
};
|
|
1199
|
+
declare const functionToolChoiceTypeEnum: {
|
|
1200
|
+
readonly function: "function";
|
|
1201
|
+
};
|
|
1202
|
+
type FunctionToolChoiceTypeEnumKey = (typeof functionToolChoiceTypeEnum)[keyof typeof functionToolChoiceTypeEnum];
|
|
1203
|
+
type FunctionToolChoice = {
|
|
1204
|
+
/**
|
|
1205
|
+
* @default "function"
|
|
1206
|
+
* @type string
|
|
1207
|
+
*/
|
|
1208
|
+
type: FunctionToolChoiceTypeEnumKey;
|
|
1209
|
+
/**
|
|
1210
|
+
* @type string | undefined
|
|
1211
|
+
*/
|
|
1212
|
+
name?: string;
|
|
1213
|
+
};
|
|
1214
|
+
declare const allowedToolChoiceTypeEnum: {
|
|
1215
|
+
readonly allowed_tools: "allowed_tools";
|
|
1216
|
+
};
|
|
1217
|
+
type AllowedToolChoiceTypeEnumKey = (typeof allowedToolChoiceTypeEnum)[keyof typeof allowedToolChoiceTypeEnum];
|
|
1218
|
+
type AllowedToolChoice = {
|
|
1219
|
+
/**
|
|
1220
|
+
* @default "allowed_tools"
|
|
1221
|
+
* @type string
|
|
1222
|
+
*/
|
|
1223
|
+
type: AllowedToolChoiceTypeEnumKey;
|
|
1224
|
+
/**
|
|
1225
|
+
* @type array
|
|
1226
|
+
*/
|
|
1227
|
+
tools: Array<FunctionToolChoice>;
|
|
1228
|
+
/**
|
|
1229
|
+
* @type string
|
|
1230
|
+
*/
|
|
1231
|
+
mode: ToolChoiceValueEnum;
|
|
1232
|
+
};
|
|
1233
|
+
declare const jsonObjectResponseFormatTypeEnum: {
|
|
1234
|
+
readonly json_object: "json_object";
|
|
1235
|
+
};
|
|
1236
|
+
type JsonObjectResponseFormatTypeEnumKey = (typeof jsonObjectResponseFormatTypeEnum)[keyof typeof jsonObjectResponseFormatTypeEnum];
|
|
1237
|
+
type JsonObjectResponseFormat = {
|
|
1238
|
+
/**
|
|
1239
|
+
* @default "json_object"
|
|
1240
|
+
* @type string
|
|
1241
|
+
*/
|
|
1242
|
+
type: JsonObjectResponseFormatTypeEnumKey;
|
|
1243
|
+
};
|
|
1244
|
+
declare const jsonSchemaResponseFormatTypeEnum: {
|
|
1245
|
+
readonly json_schema: "json_schema";
|
|
1246
|
+
};
|
|
1247
|
+
type JsonSchemaResponseFormatTypeEnumKey = (typeof jsonSchemaResponseFormatTypeEnum)[keyof typeof jsonSchemaResponseFormatTypeEnum];
|
|
1248
|
+
type JsonSchemaResponseFormat = {
|
|
1249
|
+
/**
|
|
1250
|
+
* @default "json_schema"
|
|
1251
|
+
* @type string
|
|
1252
|
+
*/
|
|
1253
|
+
type: JsonSchemaResponseFormatTypeEnumKey;
|
|
1254
|
+
/**
|
|
1255
|
+
* @type string
|
|
1256
|
+
*/
|
|
1257
|
+
name: string;
|
|
1258
|
+
description: string | null;
|
|
1259
|
+
schema: null;
|
|
1260
|
+
/**
|
|
1261
|
+
* @type boolean
|
|
1262
|
+
*/
|
|
1263
|
+
strict: boolean;
|
|
1264
|
+
};
|
|
1265
|
+
type TextField = {
|
|
1266
|
+
format: TextResponseFormat | JsonObjectResponseFormat | JsonSchemaResponseFormat;
|
|
1267
|
+
/**
|
|
1268
|
+
* @type string | undefined
|
|
1269
|
+
*/
|
|
1270
|
+
verbosity?: VerbosityEnum;
|
|
1271
|
+
};
|
|
1272
|
+
/**
|
|
1273
|
+
* @description Reasoning configuration and metadata that were used for the response.
|
|
1274
|
+
*/
|
|
1275
|
+
type Reasoning = {
|
|
1276
|
+
effort: ReasoningEffortEnum | null;
|
|
1277
|
+
summary: (ReasoningSummaryEnum & any) | null;
|
|
1278
|
+
};
|
|
1279
|
+
/**
|
|
1280
|
+
* @description A breakdown of input token usage that was recorded.
|
|
1281
|
+
*/
|
|
1282
|
+
type InputTokensDetails = {
|
|
1283
|
+
/**
|
|
1284
|
+
* @description The number of input tokens that were served from cache.
|
|
1285
|
+
* @type integer
|
|
1286
|
+
*/
|
|
1287
|
+
cached_tokens: number;
|
|
1288
|
+
};
|
|
1289
|
+
/**
|
|
1290
|
+
* @description A breakdown of output token usage that was recorded.
|
|
1291
|
+
*/
|
|
1292
|
+
type OutputTokensDetails = {
|
|
1293
|
+
/**
|
|
1294
|
+
* @description The number of output tokens that were attributed to reasoning.
|
|
1295
|
+
* @type integer
|
|
1296
|
+
*/
|
|
1297
|
+
reasoning_tokens: number;
|
|
1298
|
+
};
|
|
1299
|
+
/**
|
|
1300
|
+
* @description Token usage statistics that were recorded for the response.
|
|
1301
|
+
*/
|
|
1302
|
+
type Usage = {
|
|
1303
|
+
/**
|
|
1304
|
+
* @description The number of input tokens that were used to generate the response.
|
|
1305
|
+
* @type integer
|
|
1306
|
+
*/
|
|
1307
|
+
input_tokens: number;
|
|
1308
|
+
/**
|
|
1309
|
+
* @description The number of output tokens that were generated by the model.
|
|
1310
|
+
* @type integer
|
|
1311
|
+
*/
|
|
1312
|
+
output_tokens: number;
|
|
1313
|
+
/**
|
|
1314
|
+
* @description The total number of tokens that were used.
|
|
1315
|
+
* @type integer
|
|
1316
|
+
*/
|
|
1317
|
+
total_tokens: number;
|
|
1318
|
+
input_tokens_details: InputTokensDetails & any;
|
|
1319
|
+
output_tokens_details: OutputTokensDetails & any;
|
|
1320
|
+
};
|
|
1321
|
+
declare const responseResourceObjectEnum: {
|
|
1322
|
+
readonly response: "response";
|
|
1323
|
+
};
|
|
1324
|
+
type ResponseResourceObjectEnumKey = (typeof responseResourceObjectEnum)[keyof typeof responseResourceObjectEnum];
|
|
1325
|
+
/**
|
|
1326
|
+
* @description The complete response object that was returned by the Responses API.
|
|
1327
|
+
* @example [object Object]
|
|
1328
|
+
*/
|
|
1329
|
+
type ResponseResource = {
|
|
1330
|
+
/**
|
|
1331
|
+
* @description The unique ID of the response that was created.
|
|
1332
|
+
* @type string
|
|
1333
|
+
*/
|
|
1334
|
+
id: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* @description The object type, which was always `response`.
|
|
1337
|
+
* @default "response"
|
|
1338
|
+
* @type string
|
|
1339
|
+
*/
|
|
1340
|
+
object: ResponseResourceObjectEnumKey;
|
|
1341
|
+
/**
|
|
1342
|
+
* @description The Unix timestamp (in seconds) for when the response was created.
|
|
1343
|
+
* @type integer
|
|
1344
|
+
*/
|
|
1345
|
+
created_at: number;
|
|
1346
|
+
completed_at: number | null;
|
|
1347
|
+
/**
|
|
1348
|
+
* @description The status that was set for the response.
|
|
1349
|
+
* @type string
|
|
1350
|
+
*/
|
|
1351
|
+
status: string;
|
|
1352
|
+
incomplete_details: (IncompleteDetails & any) | null;
|
|
1353
|
+
/**
|
|
1354
|
+
* @description The model that generated this response.
|
|
1355
|
+
* @type string
|
|
1356
|
+
*/
|
|
1357
|
+
model: string;
|
|
1358
|
+
previous_response_id: string | null;
|
|
1359
|
+
instructions: string | null;
|
|
1360
|
+
/**
|
|
1361
|
+
* @description The output items that were generated by the model.
|
|
1362
|
+
* @type array
|
|
1363
|
+
*/
|
|
1364
|
+
output: Array<ItemField>;
|
|
1365
|
+
error: (Error & any) | null;
|
|
1366
|
+
/**
|
|
1367
|
+
* @description The tools that were available to the model during response generation.
|
|
1368
|
+
* @type array
|
|
1369
|
+
*/
|
|
1370
|
+
tools: Array<Tool>;
|
|
1371
|
+
tool_choice: FunctionToolChoice | ToolChoiceValueEnum | AllowedToolChoice;
|
|
1372
|
+
truncation: TruncationEnum & any;
|
|
1373
|
+
/**
|
|
1374
|
+
* @description Whether the model was allowed to call multiple tools in parallel.
|
|
1375
|
+
* @type boolean
|
|
1376
|
+
*/
|
|
1377
|
+
parallel_tool_calls: boolean;
|
|
1378
|
+
text: TextField & any;
|
|
1379
|
+
/**
|
|
1380
|
+
* @description The nucleus sampling parameter that was used for this response.
|
|
1381
|
+
* @type number
|
|
1382
|
+
*/
|
|
1383
|
+
top_p: number;
|
|
1384
|
+
/**
|
|
1385
|
+
* @description The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.
|
|
1386
|
+
* @type number
|
|
1387
|
+
*/
|
|
1388
|
+
presence_penalty: number;
|
|
1389
|
+
/**
|
|
1390
|
+
* @description The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.
|
|
1391
|
+
* @type number
|
|
1392
|
+
*/
|
|
1393
|
+
frequency_penalty: number;
|
|
1394
|
+
/**
|
|
1395
|
+
* @description The number of most likely tokens that were returned at each position, along with their log probabilities.
|
|
1396
|
+
* @type integer
|
|
1397
|
+
*/
|
|
1398
|
+
top_logprobs: number;
|
|
1399
|
+
/**
|
|
1400
|
+
* @description The sampling temperature that was used for this response.
|
|
1401
|
+
* @type number
|
|
1402
|
+
*/
|
|
1403
|
+
temperature: number;
|
|
1404
|
+
reasoning: (Reasoning & any) | null;
|
|
1405
|
+
usage: (Usage & any) | null;
|
|
1406
|
+
max_output_tokens: number | null;
|
|
1407
|
+
max_tool_calls: number | null;
|
|
1408
|
+
/**
|
|
1409
|
+
* @description Whether this response was stored so it can be retrieved later.
|
|
1410
|
+
* @type boolean
|
|
1411
|
+
*/
|
|
1412
|
+
store: boolean;
|
|
1413
|
+
/**
|
|
1414
|
+
* @description Whether this request was run in the background.
|
|
1415
|
+
* @type boolean
|
|
1416
|
+
*/
|
|
1417
|
+
background: boolean;
|
|
1418
|
+
/**
|
|
1419
|
+
* @description The service tier that was used for this response.
|
|
1420
|
+
* @type string
|
|
1421
|
+
*/
|
|
1422
|
+
service_tier: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* @description Developer-defined metadata that was associated with the response.
|
|
1425
|
+
*/
|
|
1426
|
+
metadata: any;
|
|
1427
|
+
safety_identifier: string | null;
|
|
1428
|
+
prompt_cache_key: string | null;
|
|
1429
|
+
};
|
|
1430
|
+
declare const responseCreatedStreamingEventTypeEnum: {
|
|
1431
|
+
readonly 'response.created': "response.created";
|
|
1432
|
+
};
|
|
1433
|
+
type ResponseCreatedStreamingEventTypeEnumKey = (typeof responseCreatedStreamingEventTypeEnum)[keyof typeof responseCreatedStreamingEventTypeEnum];
|
|
1434
|
+
/**
|
|
1435
|
+
* @description A streaming event that indicated the response was created.
|
|
1436
|
+
*/
|
|
1437
|
+
type ResponseCreatedStreamingEvent = {
|
|
1438
|
+
/**
|
|
1439
|
+
* @description The type of the event, always `response.created`.
|
|
1440
|
+
* @default "response.created"
|
|
1441
|
+
* @type string
|
|
1442
|
+
*/
|
|
1443
|
+
type: ResponseCreatedStreamingEventTypeEnumKey;
|
|
1444
|
+
/**
|
|
1445
|
+
* @description The sequence number of the event that was emitted.
|
|
1446
|
+
* @type integer
|
|
1447
|
+
*/
|
|
1448
|
+
sequence_number: number;
|
|
1449
|
+
response: ResponseResource & any;
|
|
1450
|
+
};
|
|
1451
|
+
declare const responseQueuedStreamingEventTypeEnum: {
|
|
1452
|
+
readonly 'response.queued': "response.queued";
|
|
1453
|
+
};
|
|
1454
|
+
type ResponseQueuedStreamingEventTypeEnumKey = (typeof responseQueuedStreamingEventTypeEnum)[keyof typeof responseQueuedStreamingEventTypeEnum];
|
|
1455
|
+
/**
|
|
1456
|
+
* @description A streaming event that indicated the response was queued.
|
|
1457
|
+
*/
|
|
1458
|
+
type ResponseQueuedStreamingEvent = {
|
|
1459
|
+
/**
|
|
1460
|
+
* @description The type of the event, always `response.queued`.
|
|
1461
|
+
* @default "response.queued"
|
|
1462
|
+
* @type string
|
|
1463
|
+
*/
|
|
1464
|
+
type: ResponseQueuedStreamingEventTypeEnumKey;
|
|
1465
|
+
/**
|
|
1466
|
+
* @description The sequence number of the event that was emitted.
|
|
1467
|
+
* @type integer
|
|
1468
|
+
*/
|
|
1469
|
+
sequence_number: number;
|
|
1470
|
+
response: ResponseResource & any;
|
|
1471
|
+
};
|
|
1472
|
+
declare const responseInProgressStreamingEventTypeEnum: {
|
|
1473
|
+
readonly 'response.in_progress': "response.in_progress";
|
|
1474
|
+
};
|
|
1475
|
+
type ResponseInProgressStreamingEventTypeEnumKey = (typeof responseInProgressStreamingEventTypeEnum)[keyof typeof responseInProgressStreamingEventTypeEnum];
|
|
1476
|
+
/**
|
|
1477
|
+
* @description A streaming event that indicated the response was in progress.
|
|
1478
|
+
*/
|
|
1479
|
+
type ResponseInProgressStreamingEvent = {
|
|
1480
|
+
/**
|
|
1481
|
+
* @description The type of the event, always `response.in_progress`.
|
|
1482
|
+
* @default "response.in_progress"
|
|
1483
|
+
* @type string
|
|
1484
|
+
*/
|
|
1485
|
+
type: ResponseInProgressStreamingEventTypeEnumKey;
|
|
1486
|
+
/**
|
|
1487
|
+
* @description The sequence number of the event that was emitted.
|
|
1488
|
+
* @type integer
|
|
1489
|
+
*/
|
|
1490
|
+
sequence_number: number;
|
|
1491
|
+
response: ResponseResource & any;
|
|
1492
|
+
};
|
|
1493
|
+
declare const responseCompletedStreamingEventTypeEnum: {
|
|
1494
|
+
readonly 'response.completed': "response.completed";
|
|
1495
|
+
};
|
|
1496
|
+
type ResponseCompletedStreamingEventTypeEnumKey = (typeof responseCompletedStreamingEventTypeEnum)[keyof typeof responseCompletedStreamingEventTypeEnum];
|
|
1497
|
+
/**
|
|
1498
|
+
* @description A streaming event that indicated the response was completed.
|
|
1499
|
+
*/
|
|
1500
|
+
type ResponseCompletedStreamingEvent = {
|
|
1501
|
+
/**
|
|
1502
|
+
* @description The type of the event, always `response.completed`.
|
|
1503
|
+
* @default "response.completed"
|
|
1504
|
+
* @type string
|
|
1505
|
+
*/
|
|
1506
|
+
type: ResponseCompletedStreamingEventTypeEnumKey;
|
|
1507
|
+
/**
|
|
1508
|
+
* @description The sequence number of the event that was emitted.
|
|
1509
|
+
* @type integer
|
|
1510
|
+
*/
|
|
1511
|
+
sequence_number: number;
|
|
1512
|
+
response: ResponseResource & any;
|
|
1513
|
+
};
|
|
1514
|
+
declare const responseFailedStreamingEventTypeEnum: {
|
|
1515
|
+
readonly 'response.failed': "response.failed";
|
|
1516
|
+
};
|
|
1517
|
+
type ResponseFailedStreamingEventTypeEnumKey = (typeof responseFailedStreamingEventTypeEnum)[keyof typeof responseFailedStreamingEventTypeEnum];
|
|
1518
|
+
/**
|
|
1519
|
+
* @description A streaming event that indicated the response had failed.
|
|
1520
|
+
*/
|
|
1521
|
+
type ResponseFailedStreamingEvent = {
|
|
1522
|
+
/**
|
|
1523
|
+
* @description The type of the event, always `response.failed`.
|
|
1524
|
+
* @default "response.failed"
|
|
1525
|
+
* @type string
|
|
1526
|
+
*/
|
|
1527
|
+
type: ResponseFailedStreamingEventTypeEnumKey;
|
|
1528
|
+
/**
|
|
1529
|
+
* @description The sequence number of the event that was emitted.
|
|
1530
|
+
* @type integer
|
|
1531
|
+
*/
|
|
1532
|
+
sequence_number: number;
|
|
1533
|
+
response: ResponseResource & any;
|
|
1534
|
+
};
|
|
1535
|
+
declare const responseIncompleteStreamingEventTypeEnum: {
|
|
1536
|
+
readonly 'response.incomplete': "response.incomplete";
|
|
1537
|
+
};
|
|
1538
|
+
type ResponseIncompleteStreamingEventTypeEnumKey = (typeof responseIncompleteStreamingEventTypeEnum)[keyof typeof responseIncompleteStreamingEventTypeEnum];
|
|
1539
|
+
/**
|
|
1540
|
+
* @description A streaming event that indicated the response was incomplete.
|
|
1541
|
+
*/
|
|
1542
|
+
type ResponseIncompleteStreamingEvent = {
|
|
1543
|
+
/**
|
|
1544
|
+
* @description The type of the event, always `response.incomplete`.
|
|
1545
|
+
* @default "response.incomplete"
|
|
1546
|
+
* @type string
|
|
1547
|
+
*/
|
|
1548
|
+
type: ResponseIncompleteStreamingEventTypeEnumKey;
|
|
1549
|
+
/**
|
|
1550
|
+
* @description The sequence number of the event that was emitted.
|
|
1551
|
+
* @type integer
|
|
1552
|
+
*/
|
|
1553
|
+
sequence_number: number;
|
|
1554
|
+
response: ResponseResource & any;
|
|
1555
|
+
};
|
|
1556
|
+
declare const responseOutputItemAddedStreamingEventTypeEnum: {
|
|
1557
|
+
readonly 'response.output_item.added': "response.output_item.added";
|
|
1558
|
+
};
|
|
1559
|
+
type ResponseOutputItemAddedStreamingEventTypeEnumKey = (typeof responseOutputItemAddedStreamingEventTypeEnum)[keyof typeof responseOutputItemAddedStreamingEventTypeEnum];
|
|
1560
|
+
/**
|
|
1561
|
+
* @description A streaming event that indicated an output item was added to the response.
|
|
1562
|
+
*/
|
|
1563
|
+
type ResponseOutputItemAddedStreamingEvent = {
|
|
1564
|
+
/**
|
|
1565
|
+
* @description The type of the event, always `response.output_item.added`.
|
|
1566
|
+
* @default "response.output_item.added"
|
|
1567
|
+
* @type string
|
|
1568
|
+
*/
|
|
1569
|
+
type: ResponseOutputItemAddedStreamingEventTypeEnumKey;
|
|
1570
|
+
/**
|
|
1571
|
+
* @description The sequence number of the event that was emitted.
|
|
1572
|
+
* @type integer
|
|
1573
|
+
*/
|
|
1574
|
+
sequence_number: number;
|
|
1575
|
+
/**
|
|
1576
|
+
* @description The index of the output item that was added.
|
|
1577
|
+
* @type integer
|
|
1578
|
+
*/
|
|
1579
|
+
output_index: number;
|
|
1580
|
+
item: (ItemField & any) | null;
|
|
1581
|
+
};
|
|
1582
|
+
declare const responseOutputItemDoneStreamingEventTypeEnum: {
|
|
1583
|
+
readonly 'response.output_item.done': "response.output_item.done";
|
|
1584
|
+
};
|
|
1585
|
+
type ResponseOutputItemDoneStreamingEventTypeEnumKey = (typeof responseOutputItemDoneStreamingEventTypeEnum)[keyof typeof responseOutputItemDoneStreamingEventTypeEnum];
|
|
1586
|
+
/**
|
|
1587
|
+
* @description A streaming event that indicated an output item was completed.
|
|
1588
|
+
*/
|
|
1589
|
+
type ResponseOutputItemDoneStreamingEvent = {
|
|
1590
|
+
/**
|
|
1591
|
+
* @description The type of the event, always `response.output_item.done`.
|
|
1592
|
+
* @default "response.output_item.done"
|
|
1593
|
+
* @type string
|
|
1594
|
+
*/
|
|
1595
|
+
type: ResponseOutputItemDoneStreamingEventTypeEnumKey;
|
|
1596
|
+
/**
|
|
1597
|
+
* @description The sequence number of the event that was emitted.
|
|
1598
|
+
* @type integer
|
|
1599
|
+
*/
|
|
1600
|
+
sequence_number: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* @description The index of the output item that was completed.
|
|
1603
|
+
* @type integer
|
|
1604
|
+
*/
|
|
1605
|
+
output_index: number;
|
|
1606
|
+
item: (ItemField & any) | null;
|
|
1607
|
+
};
|
|
1608
|
+
declare const responseReasoningSummaryPartAddedStreamingEventTypeEnum: {
|
|
1609
|
+
readonly 'response.reasoning_summary_part.added': "response.reasoning_summary_part.added";
|
|
1610
|
+
};
|
|
1611
|
+
type ResponseReasoningSummaryPartAddedStreamingEventTypeEnumKey = (typeof responseReasoningSummaryPartAddedStreamingEventTypeEnum)[keyof typeof responseReasoningSummaryPartAddedStreamingEventTypeEnum];
|
|
1612
|
+
/**
|
|
1613
|
+
* @description A streaming event that indicated a reasoning summary part was added.
|
|
1614
|
+
*/
|
|
1615
|
+
type ResponseReasoningSummaryPartAddedStreamingEvent = {
|
|
1616
|
+
/**
|
|
1617
|
+
* @description The type of the event, always `response.reasoning_summary_part.added`.
|
|
1618
|
+
* @default "response.reasoning_summary_part.added"
|
|
1619
|
+
* @type string
|
|
1620
|
+
*/
|
|
1621
|
+
type: ResponseReasoningSummaryPartAddedStreamingEventTypeEnumKey;
|
|
1622
|
+
/**
|
|
1623
|
+
* @description The sequence number of the event that was emitted.
|
|
1624
|
+
* @type integer
|
|
1625
|
+
*/
|
|
1626
|
+
sequence_number: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* @description The ID of the item that was updated.
|
|
1629
|
+
* @type string
|
|
1630
|
+
*/
|
|
1631
|
+
item_id: string;
|
|
1632
|
+
/**
|
|
1633
|
+
* @description The index of the output item that was updated.
|
|
1634
|
+
* @type integer
|
|
1635
|
+
*/
|
|
1636
|
+
output_index: number;
|
|
1637
|
+
/**
|
|
1638
|
+
* @description The index of the summary part that was added.
|
|
1639
|
+
* @type integer
|
|
1640
|
+
*/
|
|
1641
|
+
summary_index: number;
|
|
1642
|
+
/**
|
|
1643
|
+
* @description A content part that makes up an input or output item.
|
|
1644
|
+
*/
|
|
1645
|
+
part: (InputTextContent & {
|
|
1646
|
+
type: 'input_text';
|
|
1647
|
+
}) | (OutputTextContent & {
|
|
1648
|
+
type: 'output_text';
|
|
1649
|
+
}) | (TextContent & {
|
|
1650
|
+
type: 'text';
|
|
1651
|
+
}) | (SummaryTextContent & {
|
|
1652
|
+
type: 'summary_text';
|
|
1653
|
+
}) | (ReasoningTextContent & {
|
|
1654
|
+
type: 'reasoning_text';
|
|
1655
|
+
}) | (RefusalContent & {
|
|
1656
|
+
type: 'refusal';
|
|
1657
|
+
}) | (InputImageContent & {
|
|
1658
|
+
type: 'input_image';
|
|
1659
|
+
}) | (InputFileContent & {
|
|
1660
|
+
type: 'input_file';
|
|
1661
|
+
});
|
|
1662
|
+
};
|
|
1663
|
+
declare const responseReasoningSummaryPartDoneStreamingEventTypeEnum: {
|
|
1664
|
+
readonly 'response.reasoning_summary_part.done': "response.reasoning_summary_part.done";
|
|
1665
|
+
};
|
|
1666
|
+
type ResponseReasoningSummaryPartDoneStreamingEventTypeEnumKey = (typeof responseReasoningSummaryPartDoneStreamingEventTypeEnum)[keyof typeof responseReasoningSummaryPartDoneStreamingEventTypeEnum];
|
|
1667
|
+
/**
|
|
1668
|
+
* @description A streaming event that indicated a reasoning summary part was completed.
|
|
1669
|
+
*/
|
|
1670
|
+
type ResponseReasoningSummaryPartDoneStreamingEvent = {
|
|
1671
|
+
/**
|
|
1672
|
+
* @description The type of the event, always `response.reasoning_summary_part.done`.
|
|
1673
|
+
* @default "response.reasoning_summary_part.done"
|
|
1674
|
+
* @type string
|
|
1675
|
+
*/
|
|
1676
|
+
type: ResponseReasoningSummaryPartDoneStreamingEventTypeEnumKey;
|
|
1677
|
+
/**
|
|
1678
|
+
* @description The sequence number of the event that was emitted.
|
|
1679
|
+
* @type integer
|
|
1680
|
+
*/
|
|
1681
|
+
sequence_number: number;
|
|
1682
|
+
/**
|
|
1683
|
+
* @description The ID of the item that was updated.
|
|
1684
|
+
* @type string
|
|
1685
|
+
*/
|
|
1686
|
+
item_id: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* @description The index of the output item that was updated.
|
|
1689
|
+
* @type integer
|
|
1690
|
+
*/
|
|
1691
|
+
output_index: number;
|
|
1692
|
+
/**
|
|
1693
|
+
* @description The index of the summary part that was completed.
|
|
1694
|
+
* @type integer
|
|
1695
|
+
*/
|
|
1696
|
+
summary_index: number;
|
|
1697
|
+
/**
|
|
1698
|
+
* @description A content part that makes up an input or output item.
|
|
1699
|
+
*/
|
|
1700
|
+
part: (InputTextContent & {
|
|
1701
|
+
type: 'input_text';
|
|
1702
|
+
}) | (OutputTextContent & {
|
|
1703
|
+
type: 'output_text';
|
|
1704
|
+
}) | (TextContent & {
|
|
1705
|
+
type: 'text';
|
|
1706
|
+
}) | (SummaryTextContent & {
|
|
1707
|
+
type: 'summary_text';
|
|
1708
|
+
}) | (ReasoningTextContent & {
|
|
1709
|
+
type: 'reasoning_text';
|
|
1710
|
+
}) | (RefusalContent & {
|
|
1711
|
+
type: 'refusal';
|
|
1712
|
+
}) | (InputImageContent & {
|
|
1713
|
+
type: 'input_image';
|
|
1714
|
+
}) | (InputFileContent & {
|
|
1715
|
+
type: 'input_file';
|
|
1716
|
+
});
|
|
1717
|
+
};
|
|
1718
|
+
declare const responseContentPartAddedStreamingEventTypeEnum: {
|
|
1719
|
+
readonly 'response.content_part.added': "response.content_part.added";
|
|
1720
|
+
};
|
|
1721
|
+
type ResponseContentPartAddedStreamingEventTypeEnumKey = (typeof responseContentPartAddedStreamingEventTypeEnum)[keyof typeof responseContentPartAddedStreamingEventTypeEnum];
|
|
1722
|
+
/**
|
|
1723
|
+
* @description A streaming event that indicated a content part was added.
|
|
1724
|
+
*/
|
|
1725
|
+
type ResponseContentPartAddedStreamingEvent = {
|
|
1726
|
+
/**
|
|
1727
|
+
* @description The type of the event, always `response.content_part.added`.
|
|
1728
|
+
* @default "response.content_part.added"
|
|
1729
|
+
* @type string
|
|
1730
|
+
*/
|
|
1731
|
+
type: ResponseContentPartAddedStreamingEventTypeEnumKey;
|
|
1732
|
+
/**
|
|
1733
|
+
* @description The sequence number of the event that was emitted.
|
|
1734
|
+
* @type integer
|
|
1735
|
+
*/
|
|
1736
|
+
sequence_number: number;
|
|
1737
|
+
/**
|
|
1738
|
+
* @description The ID of the item that was updated.
|
|
1739
|
+
* @type string
|
|
1740
|
+
*/
|
|
1741
|
+
item_id: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* @description The index of the output item that was updated.
|
|
1744
|
+
* @type integer
|
|
1745
|
+
*/
|
|
1746
|
+
output_index: number;
|
|
1747
|
+
/**
|
|
1748
|
+
* @description The index of the content part that was added.
|
|
1749
|
+
* @type integer
|
|
1750
|
+
*/
|
|
1751
|
+
content_index: number;
|
|
1752
|
+
/**
|
|
1753
|
+
* @description A content part that makes up an input or output item.
|
|
1754
|
+
*/
|
|
1755
|
+
part: (InputTextContent & {
|
|
1756
|
+
type: 'input_text';
|
|
1757
|
+
}) | (OutputTextContent & {
|
|
1758
|
+
type: 'output_text';
|
|
1759
|
+
}) | (TextContent & {
|
|
1760
|
+
type: 'text';
|
|
1761
|
+
}) | (SummaryTextContent & {
|
|
1762
|
+
type: 'summary_text';
|
|
1763
|
+
}) | (ReasoningTextContent & {
|
|
1764
|
+
type: 'reasoning_text';
|
|
1765
|
+
}) | (RefusalContent & {
|
|
1766
|
+
type: 'refusal';
|
|
1767
|
+
}) | (InputImageContent & {
|
|
1768
|
+
type: 'input_image';
|
|
1769
|
+
}) | (InputFileContent & {
|
|
1770
|
+
type: 'input_file';
|
|
1771
|
+
});
|
|
1772
|
+
};
|
|
1773
|
+
declare const responseContentPartDoneStreamingEventTypeEnum: {
|
|
1774
|
+
readonly 'response.content_part.done': "response.content_part.done";
|
|
1775
|
+
};
|
|
1776
|
+
type ResponseContentPartDoneStreamingEventTypeEnumKey = (typeof responseContentPartDoneStreamingEventTypeEnum)[keyof typeof responseContentPartDoneStreamingEventTypeEnum];
|
|
1777
|
+
/**
|
|
1778
|
+
* @description A streaming event that indicated a content part was completed.
|
|
1779
|
+
*/
|
|
1780
|
+
type ResponseContentPartDoneStreamingEvent = {
|
|
1781
|
+
/**
|
|
1782
|
+
* @description The type of the event, always `response.content_part.done`.
|
|
1783
|
+
* @default "response.content_part.done"
|
|
1784
|
+
* @type string
|
|
1785
|
+
*/
|
|
1786
|
+
type: ResponseContentPartDoneStreamingEventTypeEnumKey;
|
|
1787
|
+
/**
|
|
1788
|
+
* @description The sequence number of the event that was emitted.
|
|
1789
|
+
* @type integer
|
|
1790
|
+
*/
|
|
1791
|
+
sequence_number: number;
|
|
1792
|
+
/**
|
|
1793
|
+
* @description The ID of the item that was updated.
|
|
1794
|
+
* @type string
|
|
1795
|
+
*/
|
|
1796
|
+
item_id: string;
|
|
1797
|
+
/**
|
|
1798
|
+
* @description The index of the output item that was updated.
|
|
1799
|
+
* @type integer
|
|
1800
|
+
*/
|
|
1801
|
+
output_index: number;
|
|
1802
|
+
/**
|
|
1803
|
+
* @description The index of the content part that was completed.
|
|
1804
|
+
* @type integer
|
|
1805
|
+
*/
|
|
1806
|
+
content_index: number;
|
|
1807
|
+
/**
|
|
1808
|
+
* @description A content part that makes up an input or output item.
|
|
1809
|
+
*/
|
|
1810
|
+
part: (InputTextContent & {
|
|
1811
|
+
type: 'input_text';
|
|
1812
|
+
}) | (OutputTextContent & {
|
|
1813
|
+
type: 'output_text';
|
|
1814
|
+
}) | (TextContent & {
|
|
1815
|
+
type: 'text';
|
|
1816
|
+
}) | (SummaryTextContent & {
|
|
1817
|
+
type: 'summary_text';
|
|
1818
|
+
}) | (ReasoningTextContent & {
|
|
1819
|
+
type: 'reasoning_text';
|
|
1820
|
+
}) | (RefusalContent & {
|
|
1821
|
+
type: 'refusal';
|
|
1822
|
+
}) | (InputImageContent & {
|
|
1823
|
+
type: 'input_image';
|
|
1824
|
+
}) | (InputFileContent & {
|
|
1825
|
+
type: 'input_file';
|
|
1826
|
+
});
|
|
1827
|
+
};
|
|
1828
|
+
declare const responseOutputTextDeltaStreamingEventTypeEnum: {
|
|
1829
|
+
readonly 'response.output_text.delta': "response.output_text.delta";
|
|
1830
|
+
};
|
|
1831
|
+
type ResponseOutputTextDeltaStreamingEventTypeEnumKey = (typeof responseOutputTextDeltaStreamingEventTypeEnum)[keyof typeof responseOutputTextDeltaStreamingEventTypeEnum];
|
|
1832
|
+
/**
|
|
1833
|
+
* @description A streaming event that indicated output text was incrementally added.
|
|
1834
|
+
*/
|
|
1835
|
+
type ResponseOutputTextDeltaStreamingEvent = {
|
|
1836
|
+
/**
|
|
1837
|
+
* @description The type of the event, always `response.output_text.delta`.
|
|
1838
|
+
* @default "response.output_text.delta"
|
|
1839
|
+
* @type string
|
|
1840
|
+
*/
|
|
1841
|
+
type: ResponseOutputTextDeltaStreamingEventTypeEnumKey;
|
|
1842
|
+
/**
|
|
1843
|
+
* @description The sequence number of the event that was emitted.
|
|
1844
|
+
* @type integer
|
|
1845
|
+
*/
|
|
1846
|
+
sequence_number: number;
|
|
1847
|
+
/**
|
|
1848
|
+
* @description The ID of the item that was updated.
|
|
1849
|
+
* @type string
|
|
1850
|
+
*/
|
|
1851
|
+
item_id: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* @description The index of the output item that was updated.
|
|
1854
|
+
* @type integer
|
|
1855
|
+
*/
|
|
1856
|
+
output_index: number;
|
|
1857
|
+
/**
|
|
1858
|
+
* @description The index of the content part that was updated.
|
|
1859
|
+
* @type integer
|
|
1860
|
+
*/
|
|
1861
|
+
content_index: number;
|
|
1862
|
+
/**
|
|
1863
|
+
* @description The text delta that was appended.
|
|
1864
|
+
* @type string
|
|
1865
|
+
*/
|
|
1866
|
+
delta: string;
|
|
1867
|
+
/**
|
|
1868
|
+
* @description The token log probabilities that were emitted with the delta, if any.
|
|
1869
|
+
* @type array
|
|
1870
|
+
*/
|
|
1871
|
+
logprobs: Array<LogProb>;
|
|
1872
|
+
/**
|
|
1873
|
+
* @description An obfuscation string that was added to pad the event payload.
|
|
1874
|
+
* @type string | undefined
|
|
1875
|
+
*/
|
|
1876
|
+
obfuscation?: string;
|
|
1877
|
+
};
|
|
1878
|
+
declare const responseOutputTextDoneStreamingEventTypeEnum: {
|
|
1879
|
+
readonly 'response.output_text.done': "response.output_text.done";
|
|
1880
|
+
};
|
|
1881
|
+
type ResponseOutputTextDoneStreamingEventTypeEnumKey = (typeof responseOutputTextDoneStreamingEventTypeEnum)[keyof typeof responseOutputTextDoneStreamingEventTypeEnum];
|
|
1882
|
+
/**
|
|
1883
|
+
* @description A streaming event that indicated output text was completed.
|
|
1884
|
+
*/
|
|
1885
|
+
type ResponseOutputTextDoneStreamingEvent = {
|
|
1886
|
+
/**
|
|
1887
|
+
* @description The type of the event, always `response.output_text.done`.
|
|
1888
|
+
* @default "response.output_text.done"
|
|
1889
|
+
* @type string
|
|
1890
|
+
*/
|
|
1891
|
+
type: ResponseOutputTextDoneStreamingEventTypeEnumKey;
|
|
1892
|
+
/**
|
|
1893
|
+
* @description The sequence number of the event that was emitted.
|
|
1894
|
+
* @type integer
|
|
1895
|
+
*/
|
|
1896
|
+
sequence_number: number;
|
|
1897
|
+
/**
|
|
1898
|
+
* @description The ID of the item that was updated.
|
|
1899
|
+
* @type string
|
|
1900
|
+
*/
|
|
1901
|
+
item_id: string;
|
|
1902
|
+
/**
|
|
1903
|
+
* @description The index of the output item that was updated.
|
|
1904
|
+
* @type integer
|
|
1905
|
+
*/
|
|
1906
|
+
output_index: number;
|
|
1907
|
+
/**
|
|
1908
|
+
* @description The index of the content part that was completed.
|
|
1909
|
+
* @type integer
|
|
1910
|
+
*/
|
|
1911
|
+
content_index: number;
|
|
1912
|
+
/**
|
|
1913
|
+
* @description The final text that was emitted.
|
|
1914
|
+
* @type string
|
|
1915
|
+
*/
|
|
1916
|
+
text: string;
|
|
1917
|
+
/**
|
|
1918
|
+
* @description The token log probabilities that were emitted with the final text, if any.
|
|
1919
|
+
* @type array
|
|
1920
|
+
*/
|
|
1921
|
+
logprobs: Array<LogProb>;
|
|
1922
|
+
};
|
|
1923
|
+
declare const responseRefusalDeltaStreamingEventTypeEnum: {
|
|
1924
|
+
readonly 'response.refusal.delta': "response.refusal.delta";
|
|
1925
|
+
};
|
|
1926
|
+
type ResponseRefusalDeltaStreamingEventTypeEnumKey = (typeof responseRefusalDeltaStreamingEventTypeEnum)[keyof typeof responseRefusalDeltaStreamingEventTypeEnum];
|
|
1927
|
+
/**
|
|
1928
|
+
* @description A streaming event that indicated refusal text was incrementally added.
|
|
1929
|
+
*/
|
|
1930
|
+
type ResponseRefusalDeltaStreamingEvent = {
|
|
1931
|
+
/**
|
|
1932
|
+
* @description The type of the event, always `response.refusal.delta`.
|
|
1933
|
+
* @default "response.refusal.delta"
|
|
1934
|
+
* @type string
|
|
1935
|
+
*/
|
|
1936
|
+
type: ResponseRefusalDeltaStreamingEventTypeEnumKey;
|
|
1937
|
+
/**
|
|
1938
|
+
* @description The sequence number of the event that was emitted.
|
|
1939
|
+
* @type integer
|
|
1940
|
+
*/
|
|
1941
|
+
sequence_number: number;
|
|
1942
|
+
/**
|
|
1943
|
+
* @description The ID of the item that was updated.
|
|
1944
|
+
* @type string
|
|
1945
|
+
*/
|
|
1946
|
+
item_id: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* @description The index of the output item that was updated.
|
|
1949
|
+
* @type integer
|
|
1950
|
+
*/
|
|
1951
|
+
output_index: number;
|
|
1952
|
+
/**
|
|
1953
|
+
* @description The index of the refusal content that was updated.
|
|
1954
|
+
* @type integer
|
|
1955
|
+
*/
|
|
1956
|
+
content_index: number;
|
|
1957
|
+
/**
|
|
1958
|
+
* @description The refusal text delta that was appended.
|
|
1959
|
+
* @type string
|
|
1960
|
+
*/
|
|
1961
|
+
delta: string;
|
|
1962
|
+
};
|
|
1963
|
+
declare const responseRefusalDoneStreamingEventTypeEnum: {
|
|
1964
|
+
readonly 'response.refusal.done': "response.refusal.done";
|
|
1965
|
+
};
|
|
1966
|
+
type ResponseRefusalDoneStreamingEventTypeEnumKey = (typeof responseRefusalDoneStreamingEventTypeEnum)[keyof typeof responseRefusalDoneStreamingEventTypeEnum];
|
|
1967
|
+
/**
|
|
1968
|
+
* @description A streaming event that indicated refusal text was completed.
|
|
1969
|
+
*/
|
|
1970
|
+
type ResponseRefusalDoneStreamingEvent = {
|
|
1971
|
+
/**
|
|
1972
|
+
* @description The type of the event, always `response.refusal.done`.
|
|
1973
|
+
* @default "response.refusal.done"
|
|
1974
|
+
* @type string
|
|
1975
|
+
*/
|
|
1976
|
+
type: ResponseRefusalDoneStreamingEventTypeEnumKey;
|
|
1977
|
+
/**
|
|
1978
|
+
* @description The sequence number of the event that was emitted.
|
|
1979
|
+
* @type integer
|
|
1980
|
+
*/
|
|
1981
|
+
sequence_number: number;
|
|
1982
|
+
/**
|
|
1983
|
+
* @description The ID of the item that was updated.
|
|
1984
|
+
* @type string
|
|
1985
|
+
*/
|
|
1986
|
+
item_id: string;
|
|
1987
|
+
/**
|
|
1988
|
+
* @description The index of the output item that was updated.
|
|
1989
|
+
* @type integer
|
|
1990
|
+
*/
|
|
1991
|
+
output_index: number;
|
|
1992
|
+
/**
|
|
1993
|
+
* @description The index of the refusal content that was completed.
|
|
1994
|
+
* @type integer
|
|
1995
|
+
*/
|
|
1996
|
+
content_index: number;
|
|
1997
|
+
/**
|
|
1998
|
+
* @description The final refusal text that was emitted.
|
|
1999
|
+
* @type string
|
|
2000
|
+
*/
|
|
2001
|
+
refusal: string;
|
|
2002
|
+
};
|
|
2003
|
+
declare const responseReasoningDeltaStreamingEventTypeEnum: {
|
|
2004
|
+
readonly 'response.reasoning.delta': "response.reasoning.delta";
|
|
2005
|
+
};
|
|
2006
|
+
type ResponseReasoningDeltaStreamingEventTypeEnumKey = (typeof responseReasoningDeltaStreamingEventTypeEnum)[keyof typeof responseReasoningDeltaStreamingEventTypeEnum];
|
|
2007
|
+
/**
|
|
2008
|
+
* @description A streaming event that indicated reasoning text was incrementally added.
|
|
2009
|
+
*/
|
|
2010
|
+
type ResponseReasoningDeltaStreamingEvent = {
|
|
2011
|
+
/**
|
|
2012
|
+
* @description The type of the event, always `response.reasoning.delta`.
|
|
2013
|
+
* @default "response.reasoning.delta"
|
|
2014
|
+
* @type string
|
|
2015
|
+
*/
|
|
2016
|
+
type: ResponseReasoningDeltaStreamingEventTypeEnumKey;
|
|
2017
|
+
/**
|
|
2018
|
+
* @description The sequence number of the event that was emitted.
|
|
2019
|
+
* @type integer
|
|
2020
|
+
*/
|
|
2021
|
+
sequence_number: number;
|
|
2022
|
+
/**
|
|
2023
|
+
* @description The ID of the item that was updated.
|
|
2024
|
+
* @type string
|
|
2025
|
+
*/
|
|
2026
|
+
item_id: string;
|
|
2027
|
+
/**
|
|
2028
|
+
* @description The index of the output item that was updated.
|
|
2029
|
+
* @type integer
|
|
2030
|
+
*/
|
|
2031
|
+
output_index: number;
|
|
2032
|
+
/**
|
|
2033
|
+
* @description The index of the reasoning content that was updated.
|
|
2034
|
+
* @type integer
|
|
2035
|
+
*/
|
|
2036
|
+
content_index: number;
|
|
2037
|
+
/**
|
|
2038
|
+
* @description The reasoning text delta that was appended.
|
|
2039
|
+
* @type string
|
|
2040
|
+
*/
|
|
2041
|
+
delta: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* @description An obfuscation string that was added to pad the event payload.
|
|
2044
|
+
* @type string | undefined
|
|
2045
|
+
*/
|
|
2046
|
+
obfuscation?: string;
|
|
2047
|
+
};
|
|
2048
|
+
declare const responseReasoningDoneStreamingEventTypeEnum: {
|
|
2049
|
+
readonly 'response.reasoning.done': "response.reasoning.done";
|
|
2050
|
+
};
|
|
2051
|
+
type ResponseReasoningDoneStreamingEventTypeEnumKey = (typeof responseReasoningDoneStreamingEventTypeEnum)[keyof typeof responseReasoningDoneStreamingEventTypeEnum];
|
|
2052
|
+
/**
|
|
2053
|
+
* @description A streaming event that indicated reasoning text was completed.
|
|
2054
|
+
*/
|
|
2055
|
+
type ResponseReasoningDoneStreamingEvent = {
|
|
2056
|
+
/**
|
|
2057
|
+
* @description The type of the event, always `response.reasoning.done`.
|
|
2058
|
+
* @default "response.reasoning.done"
|
|
2059
|
+
* @type string
|
|
2060
|
+
*/
|
|
2061
|
+
type: ResponseReasoningDoneStreamingEventTypeEnumKey;
|
|
2062
|
+
/**
|
|
2063
|
+
* @description The sequence number of the event that was emitted.
|
|
2064
|
+
* @type integer
|
|
2065
|
+
*/
|
|
2066
|
+
sequence_number: number;
|
|
2067
|
+
/**
|
|
2068
|
+
* @description The ID of the item that was updated.
|
|
2069
|
+
* @type string
|
|
2070
|
+
*/
|
|
2071
|
+
item_id: string;
|
|
2072
|
+
/**
|
|
2073
|
+
* @description The index of the output item that was updated.
|
|
2074
|
+
* @type integer
|
|
2075
|
+
*/
|
|
2076
|
+
output_index: number;
|
|
2077
|
+
/**
|
|
2078
|
+
* @description The index of the reasoning content that was completed.
|
|
2079
|
+
* @type integer
|
|
2080
|
+
*/
|
|
2081
|
+
content_index: number;
|
|
2082
|
+
/**
|
|
2083
|
+
* @description The final reasoning text that was emitted.
|
|
2084
|
+
* @type string
|
|
2085
|
+
*/
|
|
2086
|
+
text: string;
|
|
2087
|
+
};
|
|
2088
|
+
declare const responseReasoningSummaryDeltaStreamingEventTypeEnum: {
|
|
2089
|
+
readonly 'response.reasoning_summary_text.delta': "response.reasoning_summary_text.delta";
|
|
2090
|
+
};
|
|
2091
|
+
type ResponseReasoningSummaryDeltaStreamingEventTypeEnumKey = (typeof responseReasoningSummaryDeltaStreamingEventTypeEnum)[keyof typeof responseReasoningSummaryDeltaStreamingEventTypeEnum];
|
|
2092
|
+
/**
|
|
2093
|
+
* @description A streaming event that indicated a reasoning summary was incrementally added.
|
|
2094
|
+
*/
|
|
2095
|
+
type ResponseReasoningSummaryDeltaStreamingEvent = {
|
|
2096
|
+
/**
|
|
2097
|
+
* @description The type of the event, always `response.reasoning_summary.delta`.
|
|
2098
|
+
* @default "response.reasoning_summary_text.delta"
|
|
2099
|
+
* @type string
|
|
2100
|
+
*/
|
|
2101
|
+
type: ResponseReasoningSummaryDeltaStreamingEventTypeEnumKey;
|
|
2102
|
+
/**
|
|
2103
|
+
* @description The sequence number of the event that was emitted.
|
|
2104
|
+
* @type integer
|
|
2105
|
+
*/
|
|
2106
|
+
sequence_number: number;
|
|
2107
|
+
/**
|
|
2108
|
+
* @description The ID of the item that was updated.
|
|
2109
|
+
* @type string
|
|
2110
|
+
*/
|
|
2111
|
+
item_id: string;
|
|
2112
|
+
/**
|
|
2113
|
+
* @description The index of the output item that was updated.
|
|
2114
|
+
* @type integer
|
|
2115
|
+
*/
|
|
2116
|
+
output_index: number;
|
|
2117
|
+
/**
|
|
2118
|
+
* @description The index of the summary content that was updated.
|
|
2119
|
+
* @type integer
|
|
2120
|
+
*/
|
|
2121
|
+
summary_index: number;
|
|
2122
|
+
/**
|
|
2123
|
+
* @description The summary text delta that was appended.
|
|
2124
|
+
* @type string
|
|
2125
|
+
*/
|
|
2126
|
+
delta: string;
|
|
2127
|
+
/**
|
|
2128
|
+
* @description An obfuscation string that was added to pad the event payload.
|
|
2129
|
+
* @type string | undefined
|
|
2130
|
+
*/
|
|
2131
|
+
obfuscation?: string;
|
|
2132
|
+
};
|
|
2133
|
+
declare const responseReasoningSummaryDoneStreamingEventTypeEnum: {
|
|
2134
|
+
readonly 'response.reasoning_summary_text.done': "response.reasoning_summary_text.done";
|
|
2135
|
+
};
|
|
2136
|
+
type ResponseReasoningSummaryDoneStreamingEventTypeEnumKey = (typeof responseReasoningSummaryDoneStreamingEventTypeEnum)[keyof typeof responseReasoningSummaryDoneStreamingEventTypeEnum];
|
|
2137
|
+
/**
|
|
2138
|
+
* @description A streaming event that indicated a reasoning summary was completed.
|
|
2139
|
+
*/
|
|
2140
|
+
type ResponseReasoningSummaryDoneStreamingEvent = {
|
|
2141
|
+
/**
|
|
2142
|
+
* @description The type of the event, always `response.reasoning_summary.done`.
|
|
2143
|
+
* @default "response.reasoning_summary_text.done"
|
|
2144
|
+
* @type string
|
|
2145
|
+
*/
|
|
2146
|
+
type: ResponseReasoningSummaryDoneStreamingEventTypeEnumKey;
|
|
2147
|
+
/**
|
|
2148
|
+
* @description The sequence number of the event that was emitted.
|
|
2149
|
+
* @type integer
|
|
2150
|
+
*/
|
|
2151
|
+
sequence_number: number;
|
|
2152
|
+
/**
|
|
2153
|
+
* @description The ID of the item that was updated.
|
|
2154
|
+
* @type string
|
|
2155
|
+
*/
|
|
2156
|
+
item_id: string;
|
|
2157
|
+
/**
|
|
2158
|
+
* @description The index of the output item that was updated.
|
|
2159
|
+
* @type integer
|
|
2160
|
+
*/
|
|
2161
|
+
output_index: number;
|
|
2162
|
+
/**
|
|
2163
|
+
* @description The index of the summary content that was completed.
|
|
2164
|
+
* @type integer
|
|
2165
|
+
*/
|
|
2166
|
+
summary_index: number;
|
|
2167
|
+
/**
|
|
2168
|
+
* @description The final summary text that was emitted.
|
|
2169
|
+
* @type string
|
|
2170
|
+
*/
|
|
2171
|
+
text: string;
|
|
2172
|
+
};
|
|
2173
|
+
declare const responseOutputTextAnnotationAddedStreamingEventTypeEnum: {
|
|
2174
|
+
readonly 'response.output_text.annotation.added': "response.output_text.annotation.added";
|
|
2175
|
+
};
|
|
2176
|
+
type ResponseOutputTextAnnotationAddedStreamingEventTypeEnumKey = (typeof responseOutputTextAnnotationAddedStreamingEventTypeEnum)[keyof typeof responseOutputTextAnnotationAddedStreamingEventTypeEnum];
|
|
2177
|
+
/**
|
|
2178
|
+
* @description A streaming event that indicated an output text annotation was added.
|
|
2179
|
+
*/
|
|
2180
|
+
type ResponseOutputTextAnnotationAddedStreamingEvent = {
|
|
2181
|
+
/**
|
|
2182
|
+
* @description The type of the event, always `response.output_text.annotation.added`.
|
|
2183
|
+
* @default "response.output_text.annotation.added"
|
|
2184
|
+
* @type string
|
|
2185
|
+
*/
|
|
2186
|
+
type: ResponseOutputTextAnnotationAddedStreamingEventTypeEnumKey;
|
|
2187
|
+
/**
|
|
2188
|
+
* @description The sequence number of the event that was emitted.
|
|
2189
|
+
* @type integer
|
|
2190
|
+
*/
|
|
2191
|
+
sequence_number: number;
|
|
2192
|
+
/**
|
|
2193
|
+
* @description The ID of the item that was updated.
|
|
2194
|
+
* @type string
|
|
2195
|
+
*/
|
|
2196
|
+
item_id: string;
|
|
2197
|
+
/**
|
|
2198
|
+
* @description The index of the output item that was updated.
|
|
2199
|
+
* @type integer
|
|
2200
|
+
*/
|
|
2201
|
+
output_index: number;
|
|
2202
|
+
/**
|
|
2203
|
+
* @description The index of the output text content that was updated.
|
|
2204
|
+
* @type integer
|
|
2205
|
+
*/
|
|
2206
|
+
content_index: number;
|
|
2207
|
+
/**
|
|
2208
|
+
* @description The index of the annotation that was added.
|
|
2209
|
+
* @type integer
|
|
2210
|
+
*/
|
|
2211
|
+
annotation_index: number;
|
|
2212
|
+
annotation: (Annotation & any) | null;
|
|
2213
|
+
};
|
|
2214
|
+
declare const responseFunctionCallArgumentsDeltaStreamingEventTypeEnum: {
|
|
2215
|
+
readonly 'response.function_call_arguments.delta': "response.function_call_arguments.delta";
|
|
2216
|
+
};
|
|
2217
|
+
type ResponseFunctionCallArgumentsDeltaStreamingEventTypeEnumKey = (typeof responseFunctionCallArgumentsDeltaStreamingEventTypeEnum)[keyof typeof responseFunctionCallArgumentsDeltaStreamingEventTypeEnum];
|
|
2218
|
+
/**
|
|
2219
|
+
* @description A streaming event that indicated function call arguments were incrementally added.
|
|
2220
|
+
*/
|
|
2221
|
+
type ResponseFunctionCallArgumentsDeltaStreamingEvent = {
|
|
2222
|
+
/**
|
|
2223
|
+
* @description The type of the event, always `response.function_call_arguments.delta`.
|
|
2224
|
+
* @default "response.function_call_arguments.delta"
|
|
2225
|
+
* @type string
|
|
2226
|
+
*/
|
|
2227
|
+
type: ResponseFunctionCallArgumentsDeltaStreamingEventTypeEnumKey;
|
|
2228
|
+
/**
|
|
2229
|
+
* @description The sequence number of the event that was emitted.
|
|
2230
|
+
* @type integer
|
|
2231
|
+
*/
|
|
2232
|
+
sequence_number: number;
|
|
2233
|
+
/**
|
|
2234
|
+
* @description The ID of the tool call item that was updated.
|
|
2235
|
+
* @type string
|
|
2236
|
+
*/
|
|
2237
|
+
item_id: string;
|
|
2238
|
+
/**
|
|
2239
|
+
* @description The index of the output item that was updated.
|
|
2240
|
+
* @type integer
|
|
2241
|
+
*/
|
|
2242
|
+
output_index: number;
|
|
2243
|
+
/**
|
|
2244
|
+
* @description The arguments delta that was appended.
|
|
2245
|
+
* @type string
|
|
2246
|
+
*/
|
|
2247
|
+
delta: string;
|
|
2248
|
+
/**
|
|
2249
|
+
* @description An obfuscation string that was added to pad the event payload.
|
|
2250
|
+
* @type string | undefined
|
|
2251
|
+
*/
|
|
2252
|
+
obfuscation?: string;
|
|
2253
|
+
};
|
|
2254
|
+
declare const responseFunctionCallArgumentsDoneStreamingEventTypeEnum: {
|
|
2255
|
+
readonly 'response.function_call_arguments.done': "response.function_call_arguments.done";
|
|
2256
|
+
};
|
|
2257
|
+
type ResponseFunctionCallArgumentsDoneStreamingEventTypeEnumKey = (typeof responseFunctionCallArgumentsDoneStreamingEventTypeEnum)[keyof typeof responseFunctionCallArgumentsDoneStreamingEventTypeEnum];
|
|
2258
|
+
/**
|
|
2259
|
+
* @description A streaming event that indicated function call arguments were completed.
|
|
2260
|
+
*/
|
|
2261
|
+
type ResponseFunctionCallArgumentsDoneStreamingEvent = {
|
|
2262
|
+
/**
|
|
2263
|
+
* @description The type of the event, always `response.function_call_arguments.done`.
|
|
2264
|
+
* @default "response.function_call_arguments.done"
|
|
2265
|
+
* @type string
|
|
2266
|
+
*/
|
|
2267
|
+
type: ResponseFunctionCallArgumentsDoneStreamingEventTypeEnumKey;
|
|
2268
|
+
/**
|
|
2269
|
+
* @description The sequence number of the event that was emitted.
|
|
2270
|
+
* @type integer
|
|
2271
|
+
*/
|
|
2272
|
+
sequence_number: number;
|
|
2273
|
+
/**
|
|
2274
|
+
* @description The ID of the tool call item that was updated.
|
|
2275
|
+
* @type string
|
|
2276
|
+
*/
|
|
2277
|
+
item_id: string;
|
|
2278
|
+
/**
|
|
2279
|
+
* @description The index of the output item that was updated.
|
|
2280
|
+
* @type integer
|
|
2281
|
+
*/
|
|
2282
|
+
output_index: number;
|
|
2283
|
+
/**
|
|
2284
|
+
* @description The final arguments string that was emitted.
|
|
2285
|
+
* @type string
|
|
2286
|
+
*/
|
|
2287
|
+
arguments: string;
|
|
2288
|
+
};
|
|
2289
|
+
/**
|
|
2290
|
+
* @description An error payload that was emitted for a streaming error event.
|
|
2291
|
+
*/
|
|
2292
|
+
type ErrorPayload = {
|
|
2293
|
+
/**
|
|
2294
|
+
* @description The error type that was emitted.
|
|
2295
|
+
* @type string
|
|
2296
|
+
*/
|
|
2297
|
+
type: string;
|
|
2298
|
+
code: string | null;
|
|
2299
|
+
/**
|
|
2300
|
+
* @description The human-readable error message that was emitted.
|
|
2301
|
+
* @type string
|
|
2302
|
+
*/
|
|
2303
|
+
message: string;
|
|
2304
|
+
param: string | null;
|
|
2305
|
+
/**
|
|
2306
|
+
* @description The response headers that were emitted with the error, if any.
|
|
2307
|
+
* @type object | undefined
|
|
2308
|
+
*/
|
|
2309
|
+
headers?: {
|
|
2310
|
+
[key: string]: string;
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
2313
|
+
declare const errorStreamingEventTypeEnum: {
|
|
2314
|
+
readonly error: "error";
|
|
2315
|
+
};
|
|
2316
|
+
type ErrorStreamingEventTypeEnumKey = (typeof errorStreamingEventTypeEnum)[keyof typeof errorStreamingEventTypeEnum];
|
|
2317
|
+
/**
|
|
2318
|
+
* @description A streaming event that indicated an error was emitted.
|
|
2319
|
+
*/
|
|
2320
|
+
type ErrorStreamingEvent = {
|
|
2321
|
+
/**
|
|
2322
|
+
* @description The type of the event, always `error`.
|
|
2323
|
+
* @default "error"
|
|
2324
|
+
* @type string
|
|
2325
|
+
*/
|
|
2326
|
+
type: ErrorStreamingEventTypeEnumKey;
|
|
2327
|
+
/**
|
|
2328
|
+
* @description The sequence number of the event that was emitted.
|
|
2329
|
+
* @type integer
|
|
2330
|
+
*/
|
|
2331
|
+
sequence_number: number;
|
|
2332
|
+
error: ErrorPayload & any;
|
|
2333
|
+
};
|
|
2334
|
+
/**
|
|
2335
|
+
* @description Success
|
|
2336
|
+
* @example [object Object]
|
|
2337
|
+
*/
|
|
2338
|
+
type Createresponse200 = ResponseResource;
|
|
2339
|
+
type CreateresponseMutationRequest = CreateResponseBody;
|
|
2340
|
+
type CreateresponseMutationResponse = Createresponse200;
|
|
2341
|
+
type CreateresponseMutation = {
|
|
2342
|
+
Response: Createresponse200;
|
|
2343
|
+
Request: CreateresponseMutationRequest;
|
|
2344
|
+
Errors: any;
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2347
|
+
type types_AllowedToolChoice = AllowedToolChoice;
|
|
2348
|
+
type types_AllowedToolChoiceTypeEnumKey = AllowedToolChoiceTypeEnumKey;
|
|
2349
|
+
type types_AllowedToolsParam = AllowedToolsParam;
|
|
2350
|
+
type types_AllowedToolsParamTypeEnumKey = AllowedToolsParamTypeEnumKey;
|
|
2351
|
+
type types_Annotation = Annotation;
|
|
2352
|
+
type types_AssistantMessageItemParam = AssistantMessageItemParam;
|
|
2353
|
+
type types_AssistantMessageItemParamRoleEnumKey = AssistantMessageItemParamRoleEnumKey;
|
|
2354
|
+
type types_AssistantMessageItemParamTypeEnumKey = AssistantMessageItemParamTypeEnumKey;
|
|
2355
|
+
type types_CreateResponseBody = CreateResponseBody;
|
|
2356
|
+
type types_Createresponse200 = Createresponse200;
|
|
2357
|
+
type types_CreateresponseMutation = CreateresponseMutation;
|
|
2358
|
+
type types_CreateresponseMutationRequest = CreateresponseMutationRequest;
|
|
2359
|
+
type types_CreateresponseMutationResponse = CreateresponseMutationResponse;
|
|
2360
|
+
type types_DetailEnum = DetailEnum;
|
|
2361
|
+
type types_DetailEnumEnumKey = DetailEnumEnumKey;
|
|
2362
|
+
type types_DeveloperMessageItemParam = DeveloperMessageItemParam;
|
|
2363
|
+
type types_DeveloperMessageItemParamRoleEnumKey = DeveloperMessageItemParamRoleEnumKey;
|
|
2364
|
+
type types_DeveloperMessageItemParamTypeEnumKey = DeveloperMessageItemParamTypeEnumKey;
|
|
2365
|
+
type types_EmptyModelParam = EmptyModelParam;
|
|
2366
|
+
type types_Error = Error;
|
|
2367
|
+
type types_ErrorPayload = ErrorPayload;
|
|
2368
|
+
type types_ErrorStreamingEvent = ErrorStreamingEvent;
|
|
2369
|
+
type types_ErrorStreamingEventTypeEnumKey = ErrorStreamingEventTypeEnumKey;
|
|
2370
|
+
type types_FunctionCall = FunctionCall;
|
|
2371
|
+
type types_FunctionCallItemParam = FunctionCallItemParam;
|
|
2372
|
+
type types_FunctionCallItemParamTypeEnumKey = FunctionCallItemParamTypeEnumKey;
|
|
2373
|
+
type types_FunctionCallItemStatus = FunctionCallItemStatus;
|
|
2374
|
+
type types_FunctionCallItemStatusEnumKey = FunctionCallItemStatusEnumKey;
|
|
2375
|
+
type types_FunctionCallOutput = FunctionCallOutput;
|
|
2376
|
+
type types_FunctionCallOutputItemParam = FunctionCallOutputItemParam;
|
|
2377
|
+
type types_FunctionCallOutputItemParamTypeEnumKey = FunctionCallOutputItemParamTypeEnumKey;
|
|
2378
|
+
type types_FunctionCallOutputStatusEnum = FunctionCallOutputStatusEnum;
|
|
2379
|
+
type types_FunctionCallOutputStatusEnumEnumKey = FunctionCallOutputStatusEnumEnumKey;
|
|
2380
|
+
type types_FunctionCallOutputTypeEnumKey = FunctionCallOutputTypeEnumKey;
|
|
2381
|
+
type types_FunctionCallStatus = FunctionCallStatus;
|
|
2382
|
+
type types_FunctionCallStatusEnumKey = FunctionCallStatusEnumKey;
|
|
2383
|
+
type types_FunctionCallTypeEnumKey = FunctionCallTypeEnumKey;
|
|
2384
|
+
type types_FunctionTool = FunctionTool;
|
|
2385
|
+
type types_FunctionToolChoice = FunctionToolChoice;
|
|
2386
|
+
type types_FunctionToolChoiceTypeEnumKey = FunctionToolChoiceTypeEnumKey;
|
|
2387
|
+
type types_FunctionToolParam = FunctionToolParam;
|
|
2388
|
+
type types_FunctionToolParamTypeEnumKey = FunctionToolParamTypeEnumKey;
|
|
2389
|
+
type types_FunctionToolTypeEnumKey = FunctionToolTypeEnumKey;
|
|
2390
|
+
type types_ImageDetail = ImageDetail;
|
|
2391
|
+
type types_ImageDetailEnumKey = ImageDetailEnumKey;
|
|
2392
|
+
type types_IncludeEnum = IncludeEnum;
|
|
2393
|
+
type types_IncludeEnumEnumKey = IncludeEnumEnumKey;
|
|
2394
|
+
type types_IncompleteDetails = IncompleteDetails;
|
|
2395
|
+
type types_InputFileContent = InputFileContent;
|
|
2396
|
+
type types_InputFileContentParam = InputFileContentParam;
|
|
2397
|
+
type types_InputFileContentParamTypeEnumKey = InputFileContentParamTypeEnumKey;
|
|
2398
|
+
type types_InputFileContentTypeEnumKey = InputFileContentTypeEnumKey;
|
|
2399
|
+
type types_InputImageContent = InputImageContent;
|
|
2400
|
+
type types_InputImageContentParamAutoParam = InputImageContentParamAutoParam;
|
|
2401
|
+
type types_InputImageContentParamAutoParamTypeEnumKey = InputImageContentParamAutoParamTypeEnumKey;
|
|
2402
|
+
type types_InputImageContentTypeEnumKey = InputImageContentTypeEnumKey;
|
|
2403
|
+
type types_InputTextContent = InputTextContent;
|
|
2404
|
+
type types_InputTextContentParam = InputTextContentParam;
|
|
2405
|
+
type types_InputTextContentParamTypeEnumKey = InputTextContentParamTypeEnumKey;
|
|
2406
|
+
type types_InputTextContentTypeEnumKey = InputTextContentTypeEnumKey;
|
|
2407
|
+
type types_InputTokensDetails = InputTokensDetails;
|
|
2408
|
+
type types_InputVideoContent = InputVideoContent;
|
|
2409
|
+
type types_InputVideoContentTypeEnumKey = InputVideoContentTypeEnumKey;
|
|
2410
|
+
type types_ItemField = ItemField;
|
|
2411
|
+
type types_ItemParam = ItemParam;
|
|
2412
|
+
type types_ItemReferenceParam = ItemReferenceParam;
|
|
2413
|
+
type types_ItemReferenceParamTypeEnumKey = ItemReferenceParamTypeEnumKey;
|
|
2414
|
+
type types_JsonObjectResponseFormat = JsonObjectResponseFormat;
|
|
2415
|
+
type types_JsonObjectResponseFormatTypeEnumKey = JsonObjectResponseFormatTypeEnumKey;
|
|
2416
|
+
type types_JsonSchemaResponseFormat = JsonSchemaResponseFormat;
|
|
2417
|
+
type types_JsonSchemaResponseFormatParam = JsonSchemaResponseFormatParam;
|
|
2418
|
+
type types_JsonSchemaResponseFormatParamTypeEnumKey = JsonSchemaResponseFormatParamTypeEnumKey;
|
|
2419
|
+
type types_JsonSchemaResponseFormatTypeEnumKey = JsonSchemaResponseFormatTypeEnumKey;
|
|
2420
|
+
type types_LogProb = LogProb;
|
|
2421
|
+
type types_Message = Message;
|
|
2422
|
+
type types_MessageRole = MessageRole;
|
|
2423
|
+
type types_MessageRoleEnumKey = MessageRoleEnumKey;
|
|
2424
|
+
type types_MessageStatus = MessageStatus;
|
|
2425
|
+
type types_MessageStatusEnumKey = MessageStatusEnumKey;
|
|
2426
|
+
type types_MessageTypeEnumKey = MessageTypeEnumKey;
|
|
2427
|
+
type types_MetadataParam = MetadataParam;
|
|
2428
|
+
type types_OutputTextContent = OutputTextContent;
|
|
2429
|
+
type types_OutputTextContentParam = OutputTextContentParam;
|
|
2430
|
+
type types_OutputTextContentParamTypeEnumKey = OutputTextContentParamTypeEnumKey;
|
|
2431
|
+
type types_OutputTextContentTypeEnumKey = OutputTextContentTypeEnumKey;
|
|
2432
|
+
type types_OutputTokensDetails = OutputTokensDetails;
|
|
2433
|
+
type types_Reasoning = Reasoning;
|
|
2434
|
+
type types_ReasoningBody = ReasoningBody;
|
|
2435
|
+
type types_ReasoningBodyTypeEnumKey = ReasoningBodyTypeEnumKey;
|
|
2436
|
+
type types_ReasoningEffortEnum = ReasoningEffortEnum;
|
|
2437
|
+
type types_ReasoningEffortEnumEnumKey = ReasoningEffortEnumEnumKey;
|
|
2438
|
+
type types_ReasoningItemParam = ReasoningItemParam;
|
|
2439
|
+
type types_ReasoningItemParamTypeEnumKey = ReasoningItemParamTypeEnumKey;
|
|
2440
|
+
type types_ReasoningParam = ReasoningParam;
|
|
2441
|
+
type types_ReasoningSummaryContentParam = ReasoningSummaryContentParam;
|
|
2442
|
+
type types_ReasoningSummaryContentParamTypeEnumKey = ReasoningSummaryContentParamTypeEnumKey;
|
|
2443
|
+
type types_ReasoningSummaryEnum = ReasoningSummaryEnum;
|
|
2444
|
+
type types_ReasoningSummaryEnumEnumKey = ReasoningSummaryEnumEnumKey;
|
|
2445
|
+
type types_ReasoningTextContent = ReasoningTextContent;
|
|
2446
|
+
type types_ReasoningTextContentTypeEnumKey = ReasoningTextContentTypeEnumKey;
|
|
2447
|
+
type types_RefusalContent = RefusalContent;
|
|
2448
|
+
type types_RefusalContentParam = RefusalContentParam;
|
|
2449
|
+
type types_RefusalContentParamTypeEnumKey = RefusalContentParamTypeEnumKey;
|
|
2450
|
+
type types_RefusalContentTypeEnumKey = RefusalContentTypeEnumKey;
|
|
2451
|
+
type types_ResponseCompletedStreamingEvent = ResponseCompletedStreamingEvent;
|
|
2452
|
+
type types_ResponseCompletedStreamingEventTypeEnumKey = ResponseCompletedStreamingEventTypeEnumKey;
|
|
2453
|
+
type types_ResponseContentPartAddedStreamingEvent = ResponseContentPartAddedStreamingEvent;
|
|
2454
|
+
type types_ResponseContentPartAddedStreamingEventTypeEnumKey = ResponseContentPartAddedStreamingEventTypeEnumKey;
|
|
2455
|
+
type types_ResponseContentPartDoneStreamingEvent = ResponseContentPartDoneStreamingEvent;
|
|
2456
|
+
type types_ResponseContentPartDoneStreamingEventTypeEnumKey = ResponseContentPartDoneStreamingEventTypeEnumKey;
|
|
2457
|
+
type types_ResponseCreatedStreamingEvent = ResponseCreatedStreamingEvent;
|
|
2458
|
+
type types_ResponseCreatedStreamingEventTypeEnumKey = ResponseCreatedStreamingEventTypeEnumKey;
|
|
2459
|
+
type types_ResponseFailedStreamingEvent = ResponseFailedStreamingEvent;
|
|
2460
|
+
type types_ResponseFailedStreamingEventTypeEnumKey = ResponseFailedStreamingEventTypeEnumKey;
|
|
2461
|
+
type types_ResponseFunctionCallArgumentsDeltaStreamingEvent = ResponseFunctionCallArgumentsDeltaStreamingEvent;
|
|
2462
|
+
type types_ResponseFunctionCallArgumentsDeltaStreamingEventTypeEnumKey = ResponseFunctionCallArgumentsDeltaStreamingEventTypeEnumKey;
|
|
2463
|
+
type types_ResponseFunctionCallArgumentsDoneStreamingEvent = ResponseFunctionCallArgumentsDoneStreamingEvent;
|
|
2464
|
+
type types_ResponseFunctionCallArgumentsDoneStreamingEventTypeEnumKey = ResponseFunctionCallArgumentsDoneStreamingEventTypeEnumKey;
|
|
2465
|
+
type types_ResponseInProgressStreamingEvent = ResponseInProgressStreamingEvent;
|
|
2466
|
+
type types_ResponseInProgressStreamingEventTypeEnumKey = ResponseInProgressStreamingEventTypeEnumKey;
|
|
2467
|
+
type types_ResponseIncompleteStreamingEvent = ResponseIncompleteStreamingEvent;
|
|
2468
|
+
type types_ResponseIncompleteStreamingEventTypeEnumKey = ResponseIncompleteStreamingEventTypeEnumKey;
|
|
2469
|
+
type types_ResponseOutputItemAddedStreamingEvent = ResponseOutputItemAddedStreamingEvent;
|
|
2470
|
+
type types_ResponseOutputItemAddedStreamingEventTypeEnumKey = ResponseOutputItemAddedStreamingEventTypeEnumKey;
|
|
2471
|
+
type types_ResponseOutputItemDoneStreamingEvent = ResponseOutputItemDoneStreamingEvent;
|
|
2472
|
+
type types_ResponseOutputItemDoneStreamingEventTypeEnumKey = ResponseOutputItemDoneStreamingEventTypeEnumKey;
|
|
2473
|
+
type types_ResponseOutputTextAnnotationAddedStreamingEvent = ResponseOutputTextAnnotationAddedStreamingEvent;
|
|
2474
|
+
type types_ResponseOutputTextAnnotationAddedStreamingEventTypeEnumKey = ResponseOutputTextAnnotationAddedStreamingEventTypeEnumKey;
|
|
2475
|
+
type types_ResponseOutputTextDeltaStreamingEvent = ResponseOutputTextDeltaStreamingEvent;
|
|
2476
|
+
type types_ResponseOutputTextDeltaStreamingEventTypeEnumKey = ResponseOutputTextDeltaStreamingEventTypeEnumKey;
|
|
2477
|
+
type types_ResponseOutputTextDoneStreamingEvent = ResponseOutputTextDoneStreamingEvent;
|
|
2478
|
+
type types_ResponseOutputTextDoneStreamingEventTypeEnumKey = ResponseOutputTextDoneStreamingEventTypeEnumKey;
|
|
2479
|
+
type types_ResponseQueuedStreamingEvent = ResponseQueuedStreamingEvent;
|
|
2480
|
+
type types_ResponseQueuedStreamingEventTypeEnumKey = ResponseQueuedStreamingEventTypeEnumKey;
|
|
2481
|
+
type types_ResponseReasoningDeltaStreamingEvent = ResponseReasoningDeltaStreamingEvent;
|
|
2482
|
+
type types_ResponseReasoningDeltaStreamingEventTypeEnumKey = ResponseReasoningDeltaStreamingEventTypeEnumKey;
|
|
2483
|
+
type types_ResponseReasoningDoneStreamingEvent = ResponseReasoningDoneStreamingEvent;
|
|
2484
|
+
type types_ResponseReasoningDoneStreamingEventTypeEnumKey = ResponseReasoningDoneStreamingEventTypeEnumKey;
|
|
2485
|
+
type types_ResponseReasoningSummaryDeltaStreamingEvent = ResponseReasoningSummaryDeltaStreamingEvent;
|
|
2486
|
+
type types_ResponseReasoningSummaryDeltaStreamingEventTypeEnumKey = ResponseReasoningSummaryDeltaStreamingEventTypeEnumKey;
|
|
2487
|
+
type types_ResponseReasoningSummaryDoneStreamingEvent = ResponseReasoningSummaryDoneStreamingEvent;
|
|
2488
|
+
type types_ResponseReasoningSummaryDoneStreamingEventTypeEnumKey = ResponseReasoningSummaryDoneStreamingEventTypeEnumKey;
|
|
2489
|
+
type types_ResponseReasoningSummaryPartAddedStreamingEvent = ResponseReasoningSummaryPartAddedStreamingEvent;
|
|
2490
|
+
type types_ResponseReasoningSummaryPartAddedStreamingEventTypeEnumKey = ResponseReasoningSummaryPartAddedStreamingEventTypeEnumKey;
|
|
2491
|
+
type types_ResponseReasoningSummaryPartDoneStreamingEvent = ResponseReasoningSummaryPartDoneStreamingEvent;
|
|
2492
|
+
type types_ResponseReasoningSummaryPartDoneStreamingEventTypeEnumKey = ResponseReasoningSummaryPartDoneStreamingEventTypeEnumKey;
|
|
2493
|
+
type types_ResponseRefusalDeltaStreamingEvent = ResponseRefusalDeltaStreamingEvent;
|
|
2494
|
+
type types_ResponseRefusalDeltaStreamingEventTypeEnumKey = ResponseRefusalDeltaStreamingEventTypeEnumKey;
|
|
2495
|
+
type types_ResponseRefusalDoneStreamingEvent = ResponseRefusalDoneStreamingEvent;
|
|
2496
|
+
type types_ResponseRefusalDoneStreamingEventTypeEnumKey = ResponseRefusalDoneStreamingEventTypeEnumKey;
|
|
2497
|
+
type types_ResponseResource = ResponseResource;
|
|
2498
|
+
type types_ResponseResourceObjectEnumKey = ResponseResourceObjectEnumKey;
|
|
2499
|
+
type types_ResponsesToolParam = ResponsesToolParam;
|
|
2500
|
+
type types_ServiceTierEnum = ServiceTierEnum;
|
|
2501
|
+
type types_ServiceTierEnumEnumKey = ServiceTierEnumEnumKey;
|
|
2502
|
+
type types_SpecificFunctionParam = SpecificFunctionParam;
|
|
2503
|
+
type types_SpecificFunctionParamTypeEnumKey = SpecificFunctionParamTypeEnumKey;
|
|
2504
|
+
type types_SpecificToolChoiceParam = SpecificToolChoiceParam;
|
|
2505
|
+
type types_StreamOptionsParam = StreamOptionsParam;
|
|
2506
|
+
type types_SummaryTextContent = SummaryTextContent;
|
|
2507
|
+
type types_SummaryTextContentTypeEnumKey = SummaryTextContentTypeEnumKey;
|
|
2508
|
+
type types_SystemMessageItemParam = SystemMessageItemParam;
|
|
2509
|
+
type types_SystemMessageItemParamRoleEnumKey = SystemMessageItemParamRoleEnumKey;
|
|
2510
|
+
type types_SystemMessageItemParamTypeEnumKey = SystemMessageItemParamTypeEnumKey;
|
|
2511
|
+
type types_TextContent = TextContent;
|
|
2512
|
+
type types_TextContentTypeEnumKey = TextContentTypeEnumKey;
|
|
2513
|
+
type types_TextField = TextField;
|
|
2514
|
+
type types_TextFormatParam = TextFormatParam;
|
|
2515
|
+
type types_TextParam = TextParam;
|
|
2516
|
+
type types_TextResponseFormat = TextResponseFormat;
|
|
2517
|
+
type types_TextResponseFormatTypeEnumKey = TextResponseFormatTypeEnumKey;
|
|
2518
|
+
type types_Tool = Tool;
|
|
2519
|
+
type types_ToolChoiceParam = ToolChoiceParam;
|
|
2520
|
+
type types_ToolChoiceValueEnum = ToolChoiceValueEnum;
|
|
2521
|
+
type types_ToolChoiceValueEnumEnumKey = ToolChoiceValueEnumEnumKey;
|
|
2522
|
+
type types_TopLogProb = TopLogProb;
|
|
2523
|
+
type types_TruncationEnum = TruncationEnum;
|
|
2524
|
+
type types_TruncationEnumEnumKey = TruncationEnumEnumKey;
|
|
2525
|
+
type types_UrlCitationBody = UrlCitationBody;
|
|
2526
|
+
type types_UrlCitationBodyTypeEnumKey = UrlCitationBodyTypeEnumKey;
|
|
2527
|
+
type types_UrlCitationParam = UrlCitationParam;
|
|
2528
|
+
type types_UrlCitationParamTypeEnumKey = UrlCitationParamTypeEnumKey;
|
|
2529
|
+
type types_Usage = Usage;
|
|
2530
|
+
type types_UserMessageItemParam = UserMessageItemParam;
|
|
2531
|
+
type types_UserMessageItemParamRoleEnumKey = UserMessageItemParamRoleEnumKey;
|
|
2532
|
+
type types_UserMessageItemParamTypeEnumKey = UserMessageItemParamTypeEnumKey;
|
|
2533
|
+
type types_VerbosityEnum = VerbosityEnum;
|
|
2534
|
+
type types_VerbosityEnumEnumKey = VerbosityEnumEnumKey;
|
|
2535
|
+
declare const types_allowedToolChoiceTypeEnum: typeof allowedToolChoiceTypeEnum;
|
|
2536
|
+
declare const types_allowedToolsParamTypeEnum: typeof allowedToolsParamTypeEnum;
|
|
2537
|
+
declare const types_assistantMessageItemParamRoleEnum: typeof assistantMessageItemParamRoleEnum;
|
|
2538
|
+
declare const types_assistantMessageItemParamTypeEnum: typeof assistantMessageItemParamTypeEnum;
|
|
2539
|
+
declare const types_detailEnumEnum: typeof detailEnumEnum;
|
|
2540
|
+
declare const types_developerMessageItemParamRoleEnum: typeof developerMessageItemParamRoleEnum;
|
|
2541
|
+
declare const types_developerMessageItemParamTypeEnum: typeof developerMessageItemParamTypeEnum;
|
|
2542
|
+
declare const types_errorStreamingEventTypeEnum: typeof errorStreamingEventTypeEnum;
|
|
2543
|
+
declare const types_functionCallItemParamTypeEnum: typeof functionCallItemParamTypeEnum;
|
|
2544
|
+
declare const types_functionCallItemStatusEnum: typeof functionCallItemStatusEnum;
|
|
2545
|
+
declare const types_functionCallOutputItemParamTypeEnum: typeof functionCallOutputItemParamTypeEnum;
|
|
2546
|
+
declare const types_functionCallOutputStatusEnumEnum: typeof functionCallOutputStatusEnumEnum;
|
|
2547
|
+
declare const types_functionCallOutputTypeEnum: typeof functionCallOutputTypeEnum;
|
|
2548
|
+
declare const types_functionCallStatusEnum: typeof functionCallStatusEnum;
|
|
2549
|
+
declare const types_functionCallTypeEnum: typeof functionCallTypeEnum;
|
|
2550
|
+
declare const types_functionToolChoiceTypeEnum: typeof functionToolChoiceTypeEnum;
|
|
2551
|
+
declare const types_functionToolParamTypeEnum: typeof functionToolParamTypeEnum;
|
|
2552
|
+
declare const types_functionToolTypeEnum: typeof functionToolTypeEnum;
|
|
2553
|
+
declare const types_imageDetailEnum: typeof imageDetailEnum;
|
|
2554
|
+
declare const types_includeEnumEnum: typeof includeEnumEnum;
|
|
2555
|
+
declare const types_inputFileContentParamTypeEnum: typeof inputFileContentParamTypeEnum;
|
|
2556
|
+
declare const types_inputFileContentTypeEnum: typeof inputFileContentTypeEnum;
|
|
2557
|
+
declare const types_inputImageContentParamAutoParamTypeEnum: typeof inputImageContentParamAutoParamTypeEnum;
|
|
2558
|
+
declare const types_inputImageContentTypeEnum: typeof inputImageContentTypeEnum;
|
|
2559
|
+
declare const types_inputTextContentParamTypeEnum: typeof inputTextContentParamTypeEnum;
|
|
2560
|
+
declare const types_inputTextContentTypeEnum: typeof inputTextContentTypeEnum;
|
|
2561
|
+
declare const types_inputVideoContentTypeEnum: typeof inputVideoContentTypeEnum;
|
|
2562
|
+
declare const types_itemReferenceParamTypeEnum: typeof itemReferenceParamTypeEnum;
|
|
2563
|
+
declare const types_jsonObjectResponseFormatTypeEnum: typeof jsonObjectResponseFormatTypeEnum;
|
|
2564
|
+
declare const types_jsonSchemaResponseFormatParamTypeEnum: typeof jsonSchemaResponseFormatParamTypeEnum;
|
|
2565
|
+
declare const types_jsonSchemaResponseFormatTypeEnum: typeof jsonSchemaResponseFormatTypeEnum;
|
|
2566
|
+
declare const types_messageRoleEnum: typeof messageRoleEnum;
|
|
2567
|
+
declare const types_messageStatusEnum: typeof messageStatusEnum;
|
|
2568
|
+
declare const types_messageTypeEnum: typeof messageTypeEnum;
|
|
2569
|
+
declare const types_outputTextContentParamTypeEnum: typeof outputTextContentParamTypeEnum;
|
|
2570
|
+
declare const types_outputTextContentTypeEnum: typeof outputTextContentTypeEnum;
|
|
2571
|
+
declare const types_reasoningBodyTypeEnum: typeof reasoningBodyTypeEnum;
|
|
2572
|
+
declare const types_reasoningEffortEnumEnum: typeof reasoningEffortEnumEnum;
|
|
2573
|
+
declare const types_reasoningItemParamTypeEnum: typeof reasoningItemParamTypeEnum;
|
|
2574
|
+
declare const types_reasoningSummaryContentParamTypeEnum: typeof reasoningSummaryContentParamTypeEnum;
|
|
2575
|
+
declare const types_reasoningSummaryEnumEnum: typeof reasoningSummaryEnumEnum;
|
|
2576
|
+
declare const types_reasoningTextContentTypeEnum: typeof reasoningTextContentTypeEnum;
|
|
2577
|
+
declare const types_refusalContentParamTypeEnum: typeof refusalContentParamTypeEnum;
|
|
2578
|
+
declare const types_refusalContentTypeEnum: typeof refusalContentTypeEnum;
|
|
2579
|
+
declare const types_responseCompletedStreamingEventTypeEnum: typeof responseCompletedStreamingEventTypeEnum;
|
|
2580
|
+
declare const types_responseContentPartAddedStreamingEventTypeEnum: typeof responseContentPartAddedStreamingEventTypeEnum;
|
|
2581
|
+
declare const types_responseContentPartDoneStreamingEventTypeEnum: typeof responseContentPartDoneStreamingEventTypeEnum;
|
|
2582
|
+
declare const types_responseCreatedStreamingEventTypeEnum: typeof responseCreatedStreamingEventTypeEnum;
|
|
2583
|
+
declare const types_responseFailedStreamingEventTypeEnum: typeof responseFailedStreamingEventTypeEnum;
|
|
2584
|
+
declare const types_responseFunctionCallArgumentsDeltaStreamingEventTypeEnum: typeof responseFunctionCallArgumentsDeltaStreamingEventTypeEnum;
|
|
2585
|
+
declare const types_responseFunctionCallArgumentsDoneStreamingEventTypeEnum: typeof responseFunctionCallArgumentsDoneStreamingEventTypeEnum;
|
|
2586
|
+
declare const types_responseInProgressStreamingEventTypeEnum: typeof responseInProgressStreamingEventTypeEnum;
|
|
2587
|
+
declare const types_responseIncompleteStreamingEventTypeEnum: typeof responseIncompleteStreamingEventTypeEnum;
|
|
2588
|
+
declare const types_responseOutputItemAddedStreamingEventTypeEnum: typeof responseOutputItemAddedStreamingEventTypeEnum;
|
|
2589
|
+
declare const types_responseOutputItemDoneStreamingEventTypeEnum: typeof responseOutputItemDoneStreamingEventTypeEnum;
|
|
2590
|
+
declare const types_responseOutputTextAnnotationAddedStreamingEventTypeEnum: typeof responseOutputTextAnnotationAddedStreamingEventTypeEnum;
|
|
2591
|
+
declare const types_responseOutputTextDeltaStreamingEventTypeEnum: typeof responseOutputTextDeltaStreamingEventTypeEnum;
|
|
2592
|
+
declare const types_responseOutputTextDoneStreamingEventTypeEnum: typeof responseOutputTextDoneStreamingEventTypeEnum;
|
|
2593
|
+
declare const types_responseQueuedStreamingEventTypeEnum: typeof responseQueuedStreamingEventTypeEnum;
|
|
2594
|
+
declare const types_responseReasoningDeltaStreamingEventTypeEnum: typeof responseReasoningDeltaStreamingEventTypeEnum;
|
|
2595
|
+
declare const types_responseReasoningDoneStreamingEventTypeEnum: typeof responseReasoningDoneStreamingEventTypeEnum;
|
|
2596
|
+
declare const types_responseReasoningSummaryDeltaStreamingEventTypeEnum: typeof responseReasoningSummaryDeltaStreamingEventTypeEnum;
|
|
2597
|
+
declare const types_responseReasoningSummaryDoneStreamingEventTypeEnum: typeof responseReasoningSummaryDoneStreamingEventTypeEnum;
|
|
2598
|
+
declare const types_responseReasoningSummaryPartAddedStreamingEventTypeEnum: typeof responseReasoningSummaryPartAddedStreamingEventTypeEnum;
|
|
2599
|
+
declare const types_responseReasoningSummaryPartDoneStreamingEventTypeEnum: typeof responseReasoningSummaryPartDoneStreamingEventTypeEnum;
|
|
2600
|
+
declare const types_responseRefusalDeltaStreamingEventTypeEnum: typeof responseRefusalDeltaStreamingEventTypeEnum;
|
|
2601
|
+
declare const types_responseRefusalDoneStreamingEventTypeEnum: typeof responseRefusalDoneStreamingEventTypeEnum;
|
|
2602
|
+
declare const types_responseResourceObjectEnum: typeof responseResourceObjectEnum;
|
|
2603
|
+
declare const types_serviceTierEnumEnum: typeof serviceTierEnumEnum;
|
|
2604
|
+
declare const types_specificFunctionParamTypeEnum: typeof specificFunctionParamTypeEnum;
|
|
2605
|
+
declare const types_summaryTextContentTypeEnum: typeof summaryTextContentTypeEnum;
|
|
2606
|
+
declare const types_systemMessageItemParamRoleEnum: typeof systemMessageItemParamRoleEnum;
|
|
2607
|
+
declare const types_systemMessageItemParamTypeEnum: typeof systemMessageItemParamTypeEnum;
|
|
2608
|
+
declare const types_textContentTypeEnum: typeof textContentTypeEnum;
|
|
2609
|
+
declare const types_textResponseFormatTypeEnum: typeof textResponseFormatTypeEnum;
|
|
2610
|
+
declare const types_toolChoiceValueEnumEnum: typeof toolChoiceValueEnumEnum;
|
|
2611
|
+
declare const types_truncationEnumEnum: typeof truncationEnumEnum;
|
|
2612
|
+
declare const types_urlCitationBodyTypeEnum: typeof urlCitationBodyTypeEnum;
|
|
2613
|
+
declare const types_urlCitationParamTypeEnum: typeof urlCitationParamTypeEnum;
|
|
2614
|
+
declare const types_userMessageItemParamRoleEnum: typeof userMessageItemParamRoleEnum;
|
|
2615
|
+
declare const types_userMessageItemParamTypeEnum: typeof userMessageItemParamTypeEnum;
|
|
2616
|
+
declare const types_verbosityEnumEnum: typeof verbosityEnumEnum;
|
|
2617
|
+
declare namespace types {
|
|
2618
|
+
export { type types_AllowedToolChoice as AllowedToolChoice, type types_AllowedToolChoiceTypeEnumKey as AllowedToolChoiceTypeEnumKey, type types_AllowedToolsParam as AllowedToolsParam, type types_AllowedToolsParamTypeEnumKey as AllowedToolsParamTypeEnumKey, type types_Annotation as Annotation, type types_AssistantMessageItemParam as AssistantMessageItemParam, type types_AssistantMessageItemParamRoleEnumKey as AssistantMessageItemParamRoleEnumKey, type types_AssistantMessageItemParamTypeEnumKey as AssistantMessageItemParamTypeEnumKey, type types_CreateResponseBody as CreateResponseBody, type types_Createresponse200 as Createresponse200, type types_CreateresponseMutation as CreateresponseMutation, type types_CreateresponseMutationRequest as CreateresponseMutationRequest, type types_CreateresponseMutationResponse as CreateresponseMutationResponse, type types_DetailEnum as DetailEnum, type types_DetailEnumEnumKey as DetailEnumEnumKey, type types_DeveloperMessageItemParam as DeveloperMessageItemParam, type types_DeveloperMessageItemParamRoleEnumKey as DeveloperMessageItemParamRoleEnumKey, type types_DeveloperMessageItemParamTypeEnumKey as DeveloperMessageItemParamTypeEnumKey, type types_EmptyModelParam as EmptyModelParam, type types_Error as Error, type types_ErrorPayload as ErrorPayload, type types_ErrorStreamingEvent as ErrorStreamingEvent, type types_ErrorStreamingEventTypeEnumKey as ErrorStreamingEventTypeEnumKey, type types_FunctionCall as FunctionCall, type types_FunctionCallItemParam as FunctionCallItemParam, type types_FunctionCallItemParamTypeEnumKey as FunctionCallItemParamTypeEnumKey, type types_FunctionCallItemStatus as FunctionCallItemStatus, type types_FunctionCallItemStatusEnumKey as FunctionCallItemStatusEnumKey, type types_FunctionCallOutput as FunctionCallOutput, type types_FunctionCallOutputItemParam as FunctionCallOutputItemParam, type types_FunctionCallOutputItemParamTypeEnumKey as FunctionCallOutputItemParamTypeEnumKey, type types_FunctionCallOutputStatusEnum as FunctionCallOutputStatusEnum, type types_FunctionCallOutputStatusEnumEnumKey as FunctionCallOutputStatusEnumEnumKey, type types_FunctionCallOutputTypeEnumKey as FunctionCallOutputTypeEnumKey, type types_FunctionCallStatus as FunctionCallStatus, type types_FunctionCallStatusEnumKey as FunctionCallStatusEnumKey, type types_FunctionCallTypeEnumKey as FunctionCallTypeEnumKey, type types_FunctionTool as FunctionTool, type types_FunctionToolChoice as FunctionToolChoice, type types_FunctionToolChoiceTypeEnumKey as FunctionToolChoiceTypeEnumKey, type types_FunctionToolParam as FunctionToolParam, type types_FunctionToolParamTypeEnumKey as FunctionToolParamTypeEnumKey, type types_FunctionToolTypeEnumKey as FunctionToolTypeEnumKey, type types_ImageDetail as ImageDetail, type types_ImageDetailEnumKey as ImageDetailEnumKey, type types_IncludeEnum as IncludeEnum, type types_IncludeEnumEnumKey as IncludeEnumEnumKey, type types_IncompleteDetails as IncompleteDetails, type types_InputFileContent as InputFileContent, type types_InputFileContentParam as InputFileContentParam, type types_InputFileContentParamTypeEnumKey as InputFileContentParamTypeEnumKey, type types_InputFileContentTypeEnumKey as InputFileContentTypeEnumKey, type types_InputImageContent as InputImageContent, type types_InputImageContentParamAutoParam as InputImageContentParamAutoParam, type types_InputImageContentParamAutoParamTypeEnumKey as InputImageContentParamAutoParamTypeEnumKey, type types_InputImageContentTypeEnumKey as InputImageContentTypeEnumKey, type types_InputTextContent as InputTextContent, type types_InputTextContentParam as InputTextContentParam, type types_InputTextContentParamTypeEnumKey as InputTextContentParamTypeEnumKey, type types_InputTextContentTypeEnumKey as InputTextContentTypeEnumKey, type types_InputTokensDetails as InputTokensDetails, type types_InputVideoContent as InputVideoContent, type types_InputVideoContentTypeEnumKey as InputVideoContentTypeEnumKey, type types_ItemField as ItemField, type types_ItemParam as ItemParam, type types_ItemReferenceParam as ItemReferenceParam, type types_ItemReferenceParamTypeEnumKey as ItemReferenceParamTypeEnumKey, type types_JsonObjectResponseFormat as JsonObjectResponseFormat, type types_JsonObjectResponseFormatTypeEnumKey as JsonObjectResponseFormatTypeEnumKey, type types_JsonSchemaResponseFormat as JsonSchemaResponseFormat, type types_JsonSchemaResponseFormatParam as JsonSchemaResponseFormatParam, type types_JsonSchemaResponseFormatParamTypeEnumKey as JsonSchemaResponseFormatParamTypeEnumKey, type types_JsonSchemaResponseFormatTypeEnumKey as JsonSchemaResponseFormatTypeEnumKey, type types_LogProb as LogProb, type types_Message as Message, type types_MessageRole as MessageRole, type types_MessageRoleEnumKey as MessageRoleEnumKey, type types_MessageStatus as MessageStatus, type types_MessageStatusEnumKey as MessageStatusEnumKey, type types_MessageTypeEnumKey as MessageTypeEnumKey, type types_MetadataParam as MetadataParam, type types_OutputTextContent as OutputTextContent, type types_OutputTextContentParam as OutputTextContentParam, type types_OutputTextContentParamTypeEnumKey as OutputTextContentParamTypeEnumKey, type types_OutputTextContentTypeEnumKey as OutputTextContentTypeEnumKey, type types_OutputTokensDetails as OutputTokensDetails, type types_Reasoning as Reasoning, type types_ReasoningBody as ReasoningBody, type types_ReasoningBodyTypeEnumKey as ReasoningBodyTypeEnumKey, type types_ReasoningEffortEnum as ReasoningEffortEnum, type types_ReasoningEffortEnumEnumKey as ReasoningEffortEnumEnumKey, type types_ReasoningItemParam as ReasoningItemParam, type types_ReasoningItemParamTypeEnumKey as ReasoningItemParamTypeEnumKey, type types_ReasoningParam as ReasoningParam, type types_ReasoningSummaryContentParam as ReasoningSummaryContentParam, type types_ReasoningSummaryContentParamTypeEnumKey as ReasoningSummaryContentParamTypeEnumKey, type types_ReasoningSummaryEnum as ReasoningSummaryEnum, type types_ReasoningSummaryEnumEnumKey as ReasoningSummaryEnumEnumKey, type types_ReasoningTextContent as ReasoningTextContent, type types_ReasoningTextContentTypeEnumKey as ReasoningTextContentTypeEnumKey, type types_RefusalContent as RefusalContent, type types_RefusalContentParam as RefusalContentParam, type types_RefusalContentParamTypeEnumKey as RefusalContentParamTypeEnumKey, type types_RefusalContentTypeEnumKey as RefusalContentTypeEnumKey, type types_ResponseCompletedStreamingEvent as ResponseCompletedStreamingEvent, type types_ResponseCompletedStreamingEventTypeEnumKey as ResponseCompletedStreamingEventTypeEnumKey, type types_ResponseContentPartAddedStreamingEvent as ResponseContentPartAddedStreamingEvent, type types_ResponseContentPartAddedStreamingEventTypeEnumKey as ResponseContentPartAddedStreamingEventTypeEnumKey, type types_ResponseContentPartDoneStreamingEvent as ResponseContentPartDoneStreamingEvent, type types_ResponseContentPartDoneStreamingEventTypeEnumKey as ResponseContentPartDoneStreamingEventTypeEnumKey, type types_ResponseCreatedStreamingEvent as ResponseCreatedStreamingEvent, type types_ResponseCreatedStreamingEventTypeEnumKey as ResponseCreatedStreamingEventTypeEnumKey, type types_ResponseFailedStreamingEvent as ResponseFailedStreamingEvent, type types_ResponseFailedStreamingEventTypeEnumKey as ResponseFailedStreamingEventTypeEnumKey, type types_ResponseFunctionCallArgumentsDeltaStreamingEvent as ResponseFunctionCallArgumentsDeltaStreamingEvent, type types_ResponseFunctionCallArgumentsDeltaStreamingEventTypeEnumKey as ResponseFunctionCallArgumentsDeltaStreamingEventTypeEnumKey, type types_ResponseFunctionCallArgumentsDoneStreamingEvent as ResponseFunctionCallArgumentsDoneStreamingEvent, type types_ResponseFunctionCallArgumentsDoneStreamingEventTypeEnumKey as ResponseFunctionCallArgumentsDoneStreamingEventTypeEnumKey, type types_ResponseInProgressStreamingEvent as ResponseInProgressStreamingEvent, type types_ResponseInProgressStreamingEventTypeEnumKey as ResponseInProgressStreamingEventTypeEnumKey, type types_ResponseIncompleteStreamingEvent as ResponseIncompleteStreamingEvent, type types_ResponseIncompleteStreamingEventTypeEnumKey as ResponseIncompleteStreamingEventTypeEnumKey, type types_ResponseOutputItemAddedStreamingEvent as ResponseOutputItemAddedStreamingEvent, type types_ResponseOutputItemAddedStreamingEventTypeEnumKey as ResponseOutputItemAddedStreamingEventTypeEnumKey, type types_ResponseOutputItemDoneStreamingEvent as ResponseOutputItemDoneStreamingEvent, type types_ResponseOutputItemDoneStreamingEventTypeEnumKey as ResponseOutputItemDoneStreamingEventTypeEnumKey, type types_ResponseOutputTextAnnotationAddedStreamingEvent as ResponseOutputTextAnnotationAddedStreamingEvent, type types_ResponseOutputTextAnnotationAddedStreamingEventTypeEnumKey as ResponseOutputTextAnnotationAddedStreamingEventTypeEnumKey, type types_ResponseOutputTextDeltaStreamingEvent as ResponseOutputTextDeltaStreamingEvent, type types_ResponseOutputTextDeltaStreamingEventTypeEnumKey as ResponseOutputTextDeltaStreamingEventTypeEnumKey, type types_ResponseOutputTextDoneStreamingEvent as ResponseOutputTextDoneStreamingEvent, type types_ResponseOutputTextDoneStreamingEventTypeEnumKey as ResponseOutputTextDoneStreamingEventTypeEnumKey, type types_ResponseQueuedStreamingEvent as ResponseQueuedStreamingEvent, type types_ResponseQueuedStreamingEventTypeEnumKey as ResponseQueuedStreamingEventTypeEnumKey, type types_ResponseReasoningDeltaStreamingEvent as ResponseReasoningDeltaStreamingEvent, type types_ResponseReasoningDeltaStreamingEventTypeEnumKey as ResponseReasoningDeltaStreamingEventTypeEnumKey, type types_ResponseReasoningDoneStreamingEvent as ResponseReasoningDoneStreamingEvent, type types_ResponseReasoningDoneStreamingEventTypeEnumKey as ResponseReasoningDoneStreamingEventTypeEnumKey, type types_ResponseReasoningSummaryDeltaStreamingEvent as ResponseReasoningSummaryDeltaStreamingEvent, type types_ResponseReasoningSummaryDeltaStreamingEventTypeEnumKey as ResponseReasoningSummaryDeltaStreamingEventTypeEnumKey, type types_ResponseReasoningSummaryDoneStreamingEvent as ResponseReasoningSummaryDoneStreamingEvent, type types_ResponseReasoningSummaryDoneStreamingEventTypeEnumKey as ResponseReasoningSummaryDoneStreamingEventTypeEnumKey, type types_ResponseReasoningSummaryPartAddedStreamingEvent as ResponseReasoningSummaryPartAddedStreamingEvent, type types_ResponseReasoningSummaryPartAddedStreamingEventTypeEnumKey as ResponseReasoningSummaryPartAddedStreamingEventTypeEnumKey, type types_ResponseReasoningSummaryPartDoneStreamingEvent as ResponseReasoningSummaryPartDoneStreamingEvent, type types_ResponseReasoningSummaryPartDoneStreamingEventTypeEnumKey as ResponseReasoningSummaryPartDoneStreamingEventTypeEnumKey, type types_ResponseRefusalDeltaStreamingEvent as ResponseRefusalDeltaStreamingEvent, type types_ResponseRefusalDeltaStreamingEventTypeEnumKey as ResponseRefusalDeltaStreamingEventTypeEnumKey, type types_ResponseRefusalDoneStreamingEvent as ResponseRefusalDoneStreamingEvent, type types_ResponseRefusalDoneStreamingEventTypeEnumKey as ResponseRefusalDoneStreamingEventTypeEnumKey, type types_ResponseResource as ResponseResource, type types_ResponseResourceObjectEnumKey as ResponseResourceObjectEnumKey, type types_ResponsesToolParam as ResponsesToolParam, type types_ServiceTierEnum as ServiceTierEnum, type types_ServiceTierEnumEnumKey as ServiceTierEnumEnumKey, type types_SpecificFunctionParam as SpecificFunctionParam, type types_SpecificFunctionParamTypeEnumKey as SpecificFunctionParamTypeEnumKey, type types_SpecificToolChoiceParam as SpecificToolChoiceParam, type types_StreamOptionsParam as StreamOptionsParam, type types_SummaryTextContent as SummaryTextContent, type types_SummaryTextContentTypeEnumKey as SummaryTextContentTypeEnumKey, type types_SystemMessageItemParam as SystemMessageItemParam, type types_SystemMessageItemParamRoleEnumKey as SystemMessageItemParamRoleEnumKey, type types_SystemMessageItemParamTypeEnumKey as SystemMessageItemParamTypeEnumKey, type types_TextContent as TextContent, type types_TextContentTypeEnumKey as TextContentTypeEnumKey, type types_TextField as TextField, type types_TextFormatParam as TextFormatParam, type types_TextParam as TextParam, type types_TextResponseFormat as TextResponseFormat, type types_TextResponseFormatTypeEnumKey as TextResponseFormatTypeEnumKey, type types_Tool as Tool, type types_ToolChoiceParam as ToolChoiceParam, type types_ToolChoiceValueEnum as ToolChoiceValueEnum, type types_ToolChoiceValueEnumEnumKey as ToolChoiceValueEnumEnumKey, type types_TopLogProb as TopLogProb, type types_TruncationEnum as TruncationEnum, type types_TruncationEnumEnumKey as TruncationEnumEnumKey, type types_UrlCitationBody as UrlCitationBody, type types_UrlCitationBodyTypeEnumKey as UrlCitationBodyTypeEnumKey, type types_UrlCitationParam as UrlCitationParam, type types_UrlCitationParamTypeEnumKey as UrlCitationParamTypeEnumKey, type types_Usage as Usage, type types_UserMessageItemParam as UserMessageItemParam, type types_UserMessageItemParamRoleEnumKey as UserMessageItemParamRoleEnumKey, type types_UserMessageItemParamTypeEnumKey as UserMessageItemParamTypeEnumKey, type types_VerbosityEnum as VerbosityEnum, type types_VerbosityEnumEnumKey as VerbosityEnumEnumKey, types_allowedToolChoiceTypeEnum as allowedToolChoiceTypeEnum, types_allowedToolsParamTypeEnum as allowedToolsParamTypeEnum, types_assistantMessageItemParamRoleEnum as assistantMessageItemParamRoleEnum, types_assistantMessageItemParamTypeEnum as assistantMessageItemParamTypeEnum, types_detailEnumEnum as detailEnumEnum, types_developerMessageItemParamRoleEnum as developerMessageItemParamRoleEnum, types_developerMessageItemParamTypeEnum as developerMessageItemParamTypeEnum, types_errorStreamingEventTypeEnum as errorStreamingEventTypeEnum, types_functionCallItemParamTypeEnum as functionCallItemParamTypeEnum, types_functionCallItemStatusEnum as functionCallItemStatusEnum, types_functionCallOutputItemParamTypeEnum as functionCallOutputItemParamTypeEnum, types_functionCallOutputStatusEnumEnum as functionCallOutputStatusEnumEnum, types_functionCallOutputTypeEnum as functionCallOutputTypeEnum, types_functionCallStatusEnum as functionCallStatusEnum, types_functionCallTypeEnum as functionCallTypeEnum, types_functionToolChoiceTypeEnum as functionToolChoiceTypeEnum, types_functionToolParamTypeEnum as functionToolParamTypeEnum, types_functionToolTypeEnum as functionToolTypeEnum, types_imageDetailEnum as imageDetailEnum, types_includeEnumEnum as includeEnumEnum, types_inputFileContentParamTypeEnum as inputFileContentParamTypeEnum, types_inputFileContentTypeEnum as inputFileContentTypeEnum, types_inputImageContentParamAutoParamTypeEnum as inputImageContentParamAutoParamTypeEnum, types_inputImageContentTypeEnum as inputImageContentTypeEnum, types_inputTextContentParamTypeEnum as inputTextContentParamTypeEnum, types_inputTextContentTypeEnum as inputTextContentTypeEnum, types_inputVideoContentTypeEnum as inputVideoContentTypeEnum, types_itemReferenceParamTypeEnum as itemReferenceParamTypeEnum, types_jsonObjectResponseFormatTypeEnum as jsonObjectResponseFormatTypeEnum, types_jsonSchemaResponseFormatParamTypeEnum as jsonSchemaResponseFormatParamTypeEnum, types_jsonSchemaResponseFormatTypeEnum as jsonSchemaResponseFormatTypeEnum, types_messageRoleEnum as messageRoleEnum, types_messageStatusEnum as messageStatusEnum, types_messageTypeEnum as messageTypeEnum, types_outputTextContentParamTypeEnum as outputTextContentParamTypeEnum, types_outputTextContentTypeEnum as outputTextContentTypeEnum, types_reasoningBodyTypeEnum as reasoningBodyTypeEnum, types_reasoningEffortEnumEnum as reasoningEffortEnumEnum, types_reasoningItemParamTypeEnum as reasoningItemParamTypeEnum, types_reasoningSummaryContentParamTypeEnum as reasoningSummaryContentParamTypeEnum, types_reasoningSummaryEnumEnum as reasoningSummaryEnumEnum, types_reasoningTextContentTypeEnum as reasoningTextContentTypeEnum, types_refusalContentParamTypeEnum as refusalContentParamTypeEnum, types_refusalContentTypeEnum as refusalContentTypeEnum, types_responseCompletedStreamingEventTypeEnum as responseCompletedStreamingEventTypeEnum, types_responseContentPartAddedStreamingEventTypeEnum as responseContentPartAddedStreamingEventTypeEnum, types_responseContentPartDoneStreamingEventTypeEnum as responseContentPartDoneStreamingEventTypeEnum, types_responseCreatedStreamingEventTypeEnum as responseCreatedStreamingEventTypeEnum, types_responseFailedStreamingEventTypeEnum as responseFailedStreamingEventTypeEnum, types_responseFunctionCallArgumentsDeltaStreamingEventTypeEnum as responseFunctionCallArgumentsDeltaStreamingEventTypeEnum, types_responseFunctionCallArgumentsDoneStreamingEventTypeEnum as responseFunctionCallArgumentsDoneStreamingEventTypeEnum, types_responseInProgressStreamingEventTypeEnum as responseInProgressStreamingEventTypeEnum, types_responseIncompleteStreamingEventTypeEnum as responseIncompleteStreamingEventTypeEnum, types_responseOutputItemAddedStreamingEventTypeEnum as responseOutputItemAddedStreamingEventTypeEnum, types_responseOutputItemDoneStreamingEventTypeEnum as responseOutputItemDoneStreamingEventTypeEnum, types_responseOutputTextAnnotationAddedStreamingEventTypeEnum as responseOutputTextAnnotationAddedStreamingEventTypeEnum, types_responseOutputTextDeltaStreamingEventTypeEnum as responseOutputTextDeltaStreamingEventTypeEnum, types_responseOutputTextDoneStreamingEventTypeEnum as responseOutputTextDoneStreamingEventTypeEnum, types_responseQueuedStreamingEventTypeEnum as responseQueuedStreamingEventTypeEnum, types_responseReasoningDeltaStreamingEventTypeEnum as responseReasoningDeltaStreamingEventTypeEnum, types_responseReasoningDoneStreamingEventTypeEnum as responseReasoningDoneStreamingEventTypeEnum, types_responseReasoningSummaryDeltaStreamingEventTypeEnum as responseReasoningSummaryDeltaStreamingEventTypeEnum, types_responseReasoningSummaryDoneStreamingEventTypeEnum as responseReasoningSummaryDoneStreamingEventTypeEnum, types_responseReasoningSummaryPartAddedStreamingEventTypeEnum as responseReasoningSummaryPartAddedStreamingEventTypeEnum, types_responseReasoningSummaryPartDoneStreamingEventTypeEnum as responseReasoningSummaryPartDoneStreamingEventTypeEnum, types_responseRefusalDeltaStreamingEventTypeEnum as responseRefusalDeltaStreamingEventTypeEnum, types_responseRefusalDoneStreamingEventTypeEnum as responseRefusalDoneStreamingEventTypeEnum, types_responseResourceObjectEnum as responseResourceObjectEnum, types_serviceTierEnumEnum as serviceTierEnumEnum, types_specificFunctionParamTypeEnum as specificFunctionParamTypeEnum, types_summaryTextContentTypeEnum as summaryTextContentTypeEnum, types_systemMessageItemParamRoleEnum as systemMessageItemParamRoleEnum, types_systemMessageItemParamTypeEnum as systemMessageItemParamTypeEnum, types_textContentTypeEnum as textContentTypeEnum, types_textResponseFormatTypeEnum as textResponseFormatTypeEnum, types_toolChoiceValueEnumEnum as toolChoiceValueEnumEnum, types_truncationEnumEnum as truncationEnumEnum, types_urlCitationBodyTypeEnum as urlCitationBodyTypeEnum, types_urlCitationParamTypeEnum as urlCitationParamTypeEnum, types_userMessageItemParamRoleEnum as userMessageItemParamRoleEnum, types_userMessageItemParamTypeEnum as userMessageItemParamTypeEnum, types_verbosityEnumEnum as verbosityEnumEnum };
|
|
2619
|
+
}
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* A wrapper around the raw API response that provides helper methods
|
|
2623
|
+
* for common tasks like extracting text content.
|
|
2624
|
+
*/
|
|
2625
|
+
declare class TekimaxResponse {
|
|
2626
|
+
private readonly _raw;
|
|
2627
|
+
constructor(_raw: ResponseResource);
|
|
2628
|
+
/**
|
|
2629
|
+
* Access the raw response object returned by the API.
|
|
2630
|
+
*/
|
|
2631
|
+
get raw(): ResponseResource;
|
|
2632
|
+
/**
|
|
2633
|
+
* Automatically extracts the text content from the response.
|
|
2634
|
+
* It looks for the first "output_text" item in the response content.
|
|
2635
|
+
*/
|
|
2636
|
+
get text(): string | undefined;
|
|
2637
|
+
/**
|
|
2638
|
+
* The ID of the response.
|
|
2639
|
+
*/
|
|
2640
|
+
get id(): string | undefined;
|
|
2641
|
+
/**
|
|
2642
|
+
* The model used to generate the response.
|
|
2643
|
+
*/
|
|
2644
|
+
get model(): string | undefined;
|
|
2645
|
+
}
|
|
2646
|
+
/**
|
|
2647
|
+
* Options for sending a message or creating a session.
|
|
2648
|
+
*/
|
|
2649
|
+
type MessageOptions = Omit<CreateResponseBody, 'input' | 'stream'> & {
|
|
2650
|
+
signal?: AbortSignal;
|
|
2651
|
+
};
|
|
2652
|
+
/**
|
|
2653
|
+
* The main client for interacting with the Tekimax API.
|
|
2654
|
+
*/
|
|
2655
|
+
declare class TekimaxClient {
|
|
2656
|
+
private baseUrl;
|
|
2657
|
+
private headers;
|
|
2658
|
+
/**
|
|
2659
|
+
* Creates a new TekimaxClient.
|
|
2660
|
+
*
|
|
2661
|
+
* @param options - Configuration options for the client.
|
|
2662
|
+
* @param options.baseUrl - The base URL of the API (default: "https://api.tekimax.com").
|
|
2663
|
+
* @param options.apiKey - Your Tekimax API key.
|
|
2664
|
+
*
|
|
2665
|
+
* @example
|
|
2666
|
+
* const client = new TekimaxClient({ apiKey: "tm_..." });
|
|
2667
|
+
*/
|
|
2668
|
+
constructor(options?: {
|
|
2669
|
+
baseUrl?: string;
|
|
2670
|
+
apiKey?: string;
|
|
2671
|
+
});
|
|
2672
|
+
private request;
|
|
2673
|
+
private requestStream;
|
|
2674
|
+
/**
|
|
2675
|
+
* Creates a new session and sends the initial message.
|
|
2676
|
+
*
|
|
2677
|
+
* @param message - The initial message text to start the session.
|
|
2678
|
+
* @param options - Additional configuration options (model, temperature, etc.).
|
|
2679
|
+
*
|
|
2680
|
+
* @example
|
|
2681
|
+
* const response = await client.createSession("Hello, world!", { model: "gpt-4" });
|
|
2682
|
+
* console.log(response.text);
|
|
2683
|
+
*/
|
|
2684
|
+
createSession(message: string, options?: MessageOptions): Promise<TekimaxResponse>;
|
|
2685
|
+
/**
|
|
2686
|
+
* Sends a message to an existing session or starts a new one if no previous_response_id is provided.
|
|
2687
|
+
*
|
|
2688
|
+
* @param message - The message text to send.
|
|
2689
|
+
* @param options - Additional configuration options.
|
|
2690
|
+
*
|
|
2691
|
+
* @example
|
|
2692
|
+
* const response = await client.sendMessage("What is the weather?", {
|
|
2693
|
+
* previous_response_id: "resp_123"
|
|
2694
|
+
* });
|
|
2695
|
+
* console.log(response.text);
|
|
2696
|
+
*/
|
|
2697
|
+
sendMessage(message: string, options?: MessageOptions): Promise<TekimaxResponse>;
|
|
2698
|
+
/**
|
|
2699
|
+
* Sends a message and returns an asynchronous iterable of streaming events.
|
|
2700
|
+
*/
|
|
2701
|
+
sendMessageStream(message: string, options?: MessageOptions): AsyncIterable<any>;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
declare class TekimaxProvider implements AIProvider {
|
|
2705
|
+
name: string;
|
|
2706
|
+
private client;
|
|
2707
|
+
constructor(options?: {
|
|
2708
|
+
baseUrl?: string;
|
|
2709
|
+
apiKey?: string;
|
|
2710
|
+
});
|
|
2711
|
+
chat(options: ChatOptions): Promise<ChatResult>;
|
|
2712
|
+
chatStream(options: ChatOptions): AsyncIterable<StreamChunk>;
|
|
2713
|
+
private getLastUserMessage;
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* Helper to define a tool with type inference.
|
|
2718
|
+
*
|
|
2719
|
+
* @example
|
|
2720
|
+
* const weatherTool = tool({
|
|
2721
|
+
* name: 'weather',
|
|
2722
|
+
* description: 'Get weather',
|
|
2723
|
+
* parameters: { type: 'object', properties: { location: { type: 'string' } } },
|
|
2724
|
+
* execute: async ({ location }) => { ... }
|
|
2725
|
+
* })
|
|
2726
|
+
*/
|
|
2727
|
+
declare function tool<T = any>(def: Tool$1<T>): Tool$1<T>;
|
|
2728
|
+
|
|
2729
|
+
interface GenerateTextOptions {
|
|
2730
|
+
model: string;
|
|
2731
|
+
messages: Array<Message$1>;
|
|
2732
|
+
tools?: Record<string, Tool$1>;
|
|
2733
|
+
maxSteps?: number;
|
|
2734
|
+
temperature?: number;
|
|
2735
|
+
maxTokens?: number;
|
|
2736
|
+
signal?: AbortSignal;
|
|
2737
|
+
}
|
|
2738
|
+
declare function generateText({ adapter, ...options }: GenerateTextOptions & {
|
|
2739
|
+
adapter: AIProvider;
|
|
2740
|
+
}): Promise<GenerateTextResult>;
|
|
2741
|
+
|
|
2742
|
+
export { AIProvider, types as ApiTypes, ChatOptions, ChatResult, type GenerateTextOptions, GenerateTextResult, Message$1 as Message, StreamChunk, TekimaxClient, TekimaxProvider, Tool$1 as Tool, generateText, tool };
|