tekimax-ts 0.1.7 → 0.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +113 -26
- package/dist/adapter-BtbeHotF.d.cts +81 -0
- package/dist/adapter-BtbeHotF.d.ts +81 -0
- package/dist/adapter-C5iFgx6o.d.cts +162 -0
- package/dist/adapter-C5iFgx6o.d.ts +162 -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-xdRwibId.d.cts +144 -0
- package/dist/adapter-xdRwibId.d.ts +144 -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 +1574 -0
- package/dist/index.d.cts +2823 -0
- package/dist/index.d.mts +51000 -31111
- package/dist/index.d.ts +407 -29296
- package/dist/index.js +1136 -1405
- package/dist/index.mjs +2441 -1010
- package/dist/react/index.cjs +216 -0
- package/dist/react/index.d.cts +25 -0
- package/dist/react/index.d.ts +25 -0
- package/dist/react/index.js +191 -0
- package/dist/tekimax-C-DJ0z27.d.cts +283 -0
- package/dist/tekimax-C-DJ0z27.d.ts +283 -0
- package/package.json +47 -9
- 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/src/client.ts
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { CreateResponseBody, ResponseResource, OutputTextContentParam } from "./gen/types";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A wrapper around the raw API response that provides helper methods
|
|
5
|
-
* for common tasks like extracting text content.
|
|
6
|
-
*/
|
|
7
|
-
export class TekimaxResponse {
|
|
8
|
-
constructor(private readonly _raw: ResponseResource) { }
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Access the raw response object returned by the API.
|
|
12
|
-
*/
|
|
13
|
-
get raw(): ResponseResource {
|
|
14
|
-
return this._raw;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Automatically extracts the text content from the response.
|
|
19
|
-
* It looks for the first "output_text" item in the response content.
|
|
20
|
-
*/
|
|
21
|
-
get text(): string | undefined {
|
|
22
|
-
if (!this._raw.output) return undefined;
|
|
23
|
-
|
|
24
|
-
for (const item of this._raw.output) {
|
|
25
|
-
if (item.type === "message") {
|
|
26
|
-
for (const contentPart of item.content) {
|
|
27
|
-
if (contentPart.type === "output_text" || contentPart.type === "text") {
|
|
28
|
-
return contentPart.text;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* The ID of the response.
|
|
38
|
-
*/
|
|
39
|
-
get id(): string | undefined {
|
|
40
|
-
return this._raw.id ?? undefined;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The model used to generate the response.
|
|
45
|
-
*/
|
|
46
|
-
get model(): string | undefined {
|
|
47
|
-
return this._raw.model ?? undefined;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Options for sending a message or creating a session.
|
|
53
|
-
*/
|
|
54
|
-
export type MessageOptions = Omit<CreateResponseBody, "input" | "stream">;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* The main client for interacting with the Tekimax API.
|
|
58
|
-
*/
|
|
59
|
-
export class TekimaxClient {
|
|
60
|
-
private baseUrl: string;
|
|
61
|
-
private headers: HeadersInit;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Creates a new TekimaxClient.
|
|
65
|
-
*
|
|
66
|
-
* @param options - Configuration options for the client.
|
|
67
|
-
* @param options.baseUrl - The base URL of the API (default: "https://api.tekimax.com").
|
|
68
|
-
* @param options.apiKey - Your Tekimax API key.
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* const client = new TekimaxClient({ apiKey: "tm_..." });
|
|
72
|
-
*/
|
|
73
|
-
constructor(options: { baseUrl?: string; apiKey?: string } = {}) {
|
|
74
|
-
this.baseUrl = options.baseUrl || "https://api.tekimax.com";
|
|
75
|
-
this.headers = {
|
|
76
|
-
"Content-Type": "application/json",
|
|
77
|
-
...(options.apiKey ? { "Authorization": `Bearer ${options.apiKey}` } : {}),
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
private async request(path: string, body: any): Promise<TekimaxResponse> {
|
|
82
|
-
const response = await fetch(`${this.baseUrl}${path}`, {
|
|
83
|
-
method: "POST",
|
|
84
|
-
headers: this.headers,
|
|
85
|
-
body: JSON.stringify(body),
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
if (!response.ok) {
|
|
89
|
-
throw new Error(`Tekimax API Error: ${response.status} ${response.statusText}`);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
const data = await response.json() as ResponseResource;
|
|
93
|
-
return new TekimaxResponse(data);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Creates a new session and sends the initial message.
|
|
98
|
-
*
|
|
99
|
-
* @param message - The initial message text to start the session.
|
|
100
|
-
* @param options - Additional configuration options (model, temperature, etc.).
|
|
101
|
-
*
|
|
102
|
-
* @example
|
|
103
|
-
* const response = await client.createSession("Hello, world!", { model: "gpt-4" });
|
|
104
|
-
* console.log(response.text);
|
|
105
|
-
*/
|
|
106
|
-
async createSession(message: string, options?: MessageOptions): Promise<TekimaxResponse> {
|
|
107
|
-
const body: CreateResponseBody = {
|
|
108
|
-
...options,
|
|
109
|
-
input: message,
|
|
110
|
-
};
|
|
111
|
-
return this.request("/responses", body);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* Sends a message to an existing session or starts a new one if no previous_response_id is provided.
|
|
116
|
-
*
|
|
117
|
-
* @param message - The message text to send.
|
|
118
|
-
* @param options - Additional configuration options.
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* const response = await client.sendMessage("What is the weather?", {
|
|
122
|
-
* previous_response_id: "resp_123"
|
|
123
|
-
* });
|
|
124
|
-
* console.log(response.text);
|
|
125
|
-
*/
|
|
126
|
-
async sendMessage(message: string, options?: MessageOptions): Promise<TekimaxResponse> {
|
|
127
|
-
return this.createSession(message, options);
|
|
128
|
-
}
|
|
129
|
-
}
|
package/src/gen/.kubb/config.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export function buildFormData<T = unknown>(data: T): FormData {
|
|
2
|
-
const formData = new FormData()
|
|
3
|
-
|
|
4
|
-
function appendData(key: string, value: any) {
|
|
5
|
-
if (value instanceof Blob) {
|
|
6
|
-
formData.append(key, value)
|
|
7
|
-
return
|
|
8
|
-
}
|
|
9
|
-
if (value instanceof Date) {
|
|
10
|
-
formData.append(key, value.toISOString())
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
if (typeof value === 'number' || typeof value === 'boolean') {
|
|
14
|
-
formData.append(key, String(value))
|
|
15
|
-
return
|
|
16
|
-
}
|
|
17
|
-
if (typeof value === 'string') {
|
|
18
|
-
formData.append(key, value)
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
if (typeof value === 'object') {
|
|
22
|
-
formData.append(key, new Blob([JSON.stringify(value)], { type: 'application/json' }))
|
|
23
|
-
return
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
if (data) {
|
|
28
|
-
Object.entries(data).forEach(([key, value]) => {
|
|
29
|
-
if (value === undefined || value === null) return
|
|
30
|
-
|
|
31
|
-
if (Array.isArray(value)) {
|
|
32
|
-
for (const valueItem of value) {
|
|
33
|
-
if (valueItem === undefined || valueItem === null) continue
|
|
34
|
-
appendData(key, valueItem)
|
|
35
|
-
}
|
|
36
|
-
} else {
|
|
37
|
-
appendData(key, value)
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
return formData
|
|
43
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by Kubb (https://kubb.dev/).
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import fetch from "@kubb/plugin-client/clients/axios";
|
|
7
|
-
import type { CreateresponseMutationRequest, CreateresponseMutationResponse } from "../types.ts";
|
|
8
|
-
import type { RequestConfig, ResponseErrorConfig } from "@kubb/plugin-client/clients/axios";
|
|
9
|
-
|
|
10
|
-
function getCreateresponseUrl() {
|
|
11
|
-
const res = { method: 'POST', url: `/responses` as const }
|
|
12
|
-
return res
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @description Creates a response.
|
|
17
|
-
* @summary Create response
|
|
18
|
-
* {@link /responses}
|
|
19
|
-
*/
|
|
20
|
-
export async function createresponse(data?: CreateresponseMutationRequest, config: Partial<RequestConfig<CreateresponseMutationRequest>> & { client?: typeof fetch } = {}) {
|
|
21
|
-
const { client: request = fetch, ...requestConfig } = config
|
|
22
|
-
|
|
23
|
-
const requestData = data
|
|
24
|
-
|
|
25
|
-
const res = await request<CreateresponseMutationResponse, ResponseErrorConfig<Error>, CreateresponseMutationRequest>({ method : "POST", url : getCreateresponseUrl().url.toString(), data : requestData, ... requestConfig })
|
|
26
|
-
return res.data
|
|
27
|
-
}
|
package/src/gen/client/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createresponse } from "./createresponse.ts";
|
package/src/gen/index.ts
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
export type { ItemReferenceParamTypeEnumKey, ItemReferenceParam, ReasoningSummaryContentParamTypeEnumKey, ReasoningSummaryContentParam, ReasoningItemParamTypeEnumKey, ReasoningItemParam, InputTextContentParamTypeEnumKey, InputTextContentParam, DetailEnumEnumKey, DetailEnum, ImageDetailEnumKey, ImageDetail, InputImageContentParamAutoParamTypeEnumKey, InputImageContentParamAutoParam, InputFileContentParamTypeEnumKey, InputFileContentParam, UserMessageItemParamTypeEnumKey, UserMessageItemParamRoleEnumKey, UserMessageItemParam, SystemMessageItemParamTypeEnumKey, SystemMessageItemParamRoleEnumKey, SystemMessageItemParam, DeveloperMessageItemParamTypeEnumKey, DeveloperMessageItemParamRoleEnumKey, DeveloperMessageItemParam, UrlCitationParamTypeEnumKey, UrlCitationParam, OutputTextContentParamTypeEnumKey, OutputTextContentParam, RefusalContentParamTypeEnumKey, RefusalContentParam, AssistantMessageItemParamTypeEnumKey, AssistantMessageItemParamRoleEnumKey, AssistantMessageItemParam, FunctionCallItemStatusEnumKey, FunctionCallItemStatus, FunctionCallStatusEnumKey, FunctionCallStatus, FunctionCallItemParamTypeEnumKey, FunctionCallItemParam, InputVideoContentTypeEnumKey, InputVideoContent, FunctionCallOutputItemParamTypeEnumKey, FunctionCallOutputItemParam, ItemParam, IncludeEnumEnumKey, IncludeEnum, EmptyModelParam, FunctionToolParamTypeEnumKey, FunctionToolParam, ResponsesToolParam, SpecificFunctionParamTypeEnumKey, SpecificFunctionParam, SpecificToolChoiceParam, ToolChoiceValueEnumEnumKey, ToolChoiceValueEnum, AllowedToolsParamTypeEnumKey, AllowedToolsParam, ToolChoiceParam, MetadataParam, VerbosityEnumEnumKey, VerbosityEnum, TextResponseFormatTypeEnumKey, TextResponseFormat, JsonSchemaResponseFormatParamTypeEnumKey, JsonSchemaResponseFormatParam, TextFormatParam, TextParam, StreamOptionsParam, ReasoningEffortEnumEnumKey, ReasoningEffortEnum, ReasoningSummaryEnumEnumKey, ReasoningSummaryEnum, ReasoningParam, TruncationEnumEnumKey, TruncationEnum, ServiceTierEnumEnumKey, ServiceTierEnum, CreateResponseBody, IncompleteDetails, MessageRoleEnumKey, MessageRole, InputTextContentTypeEnumKey, InputTextContent, UrlCitationBodyTypeEnumKey, UrlCitationBody, Annotation, TopLogProb, LogProb, OutputTextContentTypeEnumKey, OutputTextContent, TextContentTypeEnumKey, TextContent, SummaryTextContentTypeEnumKey, SummaryTextContent, ReasoningTextContentTypeEnumKey, ReasoningTextContent, RefusalContentTypeEnumKey, RefusalContent, InputImageContentTypeEnumKey, InputImageContent, InputFileContentTypeEnumKey, InputFileContent, MessageStatusEnumKey, MessageStatus, MessageTypeEnumKey, Message, FunctionCallTypeEnumKey, FunctionCall, FunctionCallOutputStatusEnumEnumKey, FunctionCallOutputStatusEnum, FunctionCallOutputTypeEnumKey, FunctionCallOutput, ReasoningBodyTypeEnumKey, ReasoningBody, ItemField, Error, FunctionToolTypeEnumKey, FunctionTool, Tool, FunctionToolChoiceTypeEnumKey, FunctionToolChoice, AllowedToolChoiceTypeEnumKey, AllowedToolChoice, JsonObjectResponseFormatTypeEnumKey, JsonObjectResponseFormat, JsonSchemaResponseFormatTypeEnumKey, JsonSchemaResponseFormat, TextField, Reasoning, InputTokensDetails, OutputTokensDetails, Usage, ResponseResourceObjectEnumKey, ResponseResource, ResponseCreatedStreamingEventTypeEnumKey, ResponseCreatedStreamingEvent, ResponseQueuedStreamingEventTypeEnumKey, ResponseQueuedStreamingEvent, ResponseInProgressStreamingEventTypeEnumKey, ResponseInProgressStreamingEvent, ResponseCompletedStreamingEventTypeEnumKey, ResponseCompletedStreamingEvent, ResponseFailedStreamingEventTypeEnumKey, ResponseFailedStreamingEvent, ResponseIncompleteStreamingEventTypeEnumKey, ResponseIncompleteStreamingEvent, ResponseOutputItemAddedStreamingEventTypeEnumKey, ResponseOutputItemAddedStreamingEvent, ResponseOutputItemDoneStreamingEventTypeEnumKey, ResponseOutputItemDoneStreamingEvent, ResponseReasoningSummaryPartAddedStreamingEventTypeEnumKey, ResponseReasoningSummaryPartAddedStreamingEvent, ResponseReasoningSummaryPartDoneStreamingEventTypeEnumKey, ResponseReasoningSummaryPartDoneStreamingEvent, ResponseContentPartAddedStreamingEventTypeEnumKey, ResponseContentPartAddedStreamingEvent, ResponseContentPartDoneStreamingEventTypeEnumKey, ResponseContentPartDoneStreamingEvent, ResponseOutputTextDeltaStreamingEventTypeEnumKey, ResponseOutputTextDeltaStreamingEvent, ResponseOutputTextDoneStreamingEventTypeEnumKey, ResponseOutputTextDoneStreamingEvent, ResponseRefusalDeltaStreamingEventTypeEnumKey, ResponseRefusalDeltaStreamingEvent, ResponseRefusalDoneStreamingEventTypeEnumKey, ResponseRefusalDoneStreamingEvent, ResponseReasoningDeltaStreamingEventTypeEnumKey, ResponseReasoningDeltaStreamingEvent, ResponseReasoningDoneStreamingEventTypeEnumKey, ResponseReasoningDoneStreamingEvent, ResponseReasoningSummaryDeltaStreamingEventTypeEnumKey, ResponseReasoningSummaryDeltaStreamingEvent, ResponseReasoningSummaryDoneStreamingEventTypeEnumKey, ResponseReasoningSummaryDoneStreamingEvent, ResponseOutputTextAnnotationAddedStreamingEventTypeEnumKey, ResponseOutputTextAnnotationAddedStreamingEvent, ResponseFunctionCallArgumentsDeltaStreamingEventTypeEnumKey, ResponseFunctionCallArgumentsDeltaStreamingEvent, ResponseFunctionCallArgumentsDoneStreamingEventTypeEnumKey, ResponseFunctionCallArgumentsDoneStreamingEvent, ErrorPayload, ErrorStreamingEventTypeEnumKey, ErrorStreamingEvent, Createresponse200, CreateresponseMutationRequest, CreateresponseMutationResponse, CreateresponseMutation } from "./types.ts";
|
|
2
|
-
export { createresponse } from "./client/createresponse.ts";
|
|
3
|
-
export { itemReferenceParamTypeEnum } from "./types.ts";
|
|
4
|
-
export { reasoningSummaryContentParamTypeEnum } from "./types.ts";
|
|
5
|
-
export { reasoningItemParamTypeEnum } from "./types.ts";
|
|
6
|
-
export { inputTextContentParamTypeEnum } from "./types.ts";
|
|
7
|
-
export { detailEnumEnum } from "./types.ts";
|
|
8
|
-
export { imageDetailEnum } from "./types.ts";
|
|
9
|
-
export { inputImageContentParamAutoParamTypeEnum } from "./types.ts";
|
|
10
|
-
export { inputFileContentParamTypeEnum } from "./types.ts";
|
|
11
|
-
export { userMessageItemParamTypeEnum } from "./types.ts";
|
|
12
|
-
export { userMessageItemParamRoleEnum } from "./types.ts";
|
|
13
|
-
export { systemMessageItemParamTypeEnum } from "./types.ts";
|
|
14
|
-
export { systemMessageItemParamRoleEnum } from "./types.ts";
|
|
15
|
-
export { developerMessageItemParamTypeEnum } from "./types.ts";
|
|
16
|
-
export { developerMessageItemParamRoleEnum } from "./types.ts";
|
|
17
|
-
export { urlCitationParamTypeEnum } from "./types.ts";
|
|
18
|
-
export { outputTextContentParamTypeEnum } from "./types.ts";
|
|
19
|
-
export { refusalContentParamTypeEnum } from "./types.ts";
|
|
20
|
-
export { assistantMessageItemParamTypeEnum } from "./types.ts";
|
|
21
|
-
export { assistantMessageItemParamRoleEnum } from "./types.ts";
|
|
22
|
-
export { functionCallItemStatusEnum } from "./types.ts";
|
|
23
|
-
export { functionCallStatusEnum } from "./types.ts";
|
|
24
|
-
export { functionCallItemParamTypeEnum } from "./types.ts";
|
|
25
|
-
export { inputVideoContentTypeEnum } from "./types.ts";
|
|
26
|
-
export { functionCallOutputItemParamTypeEnum } from "./types.ts";
|
|
27
|
-
export { includeEnumEnum } from "./types.ts";
|
|
28
|
-
export { functionToolParamTypeEnum } from "./types.ts";
|
|
29
|
-
export { specificFunctionParamTypeEnum } from "./types.ts";
|
|
30
|
-
export { toolChoiceValueEnumEnum } from "./types.ts";
|
|
31
|
-
export { allowedToolsParamTypeEnum } from "./types.ts";
|
|
32
|
-
export { verbosityEnumEnum } from "./types.ts";
|
|
33
|
-
export { textResponseFormatTypeEnum } from "./types.ts";
|
|
34
|
-
export { jsonSchemaResponseFormatParamTypeEnum } from "./types.ts";
|
|
35
|
-
export { reasoningEffortEnumEnum } from "./types.ts";
|
|
36
|
-
export { reasoningSummaryEnumEnum } from "./types.ts";
|
|
37
|
-
export { truncationEnumEnum } from "./types.ts";
|
|
38
|
-
export { serviceTierEnumEnum } from "./types.ts";
|
|
39
|
-
export { messageRoleEnum } from "./types.ts";
|
|
40
|
-
export { inputTextContentTypeEnum } from "./types.ts";
|
|
41
|
-
export { urlCitationBodyTypeEnum } from "./types.ts";
|
|
42
|
-
export { outputTextContentTypeEnum } from "./types.ts";
|
|
43
|
-
export { textContentTypeEnum } from "./types.ts";
|
|
44
|
-
export { summaryTextContentTypeEnum } from "./types.ts";
|
|
45
|
-
export { reasoningTextContentTypeEnum } from "./types.ts";
|
|
46
|
-
export { refusalContentTypeEnum } from "./types.ts";
|
|
47
|
-
export { inputImageContentTypeEnum } from "./types.ts";
|
|
48
|
-
export { inputFileContentTypeEnum } from "./types.ts";
|
|
49
|
-
export { messageStatusEnum } from "./types.ts";
|
|
50
|
-
export { messageTypeEnum } from "./types.ts";
|
|
51
|
-
export { functionCallTypeEnum } from "./types.ts";
|
|
52
|
-
export { functionCallOutputStatusEnumEnum } from "./types.ts";
|
|
53
|
-
export { functionCallOutputTypeEnum } from "./types.ts";
|
|
54
|
-
export { reasoningBodyTypeEnum } from "./types.ts";
|
|
55
|
-
export { functionToolTypeEnum } from "./types.ts";
|
|
56
|
-
export { functionToolChoiceTypeEnum } from "./types.ts";
|
|
57
|
-
export { allowedToolChoiceTypeEnum } from "./types.ts";
|
|
58
|
-
export { jsonObjectResponseFormatTypeEnum } from "./types.ts";
|
|
59
|
-
export { jsonSchemaResponseFormatTypeEnum } from "./types.ts";
|
|
60
|
-
export { responseResourceObjectEnum } from "./types.ts";
|
|
61
|
-
export { responseCreatedStreamingEventTypeEnum } from "./types.ts";
|
|
62
|
-
export { responseQueuedStreamingEventTypeEnum } from "./types.ts";
|
|
63
|
-
export { responseInProgressStreamingEventTypeEnum } from "./types.ts";
|
|
64
|
-
export { responseCompletedStreamingEventTypeEnum } from "./types.ts";
|
|
65
|
-
export { responseFailedStreamingEventTypeEnum } from "./types.ts";
|
|
66
|
-
export { responseIncompleteStreamingEventTypeEnum } from "./types.ts";
|
|
67
|
-
export { responseOutputItemAddedStreamingEventTypeEnum } from "./types.ts";
|
|
68
|
-
export { responseOutputItemDoneStreamingEventTypeEnum } from "./types.ts";
|
|
69
|
-
export { responseReasoningSummaryPartAddedStreamingEventTypeEnum } from "./types.ts";
|
|
70
|
-
export { responseReasoningSummaryPartDoneStreamingEventTypeEnum } from "./types.ts";
|
|
71
|
-
export { responseContentPartAddedStreamingEventTypeEnum } from "./types.ts";
|
|
72
|
-
export { responseContentPartDoneStreamingEventTypeEnum } from "./types.ts";
|
|
73
|
-
export { responseOutputTextDeltaStreamingEventTypeEnum } from "./types.ts";
|
|
74
|
-
export { responseOutputTextDoneStreamingEventTypeEnum } from "./types.ts";
|
|
75
|
-
export { responseRefusalDeltaStreamingEventTypeEnum } from "./types.ts";
|
|
76
|
-
export { responseRefusalDoneStreamingEventTypeEnum } from "./types.ts";
|
|
77
|
-
export { responseReasoningDeltaStreamingEventTypeEnum } from "./types.ts";
|
|
78
|
-
export { responseReasoningDoneStreamingEventTypeEnum } from "./types.ts";
|
|
79
|
-
export { responseReasoningSummaryDeltaStreamingEventTypeEnum } from "./types.ts";
|
|
80
|
-
export { responseReasoningSummaryDoneStreamingEventTypeEnum } from "./types.ts";
|
|
81
|
-
export { responseOutputTextAnnotationAddedStreamingEventTypeEnum } from "./types.ts";
|
|
82
|
-
export { responseFunctionCallArgumentsDeltaStreamingEventTypeEnum } from "./types.ts";
|
|
83
|
-
export { responseFunctionCallArgumentsDoneStreamingEventTypeEnum } from "./types.ts";
|
|
84
|
-
export { errorStreamingEventTypeEnum } from "./types.ts";
|
|
85
|
-
export { allowedToolChoiceSchema } from "./zod/allowedToolChoiceSchema.ts";
|
|
86
|
-
export { allowedToolsParamSchema } from "./zod/allowedToolsParamSchema.ts";
|
|
87
|
-
export { annotationSchema } from "./zod/annotationSchema.ts";
|
|
88
|
-
export { assistantMessageItemParamSchema } from "./zod/assistantMessageItemParamSchema.ts";
|
|
89
|
-
export { createResponseBodySchema } from "./zod/createResponseBodySchema.ts";
|
|
90
|
-
export { createresponse200Schema, createresponseMutationRequestSchema, createresponseMutationResponseSchema } from "./zod/createresponseSchema.ts";
|
|
91
|
-
export { detailEnumSchema } from "./zod/detailEnumSchema.ts";
|
|
92
|
-
export { developerMessageItemParamSchema } from "./zod/developerMessageItemParamSchema.ts";
|
|
93
|
-
export { emptyModelParamSchema } from "./zod/emptyModelParamSchema.ts";
|
|
94
|
-
export { errorPayloadSchema } from "./zod/errorPayloadSchema.ts";
|
|
95
|
-
export { errorSchema } from "./zod/errorSchema.ts";
|
|
96
|
-
export { errorStreamingEventSchema } from "./zod/errorStreamingEventSchema.ts";
|
|
97
|
-
export { functionCallItemParamSchema } from "./zod/functionCallItemParamSchema.ts";
|
|
98
|
-
export { functionCallItemStatusSchema } from "./zod/functionCallItemStatusSchema.ts";
|
|
99
|
-
export { functionCallOutputItemParamSchema } from "./zod/functionCallOutputItemParamSchema.ts";
|
|
100
|
-
export { functionCallOutputSchema } from "./zod/functionCallOutputSchema.ts";
|
|
101
|
-
export { functionCallOutputStatusEnumSchema } from "./zod/functionCallOutputStatusEnumSchema.ts";
|
|
102
|
-
export { functionCallSchema } from "./zod/functionCallSchema.ts";
|
|
103
|
-
export { functionCallStatusSchema } from "./zod/functionCallStatusSchema.ts";
|
|
104
|
-
export { functionToolChoiceSchema } from "./zod/functionToolChoiceSchema.ts";
|
|
105
|
-
export { functionToolParamSchema } from "./zod/functionToolParamSchema.ts";
|
|
106
|
-
export { functionToolSchema } from "./zod/functionToolSchema.ts";
|
|
107
|
-
export { imageDetailSchema } from "./zod/imageDetailSchema.ts";
|
|
108
|
-
export { includeEnumSchema } from "./zod/includeEnumSchema.ts";
|
|
109
|
-
export { incompleteDetailsSchema } from "./zod/incompleteDetailsSchema.ts";
|
|
110
|
-
export { inputFileContentParamSchema } from "./zod/inputFileContentParamSchema.ts";
|
|
111
|
-
export { inputFileContentSchema } from "./zod/inputFileContentSchema.ts";
|
|
112
|
-
export { inputImageContentParamAutoParamSchema } from "./zod/inputImageContentParamAutoParamSchema.ts";
|
|
113
|
-
export { inputImageContentSchema } from "./zod/inputImageContentSchema.ts";
|
|
114
|
-
export { inputTextContentParamSchema } from "./zod/inputTextContentParamSchema.ts";
|
|
115
|
-
export { inputTextContentSchema } from "./zod/inputTextContentSchema.ts";
|
|
116
|
-
export { inputTokensDetailsSchema } from "./zod/inputTokensDetailsSchema.ts";
|
|
117
|
-
export { inputVideoContentSchema } from "./zod/inputVideoContentSchema.ts";
|
|
118
|
-
export { itemFieldSchema } from "./zod/itemFieldSchema.ts";
|
|
119
|
-
export { itemParamSchema } from "./zod/itemParamSchema.ts";
|
|
120
|
-
export { itemReferenceParamSchema } from "./zod/itemReferenceParamSchema.ts";
|
|
121
|
-
export { jsonObjectResponseFormatSchema } from "./zod/jsonObjectResponseFormatSchema.ts";
|
|
122
|
-
export { jsonSchemaResponseFormatParamSchema } from "./zod/jsonSchemaResponseFormatParamSchema.ts";
|
|
123
|
-
export { jsonSchemaResponseFormatSchema } from "./zod/jsonSchemaResponseFormatSchema.ts";
|
|
124
|
-
export { logProbSchema } from "./zod/logProbSchema.ts";
|
|
125
|
-
export { messageRoleSchema } from "./zod/messageRoleSchema.ts";
|
|
126
|
-
export { messageSchema } from "./zod/messageSchema.ts";
|
|
127
|
-
export { messageStatusSchema } from "./zod/messageStatusSchema.ts";
|
|
128
|
-
export { metadataParamSchema } from "./zod/metadataParamSchema.ts";
|
|
129
|
-
export { outputTextContentParamSchema } from "./zod/outputTextContentParamSchema.ts";
|
|
130
|
-
export { outputTextContentSchema } from "./zod/outputTextContentSchema.ts";
|
|
131
|
-
export { outputTokensDetailsSchema } from "./zod/outputTokensDetailsSchema.ts";
|
|
132
|
-
export { reasoningBodySchema } from "./zod/reasoningBodySchema.ts";
|
|
133
|
-
export { reasoningEffortEnumSchema } from "./zod/reasoningEffortEnumSchema.ts";
|
|
134
|
-
export { reasoningItemParamSchema } from "./zod/reasoningItemParamSchema.ts";
|
|
135
|
-
export { reasoningParamSchema } from "./zod/reasoningParamSchema.ts";
|
|
136
|
-
export { reasoningSchema } from "./zod/reasoningSchema.ts";
|
|
137
|
-
export { reasoningSummaryContentParamSchema } from "./zod/reasoningSummaryContentParamSchema.ts";
|
|
138
|
-
export { reasoningSummaryEnumSchema } from "./zod/reasoningSummaryEnumSchema.ts";
|
|
139
|
-
export { reasoningTextContentSchema } from "./zod/reasoningTextContentSchema.ts";
|
|
140
|
-
export { refusalContentParamSchema } from "./zod/refusalContentParamSchema.ts";
|
|
141
|
-
export { refusalContentSchema } from "./zod/refusalContentSchema.ts";
|
|
142
|
-
export { responseCompletedStreamingEventSchema } from "./zod/responseCompletedStreamingEventSchema.ts";
|
|
143
|
-
export { responseContentPartAddedStreamingEventSchema } from "./zod/responseContentPartAddedStreamingEventSchema.ts";
|
|
144
|
-
export { responseContentPartDoneStreamingEventSchema } from "./zod/responseContentPartDoneStreamingEventSchema.ts";
|
|
145
|
-
export { responseCreatedStreamingEventSchema } from "./zod/responseCreatedStreamingEventSchema.ts";
|
|
146
|
-
export { responseFailedStreamingEventSchema } from "./zod/responseFailedStreamingEventSchema.ts";
|
|
147
|
-
export { responseFunctionCallArgumentsDeltaStreamingEventSchema } from "./zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts";
|
|
148
|
-
export { responseFunctionCallArgumentsDoneStreamingEventSchema } from "./zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts";
|
|
149
|
-
export { responseIncompleteStreamingEventSchema } from "./zod/responseIncompleteStreamingEventSchema.ts";
|
|
150
|
-
export { responseInProgressStreamingEventSchema } from "./zod/responseInProgressStreamingEventSchema.ts";
|
|
151
|
-
export { responseOutputItemAddedStreamingEventSchema } from "./zod/responseOutputItemAddedStreamingEventSchema.ts";
|
|
152
|
-
export { responseOutputItemDoneStreamingEventSchema } from "./zod/responseOutputItemDoneStreamingEventSchema.ts";
|
|
153
|
-
export { responseOutputTextAnnotationAddedStreamingEventSchema } from "./zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts";
|
|
154
|
-
export { responseOutputTextDeltaStreamingEventSchema } from "./zod/responseOutputTextDeltaStreamingEventSchema.ts";
|
|
155
|
-
export { responseOutputTextDoneStreamingEventSchema } from "./zod/responseOutputTextDoneStreamingEventSchema.ts";
|
|
156
|
-
export { responseQueuedStreamingEventSchema } from "./zod/responseQueuedStreamingEventSchema.ts";
|
|
157
|
-
export { responseReasoningDeltaStreamingEventSchema } from "./zod/responseReasoningDeltaStreamingEventSchema.ts";
|
|
158
|
-
export { responseReasoningDoneStreamingEventSchema } from "./zod/responseReasoningDoneStreamingEventSchema.ts";
|
|
159
|
-
export { responseReasoningSummaryDeltaStreamingEventSchema } from "./zod/responseReasoningSummaryDeltaStreamingEventSchema.ts";
|
|
160
|
-
export { responseReasoningSummaryDoneStreamingEventSchema } from "./zod/responseReasoningSummaryDoneStreamingEventSchema.ts";
|
|
161
|
-
export { responseReasoningSummaryPartAddedStreamingEventSchema } from "./zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts";
|
|
162
|
-
export { responseReasoningSummaryPartDoneStreamingEventSchema } from "./zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts";
|
|
163
|
-
export { responseRefusalDeltaStreamingEventSchema } from "./zod/responseRefusalDeltaStreamingEventSchema.ts";
|
|
164
|
-
export { responseRefusalDoneStreamingEventSchema } from "./zod/responseRefusalDoneStreamingEventSchema.ts";
|
|
165
|
-
export { responseResourceSchema } from "./zod/responseResourceSchema.ts";
|
|
166
|
-
export { responsesToolParamSchema } from "./zod/responsesToolParamSchema.ts";
|
|
167
|
-
export { serviceTierEnumSchema } from "./zod/serviceTierEnumSchema.ts";
|
|
168
|
-
export { specificFunctionParamSchema } from "./zod/specificFunctionParamSchema.ts";
|
|
169
|
-
export { specificToolChoiceParamSchema } from "./zod/specificToolChoiceParamSchema.ts";
|
|
170
|
-
export { streamOptionsParamSchema } from "./zod/streamOptionsParamSchema.ts";
|
|
171
|
-
export { summaryTextContentSchema } from "./zod/summaryTextContentSchema.ts";
|
|
172
|
-
export { systemMessageItemParamSchema } from "./zod/systemMessageItemParamSchema.ts";
|
|
173
|
-
export { textContentSchema } from "./zod/textContentSchema.ts";
|
|
174
|
-
export { textFieldSchema } from "./zod/textFieldSchema.ts";
|
|
175
|
-
export { textFormatParamSchema } from "./zod/textFormatParamSchema.ts";
|
|
176
|
-
export { textParamSchema } from "./zod/textParamSchema.ts";
|
|
177
|
-
export { textResponseFormatSchema } from "./zod/textResponseFormatSchema.ts";
|
|
178
|
-
export { toolChoiceParamSchema } from "./zod/toolChoiceParamSchema.ts";
|
|
179
|
-
export { toolChoiceValueEnumSchema } from "./zod/toolChoiceValueEnumSchema.ts";
|
|
180
|
-
export { toolSchema } from "./zod/toolSchema.ts";
|
|
181
|
-
export { topLogProbSchema } from "./zod/topLogProbSchema.ts";
|
|
182
|
-
export { truncationEnumSchema } from "./zod/truncationEnumSchema.ts";
|
|
183
|
-
export { urlCitationBodySchema } from "./zod/urlCitationBodySchema.ts";
|
|
184
|
-
export { urlCitationParamSchema } from "./zod/urlCitationParamSchema.ts";
|
|
185
|
-
export { usageSchema } from "./zod/usageSchema.ts";
|
|
186
|
-
export { userMessageItemParamSchema } from "./zod/userMessageItemParamSchema.ts";
|
|
187
|
-
export { verbosityEnumSchema } from "./zod/verbosityEnumSchema.ts";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"type":{"type":"string","enum":["allowed_tools"],"default":"allowed_tools"},"tools":{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["function"],"default":"function"},"name":{"type":"string"}},"type":"object","required":["type"],"x-readme-ref-name":"FunctionToolChoice"}]},"type":"array"},"mode":{"type":"string","enum":["none","auto","required"],"x-enumDescriptions":{"auto":"Let the model choose the tools from among the provided set.","none":"Restrict the model from calling any tools.","required":"Require the model to call a tool."},"x-readme-ref-name":"ToolChoiceValueEnum"}},"type":"object","required":["type","tools","mode"],"x-readme-ref-name":"AllowedToolChoice"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"type":{"type":"string","enum":["allowed_tools"],"description":"The tool choice type. Always `allowed_tools`.","default":"allowed_tools"},"tools":{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["function"],"description":"The tool to call. Always `function`.","default":"function"},"name":{"type":"string","description":"The name of the function tool to call."}},"type":"object","required":["type","name"],"x-readme-ref-name":"SpecificFunctionParam"}],"x-readme-ref-name":"SpecificToolChoiceParam"},"type":"array","maxItems":128,"minItems":1,"description":"The list of tools that are permitted for this request."},"mode":{"allOf":[{"type":"string","enum":["none","auto","required"],"x-enumDescriptions":{"auto":"Let the model choose the tools from among the provided set.","none":"Restrict the model from calling any tools.","required":"Require the model to call a tool."},"x-readme-ref-name":"ToolChoiceValueEnum"},{"description":"How to select a tool from the allowed set."}]}},"type":"object","required":["type","tools"],"x-readme-ref-name":"AllowedToolsParam"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"oneOf":[{"properties":{"type":{"type":"string","enum":["url_citation"],"description":"The type of the URL citation. Always `url_citation`.","default":"url_citation"},"url":{"type":"string","description":"The URL of the web resource."},"start_index":{"type":"integer","description":"The index of the first character of the URL citation in the message."},"end_index":{"type":"integer","description":"The index of the last character of the URL citation in the message."},"title":{"type":"string","description":"The title of the web resource."}},"type":"object","required":["type","url","start_index","end_index","title"],"title":"URL citation","description":"A citation for a web resource used to generate a model response.","x-readme-ref-name":"UrlCitationBody"}],"description":"An annotation that applies to a span of output text.","discriminator":{"propertyName":"type"},"x-readme-ref-name":"Annotation"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this message item.","example":"msg_123"},{"type":"null"}]},"type":{"type":"string","enum":["message"],"description":"The item type. Always `message`.","default":"message"},"role":{"type":"string","enum":["assistant"],"description":"The role of the message author. Always `assistant`.","default":"assistant"},"content":{"oneOf":[{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["output_text"],"description":"The content type. Always `output_text`.","default":"output_text"},"text":{"type":"string","maxLength":10485760,"description":"The text content."},"annotations":{"oneOf":[{"items":{"properties":{"type":{"type":"string","enum":["url_citation"],"description":"The citation type. Always `url_citation`.","default":"url_citation"},"start_index":{"type":"integer","minimum":0,"description":"The index of the first character of the citation in the message."},"end_index":{"type":"integer","minimum":0,"description":"The index of the last character of the citation in the message."},"url":{"type":"string","description":"The URL of the cited resource."},"title":{"type":"string","description":"The title of the cited resource."}},"type":"object","required":["type","start_index","end_index","url","title"],"x-readme-ref-name":"UrlCitationParam"},"type":"array"}],"description":"Citations associated with the text content."}},"type":"object","required":["type","text"],"x-readme-ref-name":"OutputTextContentParam"},{"properties":{"type":{"type":"string","enum":["refusal"],"description":"The content type. Always `refusal`.","default":"refusal"},"refusal":{"type":"string","maxLength":10485760,"description":"The refusal text."}},"type":"object","required":["type","refusal"],"x-readme-ref-name":"RefusalContentParam"}],"description":"A piece of assistant message content, such as text or a refusal.","discriminator":{"propertyName":"type"}},"type":"array"},{"type":"string","maxLength":10485760,"description":"The message content, as a single string."}],"description":"The message content, as an array of content parts."},"status":{"anyOf":[{"type":"string","description":"The status of the message item."},{"type":"null"}]}},"type":"object","required":["type","role","content"],"x-readme-ref-name":"AssistantMessageItemParam"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"model":{"anyOf":[{"type":"string","description":"The model to use for this request, e.g. 'gpt-5.2'."},{"type":"null"}]},"input":{"anyOf":[{"oneOf":[{"type":"string","maxLength":10485760},{"items":{"oneOf":[{"properties":{"type":{"anyOf":[{"type":"string","enum":["item_reference"],"description":"The type of item to reference. Always `item_reference`.","default":"item_reference"},{"type":"null"}]},"id":{"type":"string","description":"The ID of the item to reference."}},"type":"object","required":["id"],"title":"Item reference","description":"An internal identifier for an item to reference.","x-readme-ref-name":"ItemReferenceParam"},{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this reasoning item.","example":"rs_123"},{"type":"null"}]},"type":{"type":"string","enum":["reasoning"],"description":"The item type. Always `reasoning`.","default":"reasoning"},"summary":{"items":{"properties":{"type":{"type":"string","enum":["summary_text"],"description":"The content type. Always `summary_text`.","default":"summary_text"},"text":{"type":"string","maxLength":10485760,"description":"The reasoning summary text."}},"type":"object","required":["type","text"],"x-readme-ref-name":"ReasoningSummaryContentParam"},"type":"array","description":"Reasoning summary content associated with this item."},"content":{"anyOf":[{"type":"null"}]},"encrypted_content":{"anyOf":[{"type":"string","description":"An encrypted representation of the reasoning content."},{"type":"null"}]}},"type":"object","required":["type","summary"],"x-readme-ref-name":"ReasoningItemParam"},{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this message item.","example":"msg_123"},{"type":"null"}]},"type":{"type":"string","enum":["message"],"description":"The item type. Always `message`.","default":"message"},"role":{"type":"string","enum":["user"],"description":"The message role. Always `user`.","default":"user"},"content":{"oneOf":[{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["input_text"],"description":"The type of the input item. Always `input_text`.","default":"input_text"},"text":{"type":"string","maxLength":10485760,"description":"The text input to the model."}},"type":"object","required":["type","text"],"title":"Input text","description":"A text input to the model.","x-unionDisplay":"section","x-unionTitle":"Content Type","x-readme-ref-name":"InputTextContentParam"},{"properties":{"type":{"type":"string","enum":["input_image"],"description":"The type of the input item. Always `input_image`.","default":"input_image"},"image_url":{"anyOf":[{"type":"string","maxLength":20971520,"description":"The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL."},{"type":"null"}]},"detail":{"anyOf":[{"allOf":[{"type":"string","enum":["low","high","auto"],"x-enumDescriptions":{"auto":"Choose the detail level automatically.","high":"Allows the model to \"see\" a higher-resolution version of the image, usually increasing input token costs.","low":"Restricts the model to a lower-resolution version of the image."},"x-readme-ref-name":"ImageDetail"},{"description":"The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`."}]},{"type":"null"}]}},"type":"object","required":["type"],"title":"Input image","description":"An image input to the model. Learn about [image inputs](/docs/guides/vision)","x-readme-ref-name":"InputImageContentParamAutoParam"},{"properties":{"type":{"type":"string","enum":["input_file"],"description":"The type of the input item. Always `input_file`.","default":"input_file"},"filename":{"anyOf":[{"type":"string","description":"The name of the file to be sent to the model."},{"type":"null"}]},"file_data":{"anyOf":[{"type":"string","maxLength":33554432,"description":"The base64-encoded data of the file to be sent to the model."},{"type":"null"}]},"file_url":{"anyOf":[{"type":"string","description":"The URL of the file to be sent to the model."},{"type":"null"}]}},"type":"object","required":["type"],"title":"Input file","description":"A file input to the model.","x-readme-ref-name":"InputFileContentParam"}],"description":"A piece of message content, such as text, an image, or a file.","discriminator":{"propertyName":"type"}},"type":"array"},{"type":"string","maxLength":10485760,"description":"The message content, as a single string."}],"description":"The message content, as an array of content parts."},"status":{"anyOf":[{"type":"string","description":"The status of the message item."},{"type":"null"}]}},"type":"object","required":["type","role","content"],"x-readme-ref-name":"UserMessageItemParam"},{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this message item.","example":"msg_123"},{"type":"null"}]},"type":{"type":"string","enum":["message"],"description":"The item type. Always `message`.","default":"message"},"role":{"type":"string","enum":["system"],"description":"The message role. Always `system`.","default":"system"},"content":{"oneOf":[{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["input_text"],"description":"The type of the input item. Always `input_text`.","default":"input_text"},"text":{"type":"string","maxLength":10485760,"description":"The text input to the model."}},"type":"object","required":["type","text"],"title":"Input text","description":"A text input to the model.","x-unionDisplay":"section","x-unionTitle":"Content Type","x-readme-ref-name":"InputTextContentParam"}],"discriminator":{"propertyName":"type"}},"type":"array"},{"type":"string","maxLength":10485760,"description":"The message content, as a single string."}],"description":"The message content, as an array of content parts."},"status":{"anyOf":[{"type":"string","description":"The status of the message item."},{"type":"null"}]}},"type":"object","required":["type","role","content"],"x-readme-ref-name":"SystemMessageItemParam"},{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this message item.","example":"msg_123"},{"type":"null"}]},"type":{"type":"string","enum":["message"],"description":"The item type. Always `message`.","default":"message"},"role":{"type":"string","enum":["developer"],"description":"The message role. Always `developer`.","default":"developer"},"content":{"oneOf":[{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["input_text"],"description":"The type of the input item. Always `input_text`.","default":"input_text"},"text":{"type":"string","maxLength":10485760,"description":"The text input to the model."}},"type":"object","required":["type","text"],"title":"Input text","description":"A text input to the model.","x-unionDisplay":"section","x-unionTitle":"Content Type","x-readme-ref-name":"InputTextContentParam"}],"discriminator":{"propertyName":"type"}},"type":"array"},{"type":"string","maxLength":10485760,"description":"The message content, as a single string."}],"description":"The message content, as an array of content parts."},"status":{"anyOf":[{"type":"string","description":"The status of the message item."},{"type":"null"}]}},"type":"object","required":["type","role","content"],"x-readme-ref-name":"DeveloperMessageItemParam"},{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this message item.","example":"msg_123"},{"type":"null"}]},"type":{"type":"string","enum":["message"],"description":"The item type. Always `message`.","default":"message"},"role":{"type":"string","enum":["assistant"],"description":"The role of the message author. Always `assistant`.","default":"assistant"},"content":{"oneOf":[{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["output_text"],"description":"The content type. Always `output_text`.","default":"output_text"},"text":{"type":"string","maxLength":10485760,"description":"The text content."},"annotations":{"oneOf":[{"items":{"properties":{"type":{"type":"string","enum":["url_citation"],"description":"The citation type. Always `url_citation`.","default":"url_citation"},"start_index":{"type":"integer","minimum":0,"description":"The index of the first character of the citation in the message."},"end_index":{"type":"integer","minimum":0,"description":"The index of the last character of the citation in the message."},"url":{"type":"string","description":"The URL of the cited resource."},"title":{"type":"string","description":"The title of the cited resource."}},"type":"object","required":["type","start_index","end_index","url","title"],"x-readme-ref-name":"UrlCitationParam"},"type":"array"}],"description":"Citations associated with the text content."}},"type":"object","required":["type","text"],"x-readme-ref-name":"OutputTextContentParam"},{"properties":{"type":{"type":"string","enum":["refusal"],"description":"The content type. Always `refusal`.","default":"refusal"},"refusal":{"type":"string","maxLength":10485760,"description":"The refusal text."}},"type":"object","required":["type","refusal"],"x-readme-ref-name":"RefusalContentParam"}],"description":"A piece of assistant message content, such as text or a refusal.","discriminator":{"propertyName":"type"}},"type":"array"},{"type":"string","maxLength":10485760,"description":"The message content, as a single string."}],"description":"The message content, as an array of content parts."},"status":{"anyOf":[{"type":"string","description":"The status of the message item."},{"type":"null"}]}},"type":"object","required":["type","role","content"],"x-readme-ref-name":"AssistantMessageItemParam"},{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this function tool call.","example":"fc_123"},{"type":"null"}]},"call_id":{"type":"string","maxLength":64,"minLength":1,"description":"The unique ID of the function tool call generated by the model."},"type":{"type":"string","enum":["function_call"],"description":"The item type. Always `function_call`.","default":"function_call"},"name":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","description":"The name of the function to call."},"arguments":{"type":"string","description":"The function arguments as a JSON string."},"status":{"anyOf":[{"allOf":[{"type":"string","enum":["in_progress","completed","incomplete"],"x-enumDescriptions":{"completed":"Model has finished sampling this item.","in_progress":"Model is currently sampling this item.","incomplete":"Model was interrupted from sampling this item partway through. This can occur, for example, if the model encounters a stop token or exhausts its output_token budget."},"x-readme-ref-name":"FunctionCallStatus"},{"description":"The status of the function tool call."}]},{"type":"null"}]}},"type":"object","required":["call_id","type","name","arguments"],"x-readme-ref-name":"FunctionCallItemParam"},{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of the function tool call output. Populated when this item is returned via API.","example":"fc_123"},{"type":"null"}]},"call_id":{"type":"string","maxLength":64,"minLength":1,"description":"The unique ID of the function tool call generated by the model."},"type":{"type":"string","enum":["function_call_output"],"description":"The type of the function tool call output. Always `function_call_output`.","default":"function_call_output"},"output":{"oneOf":[{"type":"string","maxLength":10485760,"description":"A JSON string of the output of the function tool call."},{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["input_text"],"description":"The type of the input item. Always `input_text`.","default":"input_text"},"text":{"type":"string","maxLength":10485760,"description":"The text input to the model."}},"type":"object","required":["type","text"],"title":"Input text","description":"A text input to the model.","x-unionDisplay":"section","x-unionTitle":"Content Type","x-readme-ref-name":"InputTextContentParam"},{"properties":{"type":{"type":"string","enum":["input_image"],"description":"The type of the input item. Always `input_image`.","default":"input_image"},"image_url":{"anyOf":[{"type":"string","maxLength":20971520,"description":"The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL."},{"type":"null"}]},"detail":{"anyOf":[{"allOf":[{"type":"string","enum":["low","high","auto"],"x-enumDescriptions":{"auto":"Choose the detail level automatically.","high":"Allows the model to \"see\" a higher-resolution version of the image, usually increasing input token costs.","low":"Restricts the model to a lower-resolution version of the image."},"x-readme-ref-name":"ImageDetail"},{"description":"The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`."}]},{"type":"null"}]}},"type":"object","required":["type"],"title":"Input image","description":"An image input to the model. Learn about [image inputs](/docs/guides/vision)","x-readme-ref-name":"InputImageContentParamAutoParam"},{"properties":{"type":{"type":"string","enum":["input_file"],"description":"The type of the input item. Always `input_file`.","default":"input_file"},"filename":{"anyOf":[{"type":"string","description":"The name of the file to be sent to the model."},{"type":"null"}]},"file_data":{"anyOf":[{"type":"string","maxLength":33554432,"description":"The base64-encoded data of the file to be sent to the model."},{"type":"null"}]},"file_url":{"anyOf":[{"type":"string","description":"The URL of the file to be sent to the model."},{"type":"null"}]}},"type":"object","required":["type"],"title":"Input file","description":"A file input to the model.","x-readme-ref-name":"InputFileContentParam"},{"type":"object","description":"A content block representing a video input to the model.","properties":{"type":{"type":"string","enum":["input_video"],"description":"The type of the input content. Always `input_video`."},"video_url":{"type":"string","description":"A base64 or remote url that resolves to a video file."}},"required":["type","video_url"],"x-readme-ref-name":"InputVideoContent"}],"description":"A piece of message content, such as text, an image, or a file.","discriminator":{"propertyName":"type"}},"type":"array","description":"An array of content outputs (text, image, file) for the function tool call."}],"description":"Text, image, or file output of the function tool call."},"status":{"anyOf":[{"allOf":[{"type":"string","enum":["in_progress","completed","incomplete"],"x-enumDescriptions":{"completed":"Model has finished sampling this item.","in_progress":"Model is currently sampling this item.","incomplete":"Model was interrupted from sampling this item partway through. This can occur, for example, if the model encounters a stop token or exhausts its output_token budget."},"x-readme-ref-name":"FunctionCallStatus"},{"description":"The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API."}]},{"type":"null"}]}},"type":"object","required":["call_id","type","output"],"title":"Function tool call output","description":"The output of a function tool call.","x-readme-ref-name":"FunctionCallOutputItemParam"}],"discriminator":{"propertyName":"type"},"x-unionDisplay":"section","x-unionTitle":"Input Item Types","x-readme-ref-name":"ItemParam"},"type":"array"}],"description":"Context to provide to the model for the scope of this request. May either be a string or an array of input items. If a string is provided, it is interpreted as a user message."},{"type":"null"}]},"previous_response_id":{"anyOf":[{"type":"string","description":"The ID of the response to use as the prior turn for this request.","example":"resp_123"},{"type":"null"}]},"include":{"items":{"type":"string","enum":["reasoning.encrypted_content","message.output_text.logprobs"],"description":"","x-enumDescriptions":{"message.output_text.logprobs":"includes sampled logprobs in assistant messages.","reasoning.encrypted_content":"includes encrypted reasoning content so that it may be rehydrated on a subsequent request."},"x-readme-ref-name":"IncludeEnum"},"type":"array"},"tools":{"anyOf":[{"items":{"oneOf":[{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$"},"description":{"anyOf":[{"type":"string"},{"type":"null"}]},"parameters":{"anyOf":[{"properties":{},"type":"object","required":[],"x-readme-ref-name":"EmptyModelParam"},{"type":"null"}]},"strict":{"type":"boolean"},"type":{"type":"string","enum":["function"],"default":"function"}},"type":"object","required":["name","type"],"x-readme-ref-name":"FunctionToolParam"}],"discriminator":{"propertyName":"type"},"x-unionDisplay":"section","x-unionTitle":"Tool Types","x-readme-ref-name":"ResponsesToolParam"},"type":"array","description":"A list of tools that the model may call while generating the response."},{"type":"null"}]},"tool_choice":{"anyOf":[{"allOf":[{"oneOf":[{"oneOf":[{"properties":{"type":{"type":"string","enum":["function"],"description":"The tool to call. Always `function`.","default":"function"},"name":{"type":"string","description":"The name of the function tool to call."}},"type":"object","required":["type","name"],"x-readme-ref-name":"SpecificFunctionParam"}],"x-readme-ref-name":"SpecificToolChoiceParam"},{"type":"string","enum":["none","auto","required"],"x-enumDescriptions":{"auto":"Let the model choose the tools from among the provided set.","none":"Restrict the model from calling any tools.","required":"Require the model to call a tool."},"x-readme-ref-name":"ToolChoiceValueEnum"},{"properties":{"type":{"type":"string","enum":["allowed_tools"],"description":"The tool choice type. Always `allowed_tools`.","default":"allowed_tools"},"tools":{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["function"],"description":"The tool to call. Always `function`.","default":"function"},"name":{"type":"string","description":"The name of the function tool to call."}},"type":"object","required":["type","name"],"x-readme-ref-name":"SpecificFunctionParam"}],"x-readme-ref-name":"SpecificToolChoiceParam"},"type":"array","maxItems":128,"minItems":1,"description":"The list of tools that are permitted for this request."},"mode":{"allOf":[{"type":"string","enum":["none","auto","required"],"x-enumDescriptions":{"auto":"Let the model choose the tools from among the provided set.","none":"Restrict the model from calling any tools.","required":"Require the model to call a tool."},"x-readme-ref-name":"ToolChoiceValueEnum"},{"description":"How to select a tool from the allowed set."}]}},"type":"object","required":["type","tools"],"x-readme-ref-name":"AllowedToolsParam"}],"description":"Controls which tool the model should use, if any.","x-readme-ref-name":"ToolChoiceParam"},{"description":"Controls which tool the model should use, if any."}]},{"type":"null"}],"x-unionTitle":"ToolChoiceParam"},"metadata":{"anyOf":[{"allOf":[{"additionalProperties":{"type":"string","maxLength":512},"type":"object","maxProperties":16,"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.","x-readme-ref-name":"MetadataParam"},{"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."}]},{"type":"null"}]},"text":{"anyOf":[{"allOf":[{"properties":{"format":{"description":"The format configuration for text output.","oneOf":[{"oneOf":[{"properties":{"type":{"type":"string","enum":["text"],"default":"text"}},"type":"object","required":["type"],"x-readme-ref-name":"TextResponseFormat"},{"type":"object","properties":{"type":{"type":"string","description":"The type of response format being defined. Always `json_schema`.","enum":["json_schema"]},"description":{"type":"string","description":"A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n"},"name":{"type":"string","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"},"schema":{"type":"object","title":"JSON schema","description":"The schema for the response format, described as a JSON Schema object.\n","additionalProperties":true},"strict":{"anyOf":[{"type":"boolean","default":false,"description":"Whether to enable strict schema adherence when generating the output.\nIf set to true, the model will always follow the exact schema defined\nin the `schema` field. Only a subset of JSON Schema is supported when\n`strict` is `true`.\n"},{"type":"null"}]}},"x-readme-ref-name":"JsonSchemaResponseFormatParam"}],"x-readme-ref-name":"TextFormatParam"},{"type":"null"}]},"verbosity":{"allOf":[{"type":"string","enum":["low","medium","high"],"x-enumDescriptions":{"high":"Instruct the model to emit more verbose final responses.","low":"Instruct the model to emit less verbose final responses.","medium":"Use the model's default verbosity setting."},"x-readme-ref-name":"VerbosityEnum"},{"description":"Controls the level of detail in generated text output."}]}},"type":"object","required":[],"x-readme-ref-name":"TextParam"},{"description":"Configuration options for text output."}]},{"type":"null"}]},"temperature":{"anyOf":[{"type":"number","description":"Sampling temperature to use, between 0 and 2. Higher values make the output more random."},{"type":"null"}]},"top_p":{"anyOf":[{"type":"number","description":"Nucleus sampling parameter, between 0 and 1. The model considers only the tokens with the top cumulative probability."},{"type":"null"}]},"presence_penalty":{"anyOf":[{"type":"number","description":"Penalizes new tokens based on whether they appear in the text so far."},{"type":"null"}]},"frequency_penalty":{"anyOf":[{"type":"number","description":"Penalizes new tokens based on their frequency in the text so far."},{"type":"null"}]},"parallel_tool_calls":{"anyOf":[{"type":"boolean","description":"Whether the model may call multiple tools in parallel."},{"type":"null"}]},"stream":{"type":"boolean","description":"Whether to stream response events as server-sent events."},"stream_options":{"anyOf":[{"allOf":[{"properties":{"include_obfuscation":{"type":"boolean","description":"Whether to obfuscate sensitive information in streamed output. Defaults to `true`."}},"type":"object","required":[],"description":"Options that control streamed response behavior.","x-readme-ref-name":"StreamOptionsParam"},{"description":"Options that control streamed response behavior."}]},{"type":"null"}]},"background":{"type":"boolean","description":"Whether to run the request in the background and return immediately."},"max_output_tokens":{"anyOf":[{"type":"integer","minimum":16,"description":"The maximum number of tokens the model may generate for this response."},{"type":"null"}]},"max_tool_calls":{"anyOf":[{"type":"integer","minimum":1,"description":"The maximum number of tool calls the model may make while generating the response."},{"type":"null"}]},"reasoning":{"anyOf":[{"allOf":[{"properties":{"effort":{"anyOf":[{"oneOf":[{"type":"string","enum":["none","low","medium","high","xhigh"],"x-enumDescriptions":{"high":"Use a higher reasoning effort to improve answer quality.","medium":"Use a balanced reasoning effort.","low":"Use a lower reasoning effort for faster responses.","minimal":"Use the lowest non-zero reasoning effort.","none":"Restrict the model from performing any reasoning before emitting a final answer.","xhigh":"Use the maximum reasoning effort available."},"x-readme-ref-name":"ReasoningEffortEnum"}],"description":"Controls the level of reasoning effort the model should apply. Higher effort may increase latency and cost."},{"type":"null"}]},"summary":{"anyOf":[{"allOf":[{"type":"string","enum":["concise","detailed","auto"],"x-enumDescriptions":{"auto":"Allow the model to decide when to summarize.","concise":"Emit concise summaries of reasoning content.","detailed":"Emit details summaries of reasoning content."},"x-readme-ref-name":"ReasoningSummaryEnum"},{"description":"Controls whether the response includes a reasoning summary."}]},{"type":"null"}]}},"type":"object","required":[],"description":"**gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).","x-readme-ref-name":"ReasoningParam"},{"description":"Configuration options for reasoning behavior."}]},{"type":"null"}]},"safety_identifier":{"anyOf":[{"type":"string","maxLength":64,"description":"A stable identifier used for safety monitoring and abuse detection."},{"type":"null"}]},"prompt_cache_key":{"anyOf":[{"type":"string","maxLength":64,"description":"A key to use when reading from or writing to the prompt cache."},{"type":"null"}]},"truncation":{"allOf":[{"type":"string","enum":["auto","disabled"],"x-enumDescriptions":{"auto":"Let the service decide how to truncate.","disabled":"Disable service truncation. Context over the model's context limit will result in a 400 error."},"x-readme-ref-name":"TruncationEnum"},{"description":"Controls how the service truncates the input when it exceeds the model context window."}]},"instructions":{"anyOf":[{"type":"string","description":"Additional instructions to guide the model for this request."},{"type":"null"}]},"store":{"type":"boolean","description":"Whether to store the response so it can be retrieved later."},"service_tier":{"allOf":[{"type":"string","enum":["auto","default","flex","priority"],"x-enumDescriptions":{"auto":"Choose a service tier automatically based on current account state.","default":"Choose the default service tier.","flex":"Choose the flex service tier.","priority":"Choose the priority service tier."},"x-readme-ref-name":"ServiceTierEnum"},{"description":"The service tier to use for this request."}]},"top_logprobs":{"anyOf":[{"type":"integer","maximum":20,"minimum":0,"description":"The number of most likely tokens to return at each position, along with their log probabilities."},{"type":"null"}]}},"type":"object","required":[],"x-readme-ref-name":"CreateResponseBody"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"string","enum":["low","high","auto"],"x-enumDescriptions":{"auto":"Choose the detail level automatically.","high":"Allows the model to \"see\" a higher-resolution version of the image, usually increasing input token costs.","low":"Restricts the model to a lower-resolution version of the image."},"x-readme-ref-name":"DetailEnum"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this message item.","example":"msg_123"},{"type":"null"}]},"type":{"type":"string","enum":["message"],"description":"The item type. Always `message`.","default":"message"},"role":{"type":"string","enum":["developer"],"description":"The message role. Always `developer`.","default":"developer"},"content":{"oneOf":[{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["input_text"],"description":"The type of the input item. Always `input_text`.","default":"input_text"},"text":{"type":"string","maxLength":10485760,"description":"The text input to the model."}},"type":"object","required":["type","text"],"title":"Input text","description":"A text input to the model.","x-unionDisplay":"section","x-unionTitle":"Content Type","x-readme-ref-name":"InputTextContentParam"}],"discriminator":{"propertyName":"type"}},"type":"array"},{"type":"string","maxLength":10485760,"description":"The message content, as a single string."}],"description":"The message content, as an array of content parts."},"status":{"anyOf":[{"type":"string","description":"The status of the message item."},{"type":"null"}]}},"type":"object","required":["type","role","content"],"x-readme-ref-name":"DeveloperMessageItemParam"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{},"type":"object","required":[],"x-readme-ref-name":"EmptyModelParam"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"code":{"type":"string","description":"A machine-readable error code that was returned."},"message":{"type":"string","description":"A human-readable description of the error that was returned."}},"type":"object","required":["code","message"],"title":"Error","description":"An error that occurred while generating the response.","x-readme-ref-name":"Error"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"type":{"type":"string","description":"The error type that was emitted."},"code":{"anyOf":[{"type":"string","description":"The error code that was emitted, if any."},{"type":"null"}]},"message":{"type":"string","description":"The human-readable error message that was emitted."},"param":{"anyOf":[{"type":"string","description":"The parameter name that was associated with the error, if any."},{"type":"null"}]},"headers":{"additionalProperties":{"type":"string","description":"The header value that was emitted."},"type":"object","description":"The response headers that were emitted with the error, if any."}},"type":"object","required":["type","code","message","param"],"title":"Error payload","description":"An error payload that was emitted for a streaming error event.","x-readme-ref-name":"ErrorPayload"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"type":{"type":"string","enum":["error"],"description":"The type of the event, always `error`.","default":"error"},"sequence_number":{"type":"integer","description":"The sequence number of the event that was emitted."},"error":{"allOf":[{"properties":{"type":{"type":"string","description":"The error type that was emitted."},"code":{"anyOf":[{"type":"string","description":"The error code that was emitted, if any."},{"type":"null"}]},"message":{"type":"string","description":"The human-readable error message that was emitted."},"param":{"anyOf":[{"type":"string","description":"The parameter name that was associated with the error, if any."},{"type":"null"}]},"headers":{"additionalProperties":{"type":"string","description":"The header value that was emitted."},"type":"object","description":"The response headers that were emitted with the error, if any."}},"type":"object","required":["type","code","message","param"],"title":"Error payload","description":"An error payload that was emitted for a streaming error event.","x-readme-ref-name":"ErrorPayload"},{"description":"The error payload that was emitted."}]}},"type":"object","required":["type","sequence_number","error"],"title":"Error event","description":"A streaming event that indicated an error was emitted.","x-readme-ref-name":"ErrorStreamingEvent"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"type":{"type":"string","enum":["function_call"],"description":"The type of the item. Always `function_call`.","default":"function_call"},"id":{"type":"string","description":"The unique ID of the function call item."},"call_id":{"type":"string","description":"The unique ID of the function tool call that was generated."},"name":{"type":"string","description":"The name of the function that was called."},"arguments":{"type":"string","description":"The arguments JSON string that was generated."},"status":{"allOf":[{"type":"string","enum":["in_progress","completed","incomplete"],"x-enumDescriptions":{"completed":"Model has finished sampling this item.","in_progress":"Model is currently sampling this item.","incomplete":"Model was interrupted from sampling this item partway through. This can occur, for example, if the model encounters a stop token or exhausts its output_token budget."},"x-readme-ref-name":"FunctionCallStatus"},{"description":"The status of the function call item that was recorded."}]}},"type":"object","required":["type","id","call_id","name","arguments","status"],"title":"Function call","description":"A function tool call that was generated by the model.","x-readme-ref-name":"FunctionCall"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of this function tool call.","example":"fc_123"},{"type":"null"}]},"call_id":{"type":"string","maxLength":64,"minLength":1,"description":"The unique ID of the function tool call generated by the model."},"type":{"type":"string","enum":["function_call"],"description":"The item type. Always `function_call`.","default":"function_call"},"name":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_-]+$","description":"The name of the function to call."},"arguments":{"type":"string","description":"The function arguments as a JSON string."},"status":{"anyOf":[{"allOf":[{"type":"string","enum":["in_progress","completed","incomplete"],"x-enumDescriptions":{"completed":"Model has finished sampling this item.","in_progress":"Model is currently sampling this item.","incomplete":"Model was interrupted from sampling this item partway through. This can occur, for example, if the model encounters a stop token or exhausts its output_token budget."},"x-readme-ref-name":"FunctionCallStatus"},{"description":"The status of the function tool call."}]},{"type":"null"}]}},"type":"object","required":["call_id","type","name","arguments"],"x-readme-ref-name":"FunctionCallItemParam"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"string","enum":["in_progress","completed","incomplete"],"x-readme-ref-name":"FunctionCallItemStatus"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"type":{"type":"string","enum":["function_call_output"],"description":"The type of the function tool call output. Always `function_call_output`.","default":"function_call_output"},"id":{"type":"string","description":"The unique ID of the function tool call output. Populated when this item is returned via API."},"call_id":{"type":"string","description":"The unique ID of the function tool call generated by the model."},"output":{"oneOf":[{"type":"string","description":"A JSON string of the output of the function tool call."},{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["input_text"],"description":"The type of the input item. Always `input_text`.","default":"input_text"},"text":{"type":"string","description":"The text input to the model."}},"type":"object","required":["type","text"],"title":"Input text","description":"A text input to the model.","x-readme-ref-name":"InputTextContent"},{"properties":{"type":{"type":"string","enum":["input_image"],"description":"The type of the input item. Always `input_image`.","default":"input_image"},"image_url":{"anyOf":[{"type":"string","description":"The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL."},{"type":"null"}]},"detail":{"allOf":[{"type":"string","enum":["low","high","auto"],"x-enumDescriptions":{"auto":"Choose the detail level automatically.","high":"Allows the model to \"see\" a higher-resolution version of the image, usually increasing input token costs.","low":"Restricts the model to a lower-resolution version of the image."},"x-readme-ref-name":"ImageDetail"},{"description":"The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`."}]}},"type":"object","required":["type","image_url","detail"],"title":"Input image","description":"An image input to the model. Learn about [image inputs](/docs/guides/vision).","x-readme-ref-name":"InputImageContent"},{"properties":{"type":{"type":"string","enum":["input_file"],"description":"The type of the input item. Always `input_file`.","default":"input_file"},"filename":{"type":"string","description":"The name of the file to be sent to the model."},"file_url":{"type":"string","description":"The URL of the file to be sent to the model."}},"type":"object","required":["type"],"title":"Input file","description":"A file input to the model.","x-readme-ref-name":"InputFileContent"}],"description":"A content part that makes up an input or output item.","discriminator":{"propertyName":"type"}},"type":"array","description":"An array of output contents (images, files, text) for the function tool call."}]},"status":{"allOf":[{"type":"string","enum":["in_progress","completed","incomplete"],"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.","x-readme-ref-name":"FunctionCallOutputStatusEnum"},{"description":"The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API."}]}},"type":"object","required":["type","id","call_id","output","status"],"title":"Function call output","description":"A function tool call output that was returned by the tool.","x-readme-ref-name":"FunctionCallOutput"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"properties":{"id":{"anyOf":[{"type":"string","description":"The unique ID of the function tool call output. Populated when this item is returned via API.","example":"fc_123"},{"type":"null"}]},"call_id":{"type":"string","maxLength":64,"minLength":1,"description":"The unique ID of the function tool call generated by the model."},"type":{"type":"string","enum":["function_call_output"],"description":"The type of the function tool call output. Always `function_call_output`.","default":"function_call_output"},"output":{"oneOf":[{"type":"string","maxLength":10485760,"description":"A JSON string of the output of the function tool call."},{"items":{"oneOf":[{"properties":{"type":{"type":"string","enum":["input_text"],"description":"The type of the input item. Always `input_text`.","default":"input_text"},"text":{"type":"string","maxLength":10485760,"description":"The text input to the model."}},"type":"object","required":["type","text"],"title":"Input text","description":"A text input to the model.","x-unionDisplay":"section","x-unionTitle":"Content Type","x-readme-ref-name":"InputTextContentParam"},{"properties":{"type":{"type":"string","enum":["input_image"],"description":"The type of the input item. Always `input_image`.","default":"input_image"},"image_url":{"anyOf":[{"type":"string","maxLength":20971520,"description":"The URL of the image to be sent to the model. A fully qualified URL or base64 encoded image in a data URL."},{"type":"null"}]},"detail":{"anyOf":[{"allOf":[{"type":"string","enum":["low","high","auto"],"x-enumDescriptions":{"auto":"Choose the detail level automatically.","high":"Allows the model to \"see\" a higher-resolution version of the image, usually increasing input token costs.","low":"Restricts the model to a lower-resolution version of the image."},"x-readme-ref-name":"ImageDetail"},{"description":"The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`."}]},{"type":"null"}]}},"type":"object","required":["type"],"title":"Input image","description":"An image input to the model. Learn about [image inputs](/docs/guides/vision)","x-readme-ref-name":"InputImageContentParamAutoParam"},{"properties":{"type":{"type":"string","enum":["input_file"],"description":"The type of the input item. Always `input_file`.","default":"input_file"},"filename":{"anyOf":[{"type":"string","description":"The name of the file to be sent to the model."},{"type":"null"}]},"file_data":{"anyOf":[{"type":"string","maxLength":33554432,"description":"The base64-encoded data of the file to be sent to the model."},{"type":"null"}]},"file_url":{"anyOf":[{"type":"string","description":"The URL of the file to be sent to the model."},{"type":"null"}]}},"type":"object","required":["type"],"title":"Input file","description":"A file input to the model.","x-readme-ref-name":"InputFileContentParam"},{"type":"object","description":"A content block representing a video input to the model.","properties":{"type":{"type":"string","enum":["input_video"],"description":"The type of the input content. Always `input_video`."},"video_url":{"type":"string","description":"A base64 or remote url that resolves to a video file."}},"required":["type","video_url"],"x-readme-ref-name":"InputVideoContent"}],"description":"A piece of message content, such as text, an image, or a file.","discriminator":{"propertyName":"type"}},"type":"array","description":"An array of content outputs (text, image, file) for the function tool call."}],"description":"Text, image, or file output of the function tool call."},"status":{"anyOf":[{"allOf":[{"type":"string","enum":["in_progress","completed","incomplete"],"x-enumDescriptions":{"completed":"Model has finished sampling this item.","in_progress":"Model is currently sampling this item.","incomplete":"Model was interrupted from sampling this item partway through. This can occur, for example, if the model encounters a stop token or exhausts its output_token budget."},"x-readme-ref-name":"FunctionCallStatus"},{"description":"The status of the item. One of `in_progress`, `completed`, or `incomplete`. Populated when items are returned via API."}]},{"type":"null"}]}},"type":"object","required":["call_id","type","output"],"title":"Function tool call output","description":"The output of a function tool call.","x-readme-ref-name":"FunctionCallOutputItemParam"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"type":"string","enum":["in_progress","completed","incomplete"],"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.","x-readme-ref-name":"FunctionCallOutputStatusEnum"}
|