@keystrokehq/openai 0.1.2 → 0.1.3
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/dist/actions/add-upload-part.cjs +1 -1
- package/dist/actions/add-upload-part.cjs.map +1 -1
- package/dist/actions/add-upload-part.d.cts +1 -1
- package/dist/actions/add-upload-part.d.mts +1 -1
- package/dist/actions/add-upload-part.mjs +1 -1
- package/dist/actions/add-upload-part.mjs.map +1 -1
- package/dist/actions/cancel-batch.cjs +6 -6
- package/dist/actions/cancel-batch.cjs.map +1 -1
- package/dist/actions/cancel-batch.d.cts +10 -10
- package/dist/actions/cancel-batch.d.mts +10 -10
- package/dist/actions/cancel-batch.mjs +6 -6
- package/dist/actions/cancel-batch.mjs.map +1 -1
- package/dist/actions/cancel-eval-run.cjs +8 -8
- package/dist/actions/cancel-eval-run.cjs.map +1 -1
- package/dist/actions/cancel-eval-run.d.cts +8 -8
- package/dist/actions/cancel-eval-run.d.mts +8 -8
- package/dist/actions/cancel-eval-run.mjs +8 -8
- package/dist/actions/cancel-eval-run.mjs.map +1 -1
- package/dist/actions/cancel-response.cjs +11 -11
- package/dist/actions/cancel-response.cjs.map +1 -1
- package/dist/actions/cancel-response.d.cts +11 -11
- package/dist/actions/cancel-response.d.mts +11 -11
- package/dist/actions/cancel-response.mjs +11 -11
- package/dist/actions/cancel-response.mjs.map +1 -1
- package/dist/actions/cancel-run.cjs +7 -7
- package/dist/actions/cancel-run.cjs.map +1 -1
- package/dist/actions/cancel-run.d.cts +11 -11
- package/dist/actions/cancel-run.d.mts +11 -11
- package/dist/actions/cancel-run.mjs +7 -7
- package/dist/actions/cancel-run.mjs.map +1 -1
- package/dist/actions/cancel-upload.cjs +2 -2
- package/dist/actions/cancel-upload.cjs.map +1 -1
- package/dist/actions/cancel-upload.d.cts +3 -3
- package/dist/actions/cancel-upload.d.mts +3 -3
- package/dist/actions/cancel-upload.mjs +2 -2
- package/dist/actions/cancel-upload.mjs.map +1 -1
- package/dist/actions/compact-response.cjs +9 -9
- package/dist/actions/compact-response.cjs.map +1 -1
- package/dist/actions/compact-response.d.cts +11 -9
- package/dist/actions/compact-response.d.mts +11 -9
- package/dist/actions/compact-response.mjs +9 -9
- package/dist/actions/compact-response.mjs.map +1 -1
- package/dist/actions/create-audio-transcription.cjs +3 -3
- package/dist/actions/create-audio-transcription.cjs.map +1 -1
- package/dist/actions/create-audio-transcription.d.cts +3 -3
- package/dist/actions/create-audio-transcription.d.mts +3 -3
- package/dist/actions/create-audio-transcription.mjs +3 -3
- package/dist/actions/create-audio-transcription.mjs.map +1 -1
- package/dist/actions/create-audio-translation.cjs +1 -1
- package/dist/actions/create-audio-translation.cjs.map +1 -1
- package/dist/actions/create-audio-translation.d.cts +1 -1
- package/dist/actions/create-audio-translation.d.mts +1 -1
- package/dist/actions/create-audio-translation.mjs +1 -1
- package/dist/actions/create-audio-translation.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +9 -9
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +14 -14
- package/dist/actions/create-batch.d.mts +14 -14
- package/dist/actions/create-batch.mjs +9 -9
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-chat-completion.cjs +13 -13
- package/dist/actions/create-chat-completion.cjs.map +1 -1
- package/dist/actions/create-chat-completion.d.cts +19 -16
- package/dist/actions/create-chat-completion.d.mts +19 -16
- package/dist/actions/create-chat-completion.mjs +13 -13
- package/dist/actions/create-chat-completion.mjs.map +1 -1
- package/dist/actions/create-completion.cjs +9 -9
- package/dist/actions/create-completion.cjs.map +1 -1
- package/dist/actions/create-completion.d.cts +11 -11
- package/dist/actions/create-completion.d.mts +11 -11
- package/dist/actions/create-completion.mjs +9 -9
- package/dist/actions/create-completion.mjs.map +1 -1
- package/dist/actions/create-container-file.cjs +1 -1
- package/dist/actions/create-container-file.cjs.map +1 -1
- package/dist/actions/create-container-file.d.cts +1 -1
- package/dist/actions/create-container-file.d.mts +1 -1
- package/dist/actions/create-container-file.mjs +1 -1
- package/dist/actions/create-container-file.mjs.map +1 -1
- package/dist/actions/create-container.cjs +8 -8
- package/dist/actions/create-container.cjs.map +1 -1
- package/dist/actions/create-container.d.cts +13 -9
- package/dist/actions/create-container.d.cts.map +1 -1
- package/dist/actions/create-container.d.mts +13 -9
- package/dist/actions/create-container.d.mts.map +1 -1
- package/dist/actions/create-container.mjs +8 -8
- package/dist/actions/create-container.mjs.map +1 -1
- package/dist/actions/create-conversation-items.cjs +4 -4
- package/dist/actions/create-conversation-items.cjs.map +1 -1
- package/dist/actions/create-conversation-items.d.cts +6 -4
- package/dist/actions/create-conversation-items.d.cts.map +1 -1
- package/dist/actions/create-conversation-items.d.mts +6 -4
- package/dist/actions/create-conversation-items.d.mts.map +1 -1
- package/dist/actions/create-conversation-items.mjs +4 -4
- package/dist/actions/create-conversation-items.mjs.map +1 -1
- package/dist/actions/create-conversation.cjs +3 -3
- package/dist/actions/create-conversation.cjs.map +1 -1
- package/dist/actions/create-conversation.d.cts +5 -4
- package/dist/actions/create-conversation.d.cts.map +1 -1
- package/dist/actions/create-conversation.d.mts +5 -4
- package/dist/actions/create-conversation.d.mts.map +1 -1
- package/dist/actions/create-conversation.mjs +3 -3
- package/dist/actions/create-conversation.mjs.map +1 -1
- package/dist/actions/create-embeddings.cjs +3 -3
- package/dist/actions/create-embeddings.cjs.map +1 -1
- package/dist/actions/create-embeddings.d.cts +3 -3
- package/dist/actions/create-embeddings.d.mts +3 -3
- package/dist/actions/create-embeddings.mjs +3 -3
- package/dist/actions/create-embeddings.mjs.map +1 -1
- package/dist/actions/create-eval-run.cjs +19 -19
- package/dist/actions/create-eval-run.cjs.map +1 -1
- package/dist/actions/create-eval-run.d.cts +32 -23
- package/dist/actions/create-eval-run.d.mts +32 -23
- package/dist/actions/create-eval-run.mjs +19 -19
- package/dist/actions/create-eval-run.mjs.map +1 -1
- package/dist/actions/create-eval.cjs +10 -10
- package/dist/actions/create-eval.cjs.map +1 -1
- package/dist/actions/create-eval.d.cts +19 -10
- package/dist/actions/create-eval.d.mts +19 -10
- package/dist/actions/create-eval.mjs +10 -10
- package/dist/actions/create-eval.mjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.cjs +4 -4
- package/dist/actions/create-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/create-fine-tuning-job.d.cts +5 -5
- package/dist/actions/create-fine-tuning-job.d.mts +5 -5
- package/dist/actions/create-fine-tuning-job.mjs +4 -4
- package/dist/actions/create-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/create-image-edit.cjs +5 -5
- package/dist/actions/create-image-edit.cjs.map +1 -1
- package/dist/actions/create-image-edit.d.cts +7 -6
- package/dist/actions/create-image-edit.d.mts +7 -6
- package/dist/actions/create-image-edit.mjs +5 -5
- package/dist/actions/create-image-edit.mjs.map +1 -1
- package/dist/actions/create-image-variation.cjs +2 -2
- package/dist/actions/create-image-variation.cjs.map +1 -1
- package/dist/actions/create-image-variation.d.cts +2 -2
- package/dist/actions/create-image-variation.d.mts +2 -2
- package/dist/actions/create-image-variation.mjs +2 -2
- package/dist/actions/create-image-variation.mjs.map +1 -1
- package/dist/actions/create-image.cjs +4 -4
- package/dist/actions/create-image.cjs.map +1 -1
- package/dist/actions/create-image.d.cts +4 -4
- package/dist/actions/create-image.d.mts +4 -4
- package/dist/actions/create-image.mjs +4 -4
- package/dist/actions/create-image.mjs.map +1 -1
- package/dist/actions/create-message.cjs +13 -13
- package/dist/actions/create-message.cjs.map +1 -1
- package/dist/actions/create-message.d.cts +17 -14
- package/dist/actions/create-message.d.cts.map +1 -1
- package/dist/actions/create-message.d.mts +17 -14
- package/dist/actions/create-message.d.mts.map +1 -1
- package/dist/actions/create-message.mjs +13 -13
- package/dist/actions/create-message.mjs.map +1 -1
- package/dist/actions/create-moderation.cjs +7 -7
- package/dist/actions/create-moderation.cjs.map +1 -1
- package/dist/actions/create-moderation.d.cts +9 -8
- package/dist/actions/create-moderation.d.cts.map +1 -1
- package/dist/actions/create-moderation.d.mts +9 -8
- package/dist/actions/create-moderation.d.mts.map +1 -1
- package/dist/actions/create-moderation.mjs +7 -7
- package/dist/actions/create-moderation.mjs.map +1 -1
- package/dist/actions/create-realtime-call.cjs +1 -1
- package/dist/actions/create-realtime-call.cjs.map +1 -1
- package/dist/actions/create-realtime-call.d.cts +1 -1
- package/dist/actions/create-realtime-call.d.mts +1 -1
- package/dist/actions/create-realtime-call.mjs +1 -1
- package/dist/actions/create-realtime-call.mjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.cjs +3 -3
- package/dist/actions/create-realtime-client-secret.cjs.map +1 -1
- package/dist/actions/create-realtime-client-secret.d.cts +5 -3
- package/dist/actions/create-realtime-client-secret.d.mts +5 -3
- package/dist/actions/create-realtime-client-secret.mjs +3 -3
- package/dist/actions/create-realtime-client-secret.mjs.map +1 -1
- package/dist/actions/create-realtime-session.cjs +6 -6
- package/dist/actions/create-realtime-session.cjs.map +1 -1
- package/dist/actions/create-realtime-session.d.cts +10 -6
- package/dist/actions/create-realtime-session.d.mts +10 -6
- package/dist/actions/create-realtime-session.mjs +6 -6
- package/dist/actions/create-realtime-session.mjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.cjs +4 -4
- package/dist/actions/create-realtime-transcription-session.cjs.map +1 -1
- package/dist/actions/create-realtime-transcription-session.d.cts +4 -4
- package/dist/actions/create-realtime-transcription-session.d.mts +4 -4
- package/dist/actions/create-realtime-transcription-session.mjs +4 -4
- package/dist/actions/create-realtime-transcription-session.mjs.map +1 -1
- package/dist/actions/create-response.cjs +15 -15
- package/dist/actions/create-response.cjs.map +1 -1
- package/dist/actions/create-response.d.cts +28 -18
- package/dist/actions/create-response.d.mts +28 -18
- package/dist/actions/create-response.mjs +15 -15
- package/dist/actions/create-response.mjs.map +1 -1
- package/dist/actions/create-run.cjs +24 -24
- package/dist/actions/create-run.cjs.map +1 -1
- package/dist/actions/create-run.d.cts +36 -31
- package/dist/actions/create-run.d.mts +36 -31
- package/dist/actions/create-run.mjs +24 -24
- package/dist/actions/create-run.mjs.map +1 -1
- package/dist/actions/create-skill.cjs +3 -3
- package/dist/actions/create-skill.cjs.map +1 -1
- package/dist/actions/create-skill.d.cts +5 -3
- package/dist/actions/create-skill.d.mts +5 -3
- package/dist/actions/create-skill.mjs +3 -3
- package/dist/actions/create-skill.mjs.map +1 -1
- package/dist/actions/create-speech.cjs +2 -2
- package/dist/actions/create-speech.cjs.map +1 -1
- package/dist/actions/create-speech.d.cts +2 -2
- package/dist/actions/create-speech.d.mts +2 -2
- package/dist/actions/create-speech.mjs +2 -2
- package/dist/actions/create-speech.mjs.map +1 -1
- package/dist/actions/create-thread-and-run.cjs +29 -29
- package/dist/actions/create-thread-and-run.cjs.map +1 -1
- package/dist/actions/create-thread-and-run.d.cts +46 -39
- package/dist/actions/create-thread-and-run.d.mts +46 -39
- package/dist/actions/create-thread-and-run.mjs +29 -29
- package/dist/actions/create-thread-and-run.mjs.map +1 -1
- package/dist/actions/create-thread.cjs +5 -5
- package/dist/actions/create-thread.cjs.map +1 -1
- package/dist/actions/create-thread.d.cts +7 -6
- package/dist/actions/create-thread.d.cts.map +1 -1
- package/dist/actions/create-thread.d.mts +7 -6
- package/dist/actions/create-thread.d.mts.map +1 -1
- package/dist/actions/create-thread.mjs +5 -5
- package/dist/actions/create-thread.mjs.map +1 -1
- package/dist/actions/create-upload.cjs +2 -2
- package/dist/actions/create-upload.cjs.map +1 -1
- package/dist/actions/create-upload.d.cts +3 -3
- package/dist/actions/create-upload.d.mts +3 -3
- package/dist/actions/create-upload.mjs +2 -2
- package/dist/actions/create-upload.mjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.cjs +11 -11
- package/dist/actions/create-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.cts +21 -14
- package/dist/actions/create-vector-store-file-batch.d.cts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.d.mts +21 -14
- package/dist/actions/create-vector-store-file-batch.d.mts.map +1 -1
- package/dist/actions/create-vector-store-file-batch.mjs +11 -11
- package/dist/actions/create-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/create-vector-store-file.cjs +7 -7
- package/dist/actions/create-vector-store-file.cjs.map +1 -1
- package/dist/actions/create-vector-store-file.d.cts +11 -8
- package/dist/actions/create-vector-store-file.d.mts +11 -8
- package/dist/actions/create-vector-store-file.mjs +7 -7
- package/dist/actions/create-vector-store-file.mjs.map +1 -1
- package/dist/actions/create-vector-store.cjs +8 -8
- package/dist/actions/create-vector-store.cjs.map +1 -1
- package/dist/actions/create-vector-store.d.cts +12 -9
- package/dist/actions/create-vector-store.d.mts +12 -9
- package/dist/actions/create-vector-store.mjs +8 -8
- package/dist/actions/create-vector-store.mjs.map +1 -1
- package/dist/actions/create-video-remix.cjs +2 -2
- package/dist/actions/create-video-remix.cjs.map +1 -1
- package/dist/actions/create-video-remix.d.cts +3 -3
- package/dist/actions/create-video-remix.d.mts +3 -3
- package/dist/actions/create-video-remix.mjs +2 -2
- package/dist/actions/create-video-remix.mjs.map +1 -1
- package/dist/actions/create-video.cjs +2 -2
- package/dist/actions/create-video.cjs.map +1 -1
- package/dist/actions/create-video.d.cts +2 -2
- package/dist/actions/create-video.d.mts +2 -2
- package/dist/actions/create-video.mjs +2 -2
- package/dist/actions/create-video.mjs.map +1 -1
- package/dist/actions/delete-assistant.cjs +1 -1
- package/dist/actions/delete-assistant.cjs.map +1 -1
- package/dist/actions/delete-assistant.d.cts +1 -1
- package/dist/actions/delete-assistant.d.mts +1 -1
- package/dist/actions/delete-assistant.mjs +1 -1
- package/dist/actions/delete-assistant.mjs.map +1 -1
- package/dist/actions/delete-chat-completion.cjs +1 -1
- package/dist/actions/delete-chat-completion.cjs.map +1 -1
- package/dist/actions/delete-chat-completion.d.cts +1 -1
- package/dist/actions/delete-chat-completion.d.mts +1 -1
- package/dist/actions/delete-chat-completion.mjs +1 -1
- package/dist/actions/delete-chat-completion.mjs.map +1 -1
- package/dist/actions/delete-container-file.cjs +1 -1
- package/dist/actions/delete-container-file.cjs.map +1 -1
- package/dist/actions/delete-container-file.d.cts +1 -1
- package/dist/actions/delete-container-file.d.mts +1 -1
- package/dist/actions/delete-container-file.mjs +1 -1
- package/dist/actions/delete-container-file.mjs.map +1 -1
- package/dist/actions/delete-container.cjs +1 -1
- package/dist/actions/delete-container.cjs.map +1 -1
- package/dist/actions/delete-container.d.cts +1 -1
- package/dist/actions/delete-container.d.mts +1 -1
- package/dist/actions/delete-container.mjs +1 -1
- package/dist/actions/delete-container.mjs.map +1 -1
- package/dist/actions/delete-conversation-item.cjs +1 -1
- package/dist/actions/delete-conversation-item.cjs.map +1 -1
- package/dist/actions/delete-conversation-item.d.cts +1 -1
- package/dist/actions/delete-conversation-item.d.mts +1 -1
- package/dist/actions/delete-conversation-item.mjs +1 -1
- package/dist/actions/delete-conversation-item.mjs.map +1 -1
- package/dist/actions/delete-conversation.cjs +1 -1
- package/dist/actions/delete-conversation.cjs.map +1 -1
- package/dist/actions/delete-conversation.d.cts +1 -1
- package/dist/actions/delete-conversation.d.mts +1 -1
- package/dist/actions/delete-conversation.mjs +1 -1
- package/dist/actions/delete-conversation.mjs.map +1 -1
- package/dist/actions/delete-eval-run.cjs +1 -1
- package/dist/actions/delete-eval-run.cjs.map +1 -1
- package/dist/actions/delete-eval-run.d.cts +1 -1
- package/dist/actions/delete-eval-run.d.mts +1 -1
- package/dist/actions/delete-eval-run.mjs +1 -1
- package/dist/actions/delete-eval-run.mjs.map +1 -1
- package/dist/actions/delete-eval.cjs +1 -1
- package/dist/actions/delete-eval.cjs.map +1 -1
- package/dist/actions/delete-eval.d.cts +1 -1
- package/dist/actions/delete-eval.d.mts +1 -1
- package/dist/actions/delete-eval.mjs +1 -1
- package/dist/actions/delete-eval.mjs.map +1 -1
- package/dist/actions/delete-file.cjs +1 -1
- package/dist/actions/delete-file.cjs.map +1 -1
- package/dist/actions/delete-file.d.cts +1 -1
- package/dist/actions/delete-file.d.mts +1 -1
- package/dist/actions/delete-file.mjs +1 -1
- package/dist/actions/delete-file.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -1
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +1 -1
- package/dist/actions/delete-message.d.mts +1 -1
- package/dist/actions/delete-message.mjs +1 -1
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-response.cjs +1 -1
- package/dist/actions/delete-response.cjs.map +1 -1
- package/dist/actions/delete-response.d.cts +1 -1
- package/dist/actions/delete-response.d.mts +1 -1
- package/dist/actions/delete-response.mjs +1 -1
- package/dist/actions/delete-response.mjs.map +1 -1
- package/dist/actions/delete-skill.cjs +1 -1
- package/dist/actions/delete-skill.cjs.map +1 -1
- package/dist/actions/delete-skill.d.cts +1 -1
- package/dist/actions/delete-skill.d.mts +1 -1
- package/dist/actions/delete-skill.mjs +1 -1
- package/dist/actions/delete-skill.mjs.map +1 -1
- package/dist/actions/delete-thread.cjs +1 -1
- package/dist/actions/delete-thread.cjs.map +1 -1
- package/dist/actions/delete-thread.d.cts +1 -1
- package/dist/actions/delete-thread.d.mts +1 -1
- package/dist/actions/delete-thread.mjs +1 -1
- package/dist/actions/delete-thread.mjs.map +1 -1
- package/dist/actions/delete-vector-store-file.cjs +1 -1
- package/dist/actions/delete-vector-store-file.cjs.map +1 -1
- package/dist/actions/delete-vector-store-file.d.cts +1 -1
- package/dist/actions/delete-vector-store-file.d.mts +1 -1
- package/dist/actions/delete-vector-store-file.mjs +1 -1
- package/dist/actions/delete-vector-store-file.mjs.map +1 -1
- package/dist/actions/delete-vector-store.cjs +1 -1
- package/dist/actions/delete-vector-store.cjs.map +1 -1
- package/dist/actions/delete-vector-store.d.cts +1 -1
- package/dist/actions/delete-vector-store.d.mts +1 -1
- package/dist/actions/delete-vector-store.mjs +1 -1
- package/dist/actions/delete-vector-store.mjs.map +1 -1
- package/dist/actions/delete-video.cjs +1 -1
- package/dist/actions/delete-video.cjs.map +1 -1
- package/dist/actions/delete-video.d.cts +1 -1
- package/dist/actions/delete-video.d.mts +1 -1
- package/dist/actions/delete-video.mjs +1 -1
- package/dist/actions/delete-video.mjs.map +1 -1
- package/dist/actions/download-file.cjs +2 -2
- package/dist/actions/download-file.cjs.map +1 -1
- package/dist/actions/download-file.d.cts +2 -2
- package/dist/actions/download-file.d.mts +2 -2
- package/dist/actions/download-file.mjs +2 -2
- package/dist/actions/download-file.mjs.map +1 -1
- package/dist/actions/download-video.cjs +2 -2
- package/dist/actions/download-video.cjs.map +1 -1
- package/dist/actions/download-video.d.cts +2 -2
- package/dist/actions/download-video.d.mts +2 -2
- package/dist/actions/download-video.mjs +2 -2
- package/dist/actions/download-video.mjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.cjs +2 -2
- package/dist/actions/get-chat-completion-messages.cjs.map +1 -1
- package/dist/actions/get-chat-completion-messages.d.cts +2 -2
- package/dist/actions/get-chat-completion-messages.d.mts +2 -2
- package/dist/actions/get-chat-completion-messages.mjs +2 -2
- package/dist/actions/get-chat-completion-messages.mjs.map +1 -1
- package/dist/actions/get-chat-completion.cjs +7 -7
- package/dist/actions/get-chat-completion.cjs.map +1 -1
- package/dist/actions/get-chat-completion.d.cts +7 -7
- package/dist/actions/get-chat-completion.d.mts +7 -7
- package/dist/actions/get-chat-completion.mjs +7 -7
- package/dist/actions/get-chat-completion.mjs.map +1 -1
- package/dist/actions/get-chatkit-thread.cjs +4 -4
- package/dist/actions/get-chatkit-thread.cjs.map +1 -1
- package/dist/actions/get-chatkit-thread.d.cts +4 -4
- package/dist/actions/get-chatkit-thread.d.mts +4 -4
- package/dist/actions/get-chatkit-thread.mjs +4 -4
- package/dist/actions/get-chatkit-thread.mjs.map +1 -1
- package/dist/actions/get-conversation-item.cjs +1 -1
- package/dist/actions/get-conversation-item.cjs.map +1 -1
- package/dist/actions/get-conversation-item.d.cts +1 -1
- package/dist/actions/get-conversation-item.d.mts +1 -1
- package/dist/actions/get-conversation-item.mjs +1 -1
- package/dist/actions/get-conversation-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.cjs +5 -5
- package/dist/actions/get-eval-run-output-item.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-item.d.cts +5 -5
- package/dist/actions/get-eval-run-output-item.d.mts +5 -5
- package/dist/actions/get-eval-run-output-item.mjs +5 -5
- package/dist/actions/get-eval-run-output-item.mjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.cjs +6 -6
- package/dist/actions/get-eval-run-output-items.cjs.map +1 -1
- package/dist/actions/get-eval-run-output-items.d.cts +7 -7
- package/dist/actions/get-eval-run-output-items.d.mts +7 -7
- package/dist/actions/get-eval-run-output-items.mjs +6 -6
- package/dist/actions/get-eval-run-output-items.mjs.map +1 -1
- package/dist/actions/get-eval-run.cjs +10 -10
- package/dist/actions/get-eval-run.cjs.map +1 -1
- package/dist/actions/get-eval-run.d.cts +14 -14
- package/dist/actions/get-eval-run.d.mts +14 -14
- package/dist/actions/get-eval-run.mjs +10 -10
- package/dist/actions/get-eval-run.mjs.map +1 -1
- package/dist/actions/get-eval-runs.cjs +6 -6
- package/dist/actions/get-eval-runs.cjs.map +1 -1
- package/dist/actions/get-eval-runs.d.cts +8 -8
- package/dist/actions/get-eval-runs.d.mts +8 -8
- package/dist/actions/get-eval-runs.mjs +6 -6
- package/dist/actions/get-eval-runs.mjs.map +1 -1
- package/dist/actions/get-eval.cjs +1 -1
- package/dist/actions/get-eval.cjs.map +1 -1
- package/dist/actions/get-eval.d.cts +1 -1
- package/dist/actions/get-eval.d.mts +1 -1
- package/dist/actions/get-eval.mjs +1 -1
- package/dist/actions/get-eval.mjs.map +1 -1
- package/dist/actions/get-input-token-counts.cjs +1 -1
- package/dist/actions/get-input-token-counts.cjs.map +1 -1
- package/dist/actions/get-input-token-counts.d.cts +3 -3
- package/dist/actions/get-input-token-counts.d.mts +3 -3
- package/dist/actions/get-input-token-counts.mjs +1 -1
- package/dist/actions/get-input-token-counts.mjs.map +1 -1
- package/dist/actions/get-message.cjs +9 -9
- package/dist/actions/get-message.cjs.map +1 -1
- package/dist/actions/get-message.d.cts +9 -9
- package/dist/actions/get-message.d.mts +9 -9
- package/dist/actions/get-message.mjs +9 -9
- package/dist/actions/get-message.mjs.map +1 -1
- package/dist/actions/get-response.cjs +9 -9
- package/dist/actions/get-response.cjs.map +1 -1
- package/dist/actions/get-response.d.cts +9 -9
- package/dist/actions/get-response.d.mts +9 -9
- package/dist/actions/get-response.mjs +9 -9
- package/dist/actions/get-response.mjs.map +1 -1
- package/dist/actions/get-run-step.cjs +15 -15
- package/dist/actions/get-run-step.cjs.map +1 -1
- package/dist/actions/get-run-step.d.cts +16 -16
- package/dist/actions/get-run-step.d.mts +16 -16
- package/dist/actions/get-run-step.mjs +15 -15
- package/dist/actions/get-run-step.mjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.cjs +2 -2
- package/dist/actions/get-vector-store-file-batch.cjs.map +1 -1
- package/dist/actions/get-vector-store-file-batch.d.cts +3 -3
- package/dist/actions/get-vector-store-file-batch.d.mts +3 -3
- package/dist/actions/get-vector-store-file-batch.mjs +2 -2
- package/dist/actions/get-vector-store-file-batch.mjs.map +1 -1
- package/dist/actions/get-vector-store-file.cjs +4 -4
- package/dist/actions/get-vector-store-file.cjs.map +1 -1
- package/dist/actions/get-vector-store-file.d.cts +5 -5
- package/dist/actions/get-vector-store-file.d.mts +5 -5
- package/dist/actions/get-vector-store-file.mjs +4 -4
- package/dist/actions/get-vector-store-file.mjs.map +1 -1
- package/dist/actions/get-vector-store.cjs +4 -4
- package/dist/actions/get-vector-store.cjs.map +1 -1
- package/dist/actions/get-vector-store.d.cts +4 -4
- package/dist/actions/get-vector-store.d.mts +4 -4
- package/dist/actions/get-vector-store.mjs +4 -4
- package/dist/actions/get-vector-store.mjs.map +1 -1
- package/dist/actions/get-video.cjs +2 -2
- package/dist/actions/get-video.cjs.map +1 -1
- package/dist/actions/get-video.d.cts +3 -3
- package/dist/actions/get-video.d.mts +3 -3
- package/dist/actions/get-video.mjs +2 -2
- package/dist/actions/get-video.mjs.map +1 -1
- package/dist/actions/list-assistants.cjs +16 -16
- package/dist/actions/list-assistants.cjs.map +1 -1
- package/dist/actions/list-assistants.d.cts +16 -16
- package/dist/actions/list-assistants.d.mts +16 -16
- package/dist/actions/list-assistants.mjs +16 -16
- package/dist/actions/list-assistants.mjs.map +1 -1
- package/dist/actions/list-batches.cjs +8 -8
- package/dist/actions/list-batches.cjs.map +1 -1
- package/dist/actions/list-batches.d.cts +12 -12
- package/dist/actions/list-batches.d.mts +12 -12
- package/dist/actions/list-batches.mjs +8 -8
- package/dist/actions/list-batches.mjs.map +1 -1
- package/dist/actions/list-chat-completions.cjs +4 -4
- package/dist/actions/list-chat-completions.cjs.map +1 -1
- package/dist/actions/list-chat-completions.d.cts +4 -4
- package/dist/actions/list-chat-completions.d.mts +4 -4
- package/dist/actions/list-chat-completions.mjs +4 -4
- package/dist/actions/list-chat-completions.mjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.cjs +2 -2
- package/dist/actions/list-chatkit-thread-items.cjs.map +1 -1
- package/dist/actions/list-chatkit-thread-items.d.cts +2 -2
- package/dist/actions/list-chatkit-thread-items.d.mts +2 -2
- package/dist/actions/list-chatkit-thread-items.mjs +2 -2
- package/dist/actions/list-chatkit-thread-items.mjs.map +1 -1
- package/dist/actions/list-container-files.cjs +2 -2
- package/dist/actions/list-container-files.cjs.map +1 -1
- package/dist/actions/list-container-files.d.cts +2 -2
- package/dist/actions/list-container-files.d.mts +2 -2
- package/dist/actions/list-container-files.mjs +2 -2
- package/dist/actions/list-container-files.mjs.map +1 -1
- package/dist/actions/list-containers.cjs +4 -4
- package/dist/actions/list-containers.cjs.map +1 -1
- package/dist/actions/list-containers.d.cts +4 -4
- package/dist/actions/list-containers.d.mts +4 -4
- package/dist/actions/list-containers.mjs +4 -4
- package/dist/actions/list-containers.mjs.map +1 -1
- package/dist/actions/list-conversation-items.cjs +2 -2
- package/dist/actions/list-conversation-items.cjs.map +1 -1
- package/dist/actions/list-conversation-items.d.cts +2 -2
- package/dist/actions/list-conversation-items.d.mts +2 -2
- package/dist/actions/list-conversation-items.mjs +2 -2
- package/dist/actions/list-conversation-items.mjs.map +1 -1
- package/dist/actions/list-engines.cjs +2 -2
- package/dist/actions/list-engines.cjs.map +1 -1
- package/dist/actions/list-engines.d.cts +2 -2
- package/dist/actions/list-engines.d.mts +2 -2
- package/dist/actions/list-engines.mjs +2 -2
- package/dist/actions/list-engines.mjs.map +1 -1
- package/dist/actions/list-evals.cjs +14 -14
- package/dist/actions/list-evals.cjs.map +1 -1
- package/dist/actions/list-evals.d.cts +15 -15
- package/dist/actions/list-evals.d.mts +15 -15
- package/dist/actions/list-evals.mjs +14 -14
- package/dist/actions/list-evals.mjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.cjs +5 -5
- package/dist/actions/list-files-in-vector-store-batch.cjs.map +1 -1
- package/dist/actions/list-files-in-vector-store-batch.d.cts +8 -8
- package/dist/actions/list-files-in-vector-store-batch.d.mts +8 -8
- package/dist/actions/list-files-in-vector-store-batch.mjs +5 -5
- package/dist/actions/list-files-in-vector-store-batch.mjs.map +1 -1
- package/dist/actions/list-files.cjs +2 -2
- package/dist/actions/list-files.cjs.map +1 -1
- package/dist/actions/list-files.d.cts +2 -2
- package/dist/actions/list-files.d.mts +2 -2
- package/dist/actions/list-files.mjs +2 -2
- package/dist/actions/list-files.mjs.map +1 -1
- package/dist/actions/list-fine-tunes.cjs +5 -5
- package/dist/actions/list-fine-tunes.cjs.map +1 -1
- package/dist/actions/list-fine-tunes.d.cts +7 -7
- package/dist/actions/list-fine-tunes.d.mts +7 -7
- package/dist/actions/list-fine-tunes.mjs +5 -5
- package/dist/actions/list-fine-tunes.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.cjs +2 -2
- package/dist/actions/list-fine-tuning-events.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-events.d.cts +2 -2
- package/dist/actions/list-fine-tuning-events.d.mts +2 -2
- package/dist/actions/list-fine-tuning-events.mjs +2 -2
- package/dist/actions/list-fine-tuning-events.mjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.cjs.map +1 -1
- package/dist/actions/list-fine-tuning-job-checkpoints.d.cts +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.d.mts +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs +3 -3
- package/dist/actions/list-fine-tuning-job-checkpoints.mjs.map +1 -1
- package/dist/actions/list-input-items.cjs +2 -2
- package/dist/actions/list-input-items.cjs.map +1 -1
- package/dist/actions/list-input-items.d.cts +2 -2
- package/dist/actions/list-input-items.d.mts +2 -2
- package/dist/actions/list-input-items.mjs +2 -2
- package/dist/actions/list-input-items.mjs.map +1 -1
- package/dist/actions/list-messages.cjs +10 -10
- package/dist/actions/list-messages.cjs.map +1 -1
- package/dist/actions/list-messages.d.cts +10 -10
- package/dist/actions/list-messages.d.mts +10 -10
- package/dist/actions/list-messages.mjs +10 -10
- package/dist/actions/list-messages.mjs.map +1 -1
- package/dist/actions/list-models.cjs +3 -3
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +3 -3
- package/dist/actions/list-models.d.mts +3 -3
- package/dist/actions/list-models.mjs +3 -3
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/list-run-steps.cjs +16 -16
- package/dist/actions/list-run-steps.cjs.map +1 -1
- package/dist/actions/list-run-steps.d.cts +17 -17
- package/dist/actions/list-run-steps.d.mts +17 -17
- package/dist/actions/list-run-steps.mjs +16 -16
- package/dist/actions/list-run-steps.mjs.map +1 -1
- package/dist/actions/list-runs.cjs +8 -8
- package/dist/actions/list-runs.cjs.map +1 -1
- package/dist/actions/list-runs.d.cts +12 -12
- package/dist/actions/list-runs.d.mts +12 -12
- package/dist/actions/list-runs.mjs +8 -8
- package/dist/actions/list-runs.mjs.map +1 -1
- package/dist/actions/list-skills.cjs +2 -2
- package/dist/actions/list-skills.cjs.map +1 -1
- package/dist/actions/list-skills.d.cts +2 -2
- package/dist/actions/list-skills.d.mts +2 -2
- package/dist/actions/list-skills.mjs +2 -2
- package/dist/actions/list-skills.mjs.map +1 -1
- package/dist/actions/list-threads.cjs +4 -4
- package/dist/actions/list-threads.cjs.map +1 -1
- package/dist/actions/list-threads.d.cts +4 -4
- package/dist/actions/list-threads.d.mts +4 -4
- package/dist/actions/list-threads.mjs +4 -4
- package/dist/actions/list-threads.mjs.map +1 -1
- package/dist/actions/list-vector-store-files.cjs +3 -3
- package/dist/actions/list-vector-store-files.cjs.map +1 -1
- package/dist/actions/list-vector-store-files.d.cts +6 -6
- package/dist/actions/list-vector-store-files.d.mts +6 -6
- package/dist/actions/list-vector-store-files.mjs +3 -3
- package/dist/actions/list-vector-store-files.mjs.map +1 -1
- package/dist/actions/list-vector-stores.cjs +5 -5
- package/dist/actions/list-vector-stores.cjs.map +1 -1
- package/dist/actions/list-vector-stores.d.cts +5 -5
- package/dist/actions/list-vector-stores.d.mts +5 -5
- package/dist/actions/list-vector-stores.mjs +5 -5
- package/dist/actions/list-vector-stores.mjs.map +1 -1
- package/dist/actions/list-videos.cjs +3 -3
- package/dist/actions/list-videos.cjs.map +1 -1
- package/dist/actions/list-videos.d.cts +4 -4
- package/dist/actions/list-videos.d.mts +4 -4
- package/dist/actions/list-videos.mjs +3 -3
- package/dist/actions/list-videos.mjs.map +1 -1
- package/dist/actions/modify-assistant.cjs +3 -3
- package/dist/actions/modify-assistant.cjs.map +1 -1
- package/dist/actions/modify-assistant.d.cts +4 -4
- package/dist/actions/modify-assistant.d.mts +4 -4
- package/dist/actions/modify-assistant.mjs +3 -3
- package/dist/actions/modify-assistant.mjs.map +1 -1
- package/dist/actions/modify-message.cjs +9 -9
- package/dist/actions/modify-message.cjs.map +1 -1
- package/dist/actions/modify-message.d.cts +10 -10
- package/dist/actions/modify-message.d.mts +10 -10
- package/dist/actions/modify-message.mjs +9 -9
- package/dist/actions/modify-message.mjs.map +1 -1
- package/dist/actions/modify-run.cjs +8 -8
- package/dist/actions/modify-run.cjs.map +1 -1
- package/dist/actions/modify-run.d.cts +13 -13
- package/dist/actions/modify-run.d.mts +13 -13
- package/dist/actions/modify-run.mjs +8 -8
- package/dist/actions/modify-run.mjs.map +1 -1
- package/dist/actions/modify-thread.cjs +3 -3
- package/dist/actions/modify-thread.cjs.map +1 -1
- package/dist/actions/modify-thread.d.cts +4 -4
- package/dist/actions/modify-thread.d.mts +4 -4
- package/dist/actions/modify-thread.mjs +3 -3
- package/dist/actions/modify-thread.mjs.map +1 -1
- package/dist/actions/modify-vector-store.cjs +5 -5
- package/dist/actions/modify-vector-store.cjs.map +1 -1
- package/dist/actions/modify-vector-store.d.cts +6 -6
- package/dist/actions/modify-vector-store.d.mts +6 -6
- package/dist/actions/modify-vector-store.mjs +5 -5
- package/dist/actions/modify-vector-store.mjs.map +1 -1
- package/dist/actions/retrieve-assistant.cjs +3 -3
- package/dist/actions/retrieve-assistant.cjs.map +1 -1
- package/dist/actions/retrieve-assistant.d.cts +3 -3
- package/dist/actions/retrieve-assistant.d.mts +3 -3
- package/dist/actions/retrieve-assistant.mjs +3 -3
- package/dist/actions/retrieve-assistant.mjs.map +1 -1
- package/dist/actions/retrieve-batch.cjs +6 -6
- package/dist/actions/retrieve-batch.cjs.map +1 -1
- package/dist/actions/retrieve-batch.d.cts +10 -10
- package/dist/actions/retrieve-batch.d.mts +10 -10
- package/dist/actions/retrieve-batch.mjs +6 -6
- package/dist/actions/retrieve-batch.mjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.cjs +2 -2
- package/dist/actions/retrieve-container-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-container-file-content.d.cts +2 -2
- package/dist/actions/retrieve-container-file-content.d.mts +2 -2
- package/dist/actions/retrieve-container-file-content.mjs +2 -2
- package/dist/actions/retrieve-container-file-content.mjs.map +1 -1
- package/dist/actions/retrieve-container-file.cjs +1 -1
- package/dist/actions/retrieve-container-file.cjs.map +1 -1
- package/dist/actions/retrieve-container-file.d.cts +1 -1
- package/dist/actions/retrieve-container-file.d.mts +1 -1
- package/dist/actions/retrieve-container-file.mjs +1 -1
- package/dist/actions/retrieve-container-file.mjs.map +1 -1
- package/dist/actions/retrieve-container.cjs +3 -3
- package/dist/actions/retrieve-container.cjs.map +1 -1
- package/dist/actions/retrieve-container.d.cts +3 -3
- package/dist/actions/retrieve-container.d.mts +3 -3
- package/dist/actions/retrieve-container.mjs +3 -3
- package/dist/actions/retrieve-container.mjs.map +1 -1
- package/dist/actions/retrieve-engine.cjs +1 -1
- package/dist/actions/retrieve-engine.cjs.map +1 -1
- package/dist/actions/retrieve-engine.d.cts +1 -1
- package/dist/actions/retrieve-engine.d.mts +1 -1
- package/dist/actions/retrieve-engine.mjs +1 -1
- package/dist/actions/retrieve-engine.mjs.map +1 -1
- package/dist/actions/retrieve-file.cjs +1 -1
- package/dist/actions/retrieve-file.cjs.map +1 -1
- package/dist/actions/retrieve-file.d.cts +1 -1
- package/dist/actions/retrieve-file.d.mts +1 -1
- package/dist/actions/retrieve-file.mjs +1 -1
- package/dist/actions/retrieve-file.mjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.cjs +4 -4
- package/dist/actions/retrieve-fine-tuning-job.cjs.map +1 -1
- package/dist/actions/retrieve-fine-tuning-job.d.cts +5 -5
- package/dist/actions/retrieve-fine-tuning-job.d.mts +5 -5
- package/dist/actions/retrieve-fine-tuning-job.mjs +4 -4
- package/dist/actions/retrieve-fine-tuning-job.mjs.map +1 -1
- package/dist/actions/retrieve-model.cjs +2 -2
- package/dist/actions/retrieve-model.cjs.map +1 -1
- package/dist/actions/retrieve-model.d.cts +2 -2
- package/dist/actions/retrieve-model.d.mts +2 -2
- package/dist/actions/retrieve-model.mjs +2 -2
- package/dist/actions/retrieve-model.mjs.map +1 -1
- package/dist/actions/retrieve-run.cjs +7 -7
- package/dist/actions/retrieve-run.cjs.map +1 -1
- package/dist/actions/retrieve-run.d.cts +11 -11
- package/dist/actions/retrieve-run.d.mts +11 -11
- package/dist/actions/retrieve-run.mjs +7 -7
- package/dist/actions/retrieve-run.mjs.map +1 -1
- package/dist/actions/retrieve-thread.cjs +2 -2
- package/dist/actions/retrieve-thread.cjs.map +1 -1
- package/dist/actions/retrieve-thread.d.cts +2 -2
- package/dist/actions/retrieve-thread.d.mts +2 -2
- package/dist/actions/retrieve-thread.mjs +2 -2
- package/dist/actions/retrieve-thread.mjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.cjs +2 -2
- package/dist/actions/retrieve-vector-store-file-content.cjs.map +1 -1
- package/dist/actions/retrieve-vector-store-file-content.d.cts +2 -2
- package/dist/actions/retrieve-vector-store-file-content.d.mts +2 -2
- package/dist/actions/retrieve-vector-store-file-content.mjs +2 -2
- package/dist/actions/retrieve-vector-store-file-content.mjs.map +1 -1
- package/dist/actions/run-grader.cjs +8 -8
- package/dist/actions/run-grader.cjs.map +1 -1
- package/dist/actions/run-grader.d.cts +13 -8
- package/dist/actions/run-grader.d.mts +13 -8
- package/dist/actions/run-grader.mjs +8 -8
- package/dist/actions/run-grader.mjs.map +1 -1
- package/dist/actions/search-vector-store.cjs +3 -3
- package/dist/actions/search-vector-store.cjs.map +1 -1
- package/dist/actions/search-vector-store.d.cts +3 -3
- package/dist/actions/search-vector-store.d.mts +3 -3
- package/dist/actions/search-vector-store.mjs +3 -3
- package/dist/actions/search-vector-store.mjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.cjs +8 -8
- package/dist/actions/submit-tool-outputs-to-run.cjs.map +1 -1
- package/dist/actions/submit-tool-outputs-to-run.d.cts +13 -12
- package/dist/actions/submit-tool-outputs-to-run.d.mts +13 -12
- package/dist/actions/submit-tool-outputs-to-run.mjs +8 -8
- package/dist/actions/submit-tool-outputs-to-run.mjs.map +1 -1
- package/dist/actions/update-chat-completion.cjs +8 -8
- package/dist/actions/update-chat-completion.cjs.map +1 -1
- package/dist/actions/update-chat-completion.d.cts +9 -9
- package/dist/actions/update-chat-completion.d.mts +9 -9
- package/dist/actions/update-chat-completion.mjs +8 -8
- package/dist/actions/update-chat-completion.mjs.map +1 -1
- package/dist/actions/update-conversation.cjs +1 -1
- package/dist/actions/update-conversation.cjs.map +1 -1
- package/dist/actions/update-conversation.d.cts +1 -1
- package/dist/actions/update-conversation.d.mts +1 -1
- package/dist/actions/update-conversation.mjs +1 -1
- package/dist/actions/update-conversation.mjs.map +1 -1
- package/dist/actions/update-eval.cjs +1 -1
- package/dist/actions/update-eval.cjs.map +1 -1
- package/dist/actions/update-eval.d.cts +1 -1
- package/dist/actions/update-eval.d.mts +1 -1
- package/dist/actions/update-eval.mjs +1 -1
- package/dist/actions/update-eval.mjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.cjs +4 -4
- package/dist/actions/update-vector-store-file-attributes.cjs.map +1 -1
- package/dist/actions/update-vector-store-file-attributes.d.cts +5 -5
- package/dist/actions/update-vector-store-file-attributes.d.mts +5 -5
- package/dist/actions/update-vector-store-file-attributes.mjs +4 -4
- package/dist/actions/update-vector-store-file-attributes.mjs.map +1 -1
- package/dist/actions/upload-file.cjs +1 -1
- package/dist/actions/upload-file.cjs.map +1 -1
- package/dist/actions/upload-file.d.cts +1 -1
- package/dist/actions/upload-file.d.mts +1 -1
- package/dist/actions/upload-file.mjs +1 -1
- package/dist/actions/upload-file.mjs.map +1 -1
- package/dist/actions/validate-grader.cjs +7 -7
- package/dist/actions/validate-grader.cjs.map +1 -1
- package/dist/actions/validate-grader.d.cts +12 -7
- package/dist/actions/validate-grader.d.cts.map +1 -1
- package/dist/actions/validate-grader.d.mts +12 -7
- package/dist/actions/validate-grader.d.mts.map +1 -1
- package/dist/actions/validate-grader.mjs +7 -7
- package/dist/actions/validate-grader.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const OpenaiCreateResponseInput = zod.z.object({
|
|
|
7
7
|
type: zod.z.string().describe("Format type, must be 'json_schema'"),
|
|
8
8
|
schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true"),
|
|
9
9
|
strict: zod.z.boolean().nullable().optional()
|
|
10
|
-
}).describe("JSON schema format specification for structured outputs."), zod.z.object({ type: zod.z.string().describe("Format type, must be 'json_object'") }).describe("JSON object format specification.")]).optional() }).describe("Text output configuration.").optional(),
|
|
10
|
+
}).passthrough().describe("JSON schema format specification for structured outputs."), zod.z.object({ type: zod.z.string().describe("Format type, must be 'json_object'") }).passthrough().describe("JSON object format specification.")]).optional() }).describe("Text output configuration.").optional(),
|
|
11
11
|
input: zod.z.union([zod.z.string(), zod.z.array(zod.z.object({
|
|
12
12
|
role: zod.z.enum([
|
|
13
13
|
"system",
|
|
@@ -18,7 +18,7 @@ const OpenaiCreateResponseInput = zod.z.object({
|
|
|
18
18
|
content: zod.z.union([zod.z.string(), zod.z.array(zod.z.union([zod.z.object({
|
|
19
19
|
text: zod.z.string().describe("The text content"),
|
|
20
20
|
type: zod.z.string().describe("Content type, must be 'input_text'")
|
|
21
|
-
}).describe("Text content for input."), zod.z.object({
|
|
21
|
+
}).passthrough().describe("Text content for input."), zod.z.object({
|
|
22
22
|
type: zod.z.string().describe("Content type, must be 'input_image'"),
|
|
23
23
|
detail: zod.z.enum([
|
|
24
24
|
"auto",
|
|
@@ -26,8 +26,8 @@ const OpenaiCreateResponseInput = zod.z.object({
|
|
|
26
26
|
"high"
|
|
27
27
|
]).nullable().optional(),
|
|
28
28
|
image_url: zod.z.string().describe("Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)")
|
|
29
|
-
}).describe("Image content for input.")]))])
|
|
30
|
-
}).describe("Message in the input array."))]),
|
|
29
|
+
}).passthrough().describe("Image content for input.")]))])
|
|
30
|
+
}).passthrough().describe("Message in the input array."))]),
|
|
31
31
|
model: zod.z.string().describe("Model to use for the response"),
|
|
32
32
|
store: zod.z.boolean().describe("Whether to store the response for model distillation and training. Set to false to opt out").optional(),
|
|
33
33
|
tools: zod.z.array(zod.z.union([
|
|
@@ -37,14 +37,14 @@ const OpenaiCreateResponseInput = zod.z.object({
|
|
|
37
37
|
strict: zod.z.boolean().nullable().optional(),
|
|
38
38
|
parameters: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
39
39
|
description: zod.z.string().nullable().optional()
|
|
40
|
-
}).describe("Function tool definition for the Responses API.\n\nNote: The Responses API uses a flat structure where name, description,\nand parameters are at the top level, unlike the Chat Completions API\nwhich nests them inside a 'function' object."),
|
|
41
|
-
zod.z.object({ type: zod.z.string().describe("Tool type, must be 'code_interpreter'") }).describe("Code interpreter tool definition."),
|
|
42
|
-
zod.z.object({ type: zod.z.string().describe("Tool type, must be 'file_search'") }).describe("File search tool definition."),
|
|
43
|
-
zod.z.object({ type: zod.z.string().describe("Tool type, must be 'web_search'") }).describe("Web search tool definition.")
|
|
40
|
+
}).passthrough().describe("Function tool definition for the Responses API.\n\nNote: The Responses API uses a flat structure where name, description,\nand parameters are at the top level, unlike the Chat Completions API\nwhich nests them inside a 'function' object."),
|
|
41
|
+
zod.z.object({ type: zod.z.string().describe("Tool type, must be 'code_interpreter'") }).passthrough().describe("Code interpreter tool definition."),
|
|
42
|
+
zod.z.object({ type: zod.z.string().describe("Tool type, must be 'file_search'") }).passthrough().describe("File search tool definition."),
|
|
43
|
+
zod.z.object({ type: zod.z.string().describe("Tool type, must be 'web_search'") }).passthrough().describe("Web search tool definition.")
|
|
44
44
|
])).describe("List of tools the model can call. Supports function, code_interpreter, file_search, and web_search").optional(),
|
|
45
45
|
top_p: zod.z.number().describe("Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models").optional(),
|
|
46
46
|
stream: zod.z.boolean().describe("Whether to stream the response. Returns a stream of events during generation").optional(),
|
|
47
|
-
metadata: zod.z.
|
|
47
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional metadata to attach to the response. All values must be strings").optional(),
|
|
48
48
|
reasoning: zod.z.object({ effort: zod.z.enum([
|
|
49
49
|
"none",
|
|
50
50
|
"minimal",
|
|
@@ -61,8 +61,8 @@ const OpenaiCreateResponseInput = zod.z.object({
|
|
|
61
61
|
"required"
|
|
62
62
|
]), zod.z.object({
|
|
63
63
|
type: zod.z.string().describe("Must be 'function'"),
|
|
64
|
-
"function": zod.z.
|
|
65
|
-
}).describe("Specific function to call.")]).optional(),
|
|
64
|
+
"function": zod.z.record(zod.z.string(), zod.z.unknown()).describe("Function specification with 'name' key")
|
|
65
|
+
}).passthrough().describe("Specific function to call.")]).optional(),
|
|
66
66
|
max_output_tokens: zod.z.number().int().describe("Maximum number of tokens the model can generate in the response").optional(),
|
|
67
67
|
parallel_tool_calls: zod.z.boolean().describe("Whether to enable parallel function calling. Default is true").optional()
|
|
68
68
|
}).describe("Request parameters for creating a response via the Responses API.");
|
|
@@ -70,18 +70,18 @@ const OpenaiCreateResponse_UsageInfoSchema = zod.z.object({
|
|
|
70
70
|
input_tokens: zod.z.number().int().describe("Number of input tokens").nullable(),
|
|
71
71
|
total_tokens: zod.z.number().int().describe("Total tokens used (input + output)").nullable(),
|
|
72
72
|
output_tokens: zod.z.number().int().describe("Number of output tokens generated").nullable()
|
|
73
|
-
}).describe("Token usage information.");
|
|
73
|
+
}).passthrough().describe("Token usage information.");
|
|
74
74
|
const OpenaiCreateResponse_OutputContentSchema = zod.z.object({
|
|
75
75
|
text: zod.z.string().describe("Text content if type is 'output_text'").nullable().optional(),
|
|
76
76
|
type: zod.z.string().describe("Content type, e.g., 'output_text'").nullable()
|
|
77
|
-
}).describe("Content within an output item.");
|
|
77
|
+
}).passthrough().describe("Content within an output item.");
|
|
78
78
|
const OpenaiCreateResponse_OutputItemSchema = zod.z.object({
|
|
79
79
|
id: zod.z.string().describe("Unique identifier for this output item").nullable().optional(),
|
|
80
80
|
role: zod.z.string().describe("Role for message items, e.g., 'assistant'").nullable().optional(),
|
|
81
81
|
type: zod.z.string().describe("Type of output item, e.g., 'message', 'reasoning'").nullable(),
|
|
82
82
|
content: zod.z.array(OpenaiCreateResponse_OutputContentSchema).describe("Array of content objects").nullable().optional(),
|
|
83
83
|
reasoning_tokens: zod.z.number().int().describe("Number of reasoning tokens generated (for reasoning items)").nullable().optional()
|
|
84
|
-
}).describe("Output item in the output array.");
|
|
84
|
+
}).passthrough().describe("Output item in the output array.");
|
|
85
85
|
const OpenaiCreateResponseOutput = zod.z.object({
|
|
86
86
|
id: zod.z.string().describe("Unique identifier for this response").nullable(),
|
|
87
87
|
model: zod.z.string().describe("Model used to generate the response").nullable(),
|
|
@@ -91,7 +91,7 @@ const OpenaiCreateResponseOutput = zod.z.object({
|
|
|
91
91
|
status: zod.z.string().describe("Completion status, e.g., 'completed'").nullable().optional(),
|
|
92
92
|
created_at: zod.z.number().int().describe("Unix timestamp when the response was created").nullable(),
|
|
93
93
|
output_text: zod.z.string().describe("Aggregated text output from all output items (SDK convenience property, may not be in raw API response)").nullable().optional()
|
|
94
|
-
}).describe("Response schema for the Responses API.");
|
|
94
|
+
}).passthrough().describe("Response schema for the Responses API.");
|
|
95
95
|
const openaiCreateResponse = require_action.action("OPENAI_CREATE_RESPONSE", {
|
|
96
96
|
slug: "openai-create-response",
|
|
97
97
|
name: "Create Response",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-response.cjs","names":["z","action"],"sources":["../../src/actions/create-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateResponseInput = z.object({\n text: z.object({\n format: z.union([z.object({\n name: z.string().describe(\"Name identifier for the schema (e.g., 'math_response', 'person')\"),\n type: z.string().describe(\"Format type, must be 'json_schema'\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true\"),\n strict: z.boolean().nullable().optional(),\n}).describe(\"JSON schema format specification for structured outputs.\"), z.object({\n type: z.string().describe(\"Format type, must be 'json_object'\"),\n}).describe(\"JSON object format specification.\")]).optional(),\n}).describe(\"Text output configuration.\").optional(),\n input: z.union([z.string(), z.array(z.object({\n role: z.enum([\"system\", \"user\", \"assistant\", \"developer\"]).describe(\"Role of the message sender\"),\n content: z.union([z.string(), z.array(z.union([z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).describe(\"Text content for input.\"), z.object({\n type: z.string().describe(\"Content type, must be 'input_image'\"),\n detail: z.enum([\"auto\", \"low\", \"high\"]).nullable().optional(),\n image_url: z.string().describe(\"Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)\"),\n}).describe(\"Image content for input.\")]))]),\n}).describe(\"Message in the input array.\"))]),\n model: z.string().describe(\"Model to use for the response\"),\n store: z.boolean().describe(\"Whether to store the response for model distillation and training. Set to false to opt out\").optional(),\n tools: z.array(z.union([z.object({\n name: z.string().describe(\"Function name\"),\n type: z.string().describe(\"Tool type, must be 'function'\"),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).describe(\"Function tool definition for the Responses API.\\n\\nNote: The Responses API uses a flat structure where name, description,\\nand parameters are at the top level, unlike the Chat Completions API\\nwhich nests them inside a 'function' object.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'code_interpreter'\"),\n}).describe(\"Code interpreter tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'file_search'\"),\n}).describe(\"File search tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'web_search'\"),\n}).describe(\"Web search tool definition.\")])).describe(\"List of tools the model can call. Supports function, code_interpreter, file_search, and web_search\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models\").optional(),\n stream: z.boolean().describe(\"Whether to stream the response. Returns a stream of events during generation\").optional(),\n metadata: z.object({}).describe(\"Optional metadata to attach to the response. All values must be strings\").optional(),\n reasoning: z.object({\n effort: z.enum([\"none\", \"minimal\", \"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level. 'none' for lowest latency, 'high' for maximum reasoning. GPT-5.2 default is 'none'\"),\n}).describe(\"Reasoning configuration for reasoning models.\").optional(),\n background: z.boolean().describe(\"Whether to run the model response in the background. When set to true, the response is created asynchronously and can be polled for completion. Only background responses can be cancelled\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) more focused. Not supported with reasoning models\").optional(),\n tool_choice: z.union([z.enum([\"auto\", \"none\", \"required\"]), z.object({\n type: z.string().describe(\"Must be 'function'\"),\n \"function\": z.object({}).describe(\"Function specification with 'name' key\"),\n}).describe(\"Specific function to call.\")]).optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens the model can generate in the response\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling. Default is true\").optional(),\n}).describe(\"Request parameters for creating a response via the Responses API.\");\nconst OpenaiCreateResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens generated\").nullable(),\n}).describe(\"Token usage information.\");\nconst OpenaiCreateResponse_OutputContentSchema = z.object({\n text: z.string().describe(\"Text content if type is 'output_text'\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable(),\n}).describe(\"Content within an output item.\");\nconst OpenaiCreateResponse_OutputItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items, e.g., 'assistant'\").nullable().optional(),\n type: z.string().describe(\"Type of output item, e.g., 'message', 'reasoning'\").nullable(),\n content: z.array(OpenaiCreateResponse_OutputContentSchema).describe(\"Array of content objects\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated (for reasoning items)\").nullable().optional(),\n}).describe(\"Output item in the output array.\");\nexport const OpenaiCreateResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n model: z.string().describe(\"Model used to generate the response\").nullable(),\n usage: OpenaiCreateResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCreateResponse_OutputItemSchema).describe(\"Array of output items from the model, which may include messages, reasoning items, tool calls, etc.\"),\n status: z.string().describe(\"Completion status, e.g., 'completed'\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n output_text: z.string().describe(\"Aggregated text output from all output items (SDK convenience property, may not be in raw API response)\").nullable().optional(),\n}).describe(\"Response schema for the Responses API.\");\n\nexport const openaiCreateResponse = action(\"OPENAI_CREATE_RESPONSE\", {\n slug: \"openai-create-response\",\n name: \"Create Response\",\n description: \"Tool to generate a one-shot model response via the Responses API. Use for multimodal analysis (image + text), OCR/text extraction from images, or structured JSON outputs. For structured outputs, configure text.format with type='json_schema' and your schema. Returns the full Response object including id, output array, and aggregated output_text for parsing structured data.\",\n input: OpenaiCreateResponseInput,\n output: OpenaiCreateResponseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,EACf,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J;EAC9M,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,CAAC,CAAC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A,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,qGAAqG;CACrK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-response.cjs","names":["z","action"],"sources":["../../src/actions/create-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateResponseInput = z.object({\n text: z.object({\n format: z.union([z.object({\n name: z.string().describe(\"Name identifier for the schema (e.g., 'math_response', 'person')\"),\n type: z.string().describe(\"Format type, must be 'json_schema'\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true\"),\n strict: z.boolean().nullable().optional(),\n}).passthrough().describe(\"JSON schema format specification for structured outputs.\"), z.object({\n type: z.string().describe(\"Format type, must be 'json_object'\"),\n}).passthrough().describe(\"JSON object format specification.\")]).optional(),\n}).describe(\"Text output configuration.\").optional(),\n input: z.union([z.string(), z.array(z.object({\n role: z.enum([\"system\", \"user\", \"assistant\", \"developer\"]).describe(\"Role of the message sender\"),\n content: z.union([z.string(), z.array(z.union([z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).passthrough().describe(\"Text content for input.\"), z.object({\n type: z.string().describe(\"Content type, must be 'input_image'\"),\n detail: z.enum([\"auto\", \"low\", \"high\"]).nullable().optional(),\n image_url: z.string().describe(\"Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)\"),\n}).passthrough().describe(\"Image content for input.\")]))]),\n}).passthrough().describe(\"Message in the input array.\"))]),\n model: z.string().describe(\"Model to use for the response\"),\n store: z.boolean().describe(\"Whether to store the response for model distillation and training. Set to false to opt out\").optional(),\n tools: z.array(z.union([z.object({\n name: z.string().describe(\"Function name\"),\n type: z.string().describe(\"Tool type, must be 'function'\"),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Function tool definition for the Responses API.\\n\\nNote: The Responses API uses a flat structure where name, description,\\nand parameters are at the top level, unlike the Chat Completions API\\nwhich nests them inside a 'function' object.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'code_interpreter'\"),\n}).passthrough().describe(\"Code interpreter tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'file_search'\"),\n}).passthrough().describe(\"File search tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'web_search'\"),\n}).passthrough().describe(\"Web search tool definition.\")])).describe(\"List of tools the model can call. Supports function, code_interpreter, file_search, and web_search\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models\").optional(),\n stream: z.boolean().describe(\"Whether to stream the response. Returns a stream of events during generation\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata to attach to the response. All values must be strings\").optional(),\n reasoning: z.object({\n effort: z.enum([\"none\", \"minimal\", \"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level. 'none' for lowest latency, 'high' for maximum reasoning. GPT-5.2 default is 'none'\"),\n}).describe(\"Reasoning configuration for reasoning models.\").optional(),\n background: z.boolean().describe(\"Whether to run the model response in the background. When set to true, the response is created asynchronously and can be polled for completion. Only background responses can be cancelled\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) more focused. Not supported with reasoning models\").optional(),\n tool_choice: z.union([z.enum([\"auto\", \"none\", \"required\"]), z.object({\n type: z.string().describe(\"Must be 'function'\"),\n \"function\": z.record(z.string(), z.unknown()).describe(\"Function specification with 'name' key\"),\n}).passthrough().describe(\"Specific function to call.\")]).optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens the model can generate in the response\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling. Default is true\").optional(),\n}).describe(\"Request parameters for creating a response via the Responses API.\");\nconst OpenaiCreateResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens generated\").nullable(),\n}).passthrough().describe(\"Token usage information.\");\nconst OpenaiCreateResponse_OutputContentSchema = z.object({\n text: z.string().describe(\"Text content if type is 'output_text'\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable(),\n}).passthrough().describe(\"Content within an output item.\");\nconst OpenaiCreateResponse_OutputItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items, e.g., 'assistant'\").nullable().optional(),\n type: z.string().describe(\"Type of output item, e.g., 'message', 'reasoning'\").nullable(),\n content: z.array(OpenaiCreateResponse_OutputContentSchema).describe(\"Array of content objects\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated (for reasoning items)\").nullable().optional(),\n}).passthrough().describe(\"Output item in the output array.\");\nexport const OpenaiCreateResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n model: z.string().describe(\"Model used to generate the response\").nullable(),\n usage: OpenaiCreateResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCreateResponse_OutputItemSchema).describe(\"Array of output items from the model, which may include messages, reasoning items, tool calls, etc.\"),\n status: z.string().describe(\"Completion status, e.g., 'completed'\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n output_text: z.string().describe(\"Aggregated text output from all output items (SDK convenience property, may not be in raw API response)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the Responses API.\");\n\nexport const openaiCreateResponse = action(\"OPENAI_CREATE_RESPONSE\", {\n slug: \"openai-create-response\",\n name: \"Create Response\",\n description: \"Tool to generate a one-shot model response via the Responses API. Use for multimodal analysis (image + text), OCR/text extraction from images, or structured JSON outputs. For structured outputs, configure text.format with type='json_schema' and your schema. Returns the full Response object including id, output array, and aggregated output_text for parsing structured data.\",\n input: OpenaiCreateResponseInput,\n output: OpenaiCreateResponseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,EACf,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J;EAC9M,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D,GAAGA,IAAAA,EAAE,OAAO,EAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC,CA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,SAAS;CAC3E,OAAO,qCAAqC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,qGAAqG;CACrK,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,9 +8,9 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
8
8
|
type: z.ZodString;
|
|
9
9
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10
10
|
strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
12
12
|
type: z.ZodString;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>]>>;
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
|
|
16
16
|
role: z.ZodEnum<{
|
|
@@ -22,7 +22,7 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
22
22
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
23
23
|
text: z.ZodString;
|
|
24
24
|
type: z.ZodString;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
26
26
|
type: z.ZodString;
|
|
27
27
|
detail: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
28
28
|
auto: "auto";
|
|
@@ -30,8 +30,8 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
30
30
|
high: "high";
|
|
31
31
|
}>>>;
|
|
32
32
|
image_url: z.ZodString;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>]>>]>;
|
|
34
|
+
}, z.core.$loose>>]>;
|
|
35
35
|
model: z.ZodString;
|
|
36
36
|
store: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -40,16 +40,16 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
40
40
|
strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
44
44
|
type: z.ZodString;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
46
46
|
type: z.ZodString;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
48
48
|
type: z.ZodString;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>]>>>;
|
|
50
50
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
metadata: z.ZodOptional<z.
|
|
52
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53
53
|
reasoning: z.ZodOptional<z.ZodObject<{
|
|
54
54
|
effort: z.ZodEnum<{
|
|
55
55
|
none: "none";
|
|
@@ -71,8 +71,8 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
71
71
|
required: "required";
|
|
72
72
|
}>, z.ZodObject<{
|
|
73
73
|
type: z.ZodString;
|
|
74
|
-
function: z.
|
|
75
|
-
}, z.core.$
|
|
74
|
+
function: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
75
|
+
}, z.core.$loose>]>>;
|
|
76
76
|
max_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
77
77
|
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
78
78
|
}, z.core.$strip>;
|
|
@@ -83,7 +83,7 @@ declare const OpenaiCreateResponseOutput: z.ZodObject<{
|
|
|
83
83
|
input_tokens: z.ZodNullable<z.ZodNumber>;
|
|
84
84
|
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
85
85
|
output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
86
|
-
}, z.core.$
|
|
86
|
+
}, z.core.$loose>>;
|
|
87
87
|
object: z.ZodNullable<z.ZodString>;
|
|
88
88
|
output: z.ZodArray<z.ZodObject<{
|
|
89
89
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -92,20 +92,23 @@ declare const OpenaiCreateResponseOutput: z.ZodObject<{
|
|
|
92
92
|
content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
93
93
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
94
|
type: z.ZodNullable<z.ZodString>;
|
|
95
|
-
}, z.core.$
|
|
95
|
+
}, z.core.$loose>>>>;
|
|
96
96
|
reasoning_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
-
}, z.core.$
|
|
97
|
+
}, z.core.$loose>>;
|
|
98
98
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
99
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
100
100
|
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
-
}, z.core.$
|
|
101
|
+
}, z.core.$loose>;
|
|
102
102
|
declare const openaiCreateResponse: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
103
103
|
input: string | {
|
|
104
|
+
[x: string]: unknown;
|
|
104
105
|
role: "user" | "assistant" | "system" | "developer";
|
|
105
106
|
content: string | ({
|
|
107
|
+
[x: string]: unknown;
|
|
106
108
|
text: string;
|
|
107
109
|
type: string;
|
|
108
110
|
} | {
|
|
111
|
+
[x: string]: unknown;
|
|
109
112
|
type: string;
|
|
110
113
|
image_url: string;
|
|
111
114
|
detail?: "auto" | "low" | "high" | null | undefined;
|
|
@@ -114,31 +117,37 @@ declare const openaiCreateResponse: import("@keystrokehq/action").WorkflowAction
|
|
|
114
117
|
model: string;
|
|
115
118
|
text?: {
|
|
116
119
|
format?: {
|
|
120
|
+
[x: string]: unknown;
|
|
117
121
|
name: string;
|
|
118
122
|
type: string;
|
|
119
123
|
schema: Record<string, unknown>;
|
|
120
124
|
strict?: boolean | null | undefined;
|
|
121
125
|
} | {
|
|
126
|
+
[x: string]: unknown;
|
|
122
127
|
type: string;
|
|
123
128
|
} | undefined;
|
|
124
129
|
} | undefined;
|
|
125
130
|
store?: boolean | undefined;
|
|
126
131
|
tools?: ({
|
|
132
|
+
[x: string]: unknown;
|
|
127
133
|
name: string;
|
|
128
134
|
type: string;
|
|
129
135
|
strict?: boolean | null | undefined;
|
|
130
136
|
parameters?: Record<string, unknown> | null | undefined;
|
|
131
137
|
description?: string | null | undefined;
|
|
132
138
|
} | {
|
|
139
|
+
[x: string]: unknown;
|
|
133
140
|
type: string;
|
|
134
141
|
} | {
|
|
142
|
+
[x: string]: unknown;
|
|
135
143
|
type: string;
|
|
136
144
|
} | {
|
|
145
|
+
[x: string]: unknown;
|
|
137
146
|
type: string;
|
|
138
147
|
})[] | undefined;
|
|
139
148
|
top_p?: number | undefined;
|
|
140
149
|
stream?: boolean | undefined;
|
|
141
|
-
metadata?: Record<string,
|
|
150
|
+
metadata?: Record<string, unknown> | undefined;
|
|
142
151
|
reasoning?: {
|
|
143
152
|
effort: "none" | "low" | "medium" | "high" | "minimal";
|
|
144
153
|
} | undefined;
|
|
@@ -146,8 +155,9 @@ declare const openaiCreateResponse: import("@keystrokehq/action").WorkflowAction
|
|
|
146
155
|
modalities?: ("text" | "audio")[] | undefined;
|
|
147
156
|
temperature?: number | undefined;
|
|
148
157
|
tool_choice?: "none" | "auto" | "required" | {
|
|
158
|
+
[x: string]: unknown;
|
|
149
159
|
type: string;
|
|
150
|
-
function: Record<string,
|
|
160
|
+
function: Record<string, unknown>;
|
|
151
161
|
} | undefined;
|
|
152
162
|
max_output_tokens?: number | undefined;
|
|
153
163
|
parallel_tool_calls?: boolean | undefined;
|
|
@@ -8,9 +8,9 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
8
8
|
type: z.ZodString;
|
|
9
9
|
schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
10
10
|
strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
11
|
-
}, z.core.$
|
|
11
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
12
12
|
type: z.ZodString;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>]>>;
|
|
14
14
|
}, z.core.$strip>>;
|
|
15
15
|
input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
|
|
16
16
|
role: z.ZodEnum<{
|
|
@@ -22,7 +22,7 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
22
22
|
content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
23
23
|
text: z.ZodString;
|
|
24
24
|
type: z.ZodString;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
26
26
|
type: z.ZodString;
|
|
27
27
|
detail: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
28
28
|
auto: "auto";
|
|
@@ -30,8 +30,8 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
30
30
|
high: "high";
|
|
31
31
|
}>>>;
|
|
32
32
|
image_url: z.ZodString;
|
|
33
|
-
}, z.core.$
|
|
34
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>]>>]>;
|
|
34
|
+
}, z.core.$loose>>]>;
|
|
35
35
|
model: z.ZodString;
|
|
36
36
|
store: z.ZodOptional<z.ZodBoolean>;
|
|
37
37
|
tools: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -40,16 +40,16 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
40
40
|
strict: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
41
|
parameters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
42
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
44
44
|
type: z.ZodString;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
46
46
|
type: z.ZodString;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
48
48
|
type: z.ZodString;
|
|
49
|
-
}, z.core.$
|
|
49
|
+
}, z.core.$loose>]>>>;
|
|
50
50
|
top_p: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
stream: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
metadata: z.ZodOptional<z.
|
|
52
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53
53
|
reasoning: z.ZodOptional<z.ZodObject<{
|
|
54
54
|
effort: z.ZodEnum<{
|
|
55
55
|
none: "none";
|
|
@@ -71,8 +71,8 @@ declare const OpenaiCreateResponseInput: z.ZodObject<{
|
|
|
71
71
|
required: "required";
|
|
72
72
|
}>, z.ZodObject<{
|
|
73
73
|
type: z.ZodString;
|
|
74
|
-
function: z.
|
|
75
|
-
}, z.core.$
|
|
74
|
+
function: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
75
|
+
}, z.core.$loose>]>>;
|
|
76
76
|
max_output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
77
77
|
parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
|
|
78
78
|
}, z.core.$strip>;
|
|
@@ -83,7 +83,7 @@ declare const OpenaiCreateResponseOutput: z.ZodObject<{
|
|
|
83
83
|
input_tokens: z.ZodNullable<z.ZodNumber>;
|
|
84
84
|
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
85
85
|
output_tokens: z.ZodNullable<z.ZodNumber>;
|
|
86
|
-
}, z.core.$
|
|
86
|
+
}, z.core.$loose>>;
|
|
87
87
|
object: z.ZodNullable<z.ZodString>;
|
|
88
88
|
output: z.ZodArray<z.ZodObject<{
|
|
89
89
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -92,20 +92,23 @@ declare const OpenaiCreateResponseOutput: z.ZodObject<{
|
|
|
92
92
|
content: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
93
93
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
94
|
type: z.ZodNullable<z.ZodString>;
|
|
95
|
-
}, z.core.$
|
|
95
|
+
}, z.core.$loose>>>>;
|
|
96
96
|
reasoning_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
-
}, z.core.$
|
|
97
|
+
}, z.core.$loose>>;
|
|
98
98
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
99
|
created_at: z.ZodNullable<z.ZodNumber>;
|
|
100
100
|
output_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
-
}, z.core.$
|
|
101
|
+
}, z.core.$loose>;
|
|
102
102
|
declare const openaiCreateResponse: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
103
103
|
input: string | {
|
|
104
|
+
[x: string]: unknown;
|
|
104
105
|
role: "user" | "assistant" | "system" | "developer";
|
|
105
106
|
content: string | ({
|
|
107
|
+
[x: string]: unknown;
|
|
106
108
|
text: string;
|
|
107
109
|
type: string;
|
|
108
110
|
} | {
|
|
111
|
+
[x: string]: unknown;
|
|
109
112
|
type: string;
|
|
110
113
|
image_url: string;
|
|
111
114
|
detail?: "auto" | "low" | "high" | null | undefined;
|
|
@@ -114,31 +117,37 @@ declare const openaiCreateResponse: import("@keystrokehq/action").WorkflowAction
|
|
|
114
117
|
model: string;
|
|
115
118
|
text?: {
|
|
116
119
|
format?: {
|
|
120
|
+
[x: string]: unknown;
|
|
117
121
|
name: string;
|
|
118
122
|
type: string;
|
|
119
123
|
schema: Record<string, unknown>;
|
|
120
124
|
strict?: boolean | null | undefined;
|
|
121
125
|
} | {
|
|
126
|
+
[x: string]: unknown;
|
|
122
127
|
type: string;
|
|
123
128
|
} | undefined;
|
|
124
129
|
} | undefined;
|
|
125
130
|
store?: boolean | undefined;
|
|
126
131
|
tools?: ({
|
|
132
|
+
[x: string]: unknown;
|
|
127
133
|
name: string;
|
|
128
134
|
type: string;
|
|
129
135
|
strict?: boolean | null | undefined;
|
|
130
136
|
parameters?: Record<string, unknown> | null | undefined;
|
|
131
137
|
description?: string | null | undefined;
|
|
132
138
|
} | {
|
|
139
|
+
[x: string]: unknown;
|
|
133
140
|
type: string;
|
|
134
141
|
} | {
|
|
142
|
+
[x: string]: unknown;
|
|
135
143
|
type: string;
|
|
136
144
|
} | {
|
|
145
|
+
[x: string]: unknown;
|
|
137
146
|
type: string;
|
|
138
147
|
})[] | undefined;
|
|
139
148
|
top_p?: number | undefined;
|
|
140
149
|
stream?: boolean | undefined;
|
|
141
|
-
metadata?: Record<string,
|
|
150
|
+
metadata?: Record<string, unknown> | undefined;
|
|
142
151
|
reasoning?: {
|
|
143
152
|
effort: "none" | "low" | "medium" | "high" | "minimal";
|
|
144
153
|
} | undefined;
|
|
@@ -146,8 +155,9 @@ declare const openaiCreateResponse: import("@keystrokehq/action").WorkflowAction
|
|
|
146
155
|
modalities?: ("text" | "audio")[] | undefined;
|
|
147
156
|
temperature?: number | undefined;
|
|
148
157
|
tool_choice?: "none" | "auto" | "required" | {
|
|
158
|
+
[x: string]: unknown;
|
|
149
159
|
type: string;
|
|
150
|
-
function: Record<string,
|
|
160
|
+
function: Record<string, unknown>;
|
|
151
161
|
} | undefined;
|
|
152
162
|
max_output_tokens?: number | undefined;
|
|
153
163
|
parallel_tool_calls?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ const OpenaiCreateResponseInput = z.object({
|
|
|
7
7
|
type: z.string().describe("Format type, must be 'json_schema'"),
|
|
8
8
|
schema: z.record(z.string(), z.unknown()).describe("JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true"),
|
|
9
9
|
strict: z.boolean().nullable().optional()
|
|
10
|
-
}).describe("JSON schema format specification for structured outputs."), z.object({ type: z.string().describe("Format type, must be 'json_object'") }).describe("JSON object format specification.")]).optional() }).describe("Text output configuration.").optional(),
|
|
10
|
+
}).passthrough().describe("JSON schema format specification for structured outputs."), z.object({ type: z.string().describe("Format type, must be 'json_object'") }).passthrough().describe("JSON object format specification.")]).optional() }).describe("Text output configuration.").optional(),
|
|
11
11
|
input: z.union([z.string(), z.array(z.object({
|
|
12
12
|
role: z.enum([
|
|
13
13
|
"system",
|
|
@@ -18,7 +18,7 @@ const OpenaiCreateResponseInput = z.object({
|
|
|
18
18
|
content: z.union([z.string(), z.array(z.union([z.object({
|
|
19
19
|
text: z.string().describe("The text content"),
|
|
20
20
|
type: z.string().describe("Content type, must be 'input_text'")
|
|
21
|
-
}).describe("Text content for input."), z.object({
|
|
21
|
+
}).passthrough().describe("Text content for input."), z.object({
|
|
22
22
|
type: z.string().describe("Content type, must be 'input_image'"),
|
|
23
23
|
detail: z.enum([
|
|
24
24
|
"auto",
|
|
@@ -26,8 +26,8 @@ const OpenaiCreateResponseInput = z.object({
|
|
|
26
26
|
"high"
|
|
27
27
|
]).nullable().optional(),
|
|
28
28
|
image_url: z.string().describe("Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)")
|
|
29
|
-
}).describe("Image content for input.")]))])
|
|
30
|
-
}).describe("Message in the input array."))]),
|
|
29
|
+
}).passthrough().describe("Image content for input.")]))])
|
|
30
|
+
}).passthrough().describe("Message in the input array."))]),
|
|
31
31
|
model: z.string().describe("Model to use for the response"),
|
|
32
32
|
store: z.boolean().describe("Whether to store the response for model distillation and training. Set to false to opt out").optional(),
|
|
33
33
|
tools: z.array(z.union([
|
|
@@ -37,14 +37,14 @@ const OpenaiCreateResponseInput = z.object({
|
|
|
37
37
|
strict: z.boolean().nullable().optional(),
|
|
38
38
|
parameters: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
39
39
|
description: z.string().nullable().optional()
|
|
40
|
-
}).describe("Function tool definition for the Responses API.\n\nNote: The Responses API uses a flat structure where name, description,\nand parameters are at the top level, unlike the Chat Completions API\nwhich nests them inside a 'function' object."),
|
|
41
|
-
z.object({ type: z.string().describe("Tool type, must be 'code_interpreter'") }).describe("Code interpreter tool definition."),
|
|
42
|
-
z.object({ type: z.string().describe("Tool type, must be 'file_search'") }).describe("File search tool definition."),
|
|
43
|
-
z.object({ type: z.string().describe("Tool type, must be 'web_search'") }).describe("Web search tool definition.")
|
|
40
|
+
}).passthrough().describe("Function tool definition for the Responses API.\n\nNote: The Responses API uses a flat structure where name, description,\nand parameters are at the top level, unlike the Chat Completions API\nwhich nests them inside a 'function' object."),
|
|
41
|
+
z.object({ type: z.string().describe("Tool type, must be 'code_interpreter'") }).passthrough().describe("Code interpreter tool definition."),
|
|
42
|
+
z.object({ type: z.string().describe("Tool type, must be 'file_search'") }).passthrough().describe("File search tool definition."),
|
|
43
|
+
z.object({ type: z.string().describe("Tool type, must be 'web_search'") }).passthrough().describe("Web search tool definition.")
|
|
44
44
|
])).describe("List of tools the model can call. Supports function, code_interpreter, file_search, and web_search").optional(),
|
|
45
45
|
top_p: z.number().describe("Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models").optional(),
|
|
46
46
|
stream: z.boolean().describe("Whether to stream the response. Returns a stream of events during generation").optional(),
|
|
47
|
-
metadata: z.
|
|
47
|
+
metadata: z.record(z.string(), z.unknown()).describe("Optional metadata to attach to the response. All values must be strings").optional(),
|
|
48
48
|
reasoning: z.object({ effort: z.enum([
|
|
49
49
|
"none",
|
|
50
50
|
"minimal",
|
|
@@ -61,8 +61,8 @@ const OpenaiCreateResponseInput = z.object({
|
|
|
61
61
|
"required"
|
|
62
62
|
]), z.object({
|
|
63
63
|
type: z.string().describe("Must be 'function'"),
|
|
64
|
-
"function": z.
|
|
65
|
-
}).describe("Specific function to call.")]).optional(),
|
|
64
|
+
"function": z.record(z.string(), z.unknown()).describe("Function specification with 'name' key")
|
|
65
|
+
}).passthrough().describe("Specific function to call.")]).optional(),
|
|
66
66
|
max_output_tokens: z.number().int().describe("Maximum number of tokens the model can generate in the response").optional(),
|
|
67
67
|
parallel_tool_calls: z.boolean().describe("Whether to enable parallel function calling. Default is true").optional()
|
|
68
68
|
}).describe("Request parameters for creating a response via the Responses API.");
|
|
@@ -70,18 +70,18 @@ const OpenaiCreateResponse_UsageInfoSchema = z.object({
|
|
|
70
70
|
input_tokens: z.number().int().describe("Number of input tokens").nullable(),
|
|
71
71
|
total_tokens: z.number().int().describe("Total tokens used (input + output)").nullable(),
|
|
72
72
|
output_tokens: z.number().int().describe("Number of output tokens generated").nullable()
|
|
73
|
-
}).describe("Token usage information.");
|
|
73
|
+
}).passthrough().describe("Token usage information.");
|
|
74
74
|
const OpenaiCreateResponse_OutputContentSchema = z.object({
|
|
75
75
|
text: z.string().describe("Text content if type is 'output_text'").nullable().optional(),
|
|
76
76
|
type: z.string().describe("Content type, e.g., 'output_text'").nullable()
|
|
77
|
-
}).describe("Content within an output item.");
|
|
77
|
+
}).passthrough().describe("Content within an output item.");
|
|
78
78
|
const OpenaiCreateResponse_OutputItemSchema = z.object({
|
|
79
79
|
id: z.string().describe("Unique identifier for this output item").nullable().optional(),
|
|
80
80
|
role: z.string().describe("Role for message items, e.g., 'assistant'").nullable().optional(),
|
|
81
81
|
type: z.string().describe("Type of output item, e.g., 'message', 'reasoning'").nullable(),
|
|
82
82
|
content: z.array(OpenaiCreateResponse_OutputContentSchema).describe("Array of content objects").nullable().optional(),
|
|
83
83
|
reasoning_tokens: z.number().int().describe("Number of reasoning tokens generated (for reasoning items)").nullable().optional()
|
|
84
|
-
}).describe("Output item in the output array.");
|
|
84
|
+
}).passthrough().describe("Output item in the output array.");
|
|
85
85
|
const openaiCreateResponse = action("OPENAI_CREATE_RESPONSE", {
|
|
86
86
|
slug: "openai-create-response",
|
|
87
87
|
name: "Create Response",
|
|
@@ -96,7 +96,7 @@ const openaiCreateResponse = action("OPENAI_CREATE_RESPONSE", {
|
|
|
96
96
|
status: z.string().describe("Completion status, e.g., 'completed'").nullable().optional(),
|
|
97
97
|
created_at: z.number().int().describe("Unix timestamp when the response was created").nullable(),
|
|
98
98
|
output_text: z.string().describe("Aggregated text output from all output items (SDK convenience property, may not be in raw API response)").nullable().optional()
|
|
99
|
-
}).describe("Response schema for the Responses API.")
|
|
99
|
+
}).passthrough().describe("Response schema for the Responses API.")
|
|
100
100
|
});
|
|
101
101
|
//#endregion
|
|
102
102
|
export { openaiCreateResponse };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-response.mjs","names":[],"sources":["../../src/actions/create-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateResponseInput = z.object({\n text: z.object({\n format: z.union([z.object({\n name: z.string().describe(\"Name identifier for the schema (e.g., 'math_response', 'person')\"),\n type: z.string().describe(\"Format type, must be 'json_schema'\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true\"),\n strict: z.boolean().nullable().optional(),\n}).describe(\"JSON schema format specification for structured outputs.\"), z.object({\n type: z.string().describe(\"Format type, must be 'json_object'\"),\n}).describe(\"JSON object format specification.\")]).optional(),\n}).describe(\"Text output configuration.\").optional(),\n input: z.union([z.string(), z.array(z.object({\n role: z.enum([\"system\", \"user\", \"assistant\", \"developer\"]).describe(\"Role of the message sender\"),\n content: z.union([z.string(), z.array(z.union([z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).describe(\"Text content for input.\"), z.object({\n type: z.string().describe(\"Content type, must be 'input_image'\"),\n detail: z.enum([\"auto\", \"low\", \"high\"]).nullable().optional(),\n image_url: z.string().describe(\"Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)\"),\n}).describe(\"Image content for input.\")]))]),\n}).describe(\"Message in the input array.\"))]),\n model: z.string().describe(\"Model to use for the response\"),\n store: z.boolean().describe(\"Whether to store the response for model distillation and training. Set to false to opt out\").optional(),\n tools: z.array(z.union([z.object({\n name: z.string().describe(\"Function name\"),\n type: z.string().describe(\"Tool type, must be 'function'\"),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).describe(\"Function tool definition for the Responses API.\\n\\nNote: The Responses API uses a flat structure where name, description,\\nand parameters are at the top level, unlike the Chat Completions API\\nwhich nests them inside a 'function' object.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'code_interpreter'\"),\n}).describe(\"Code interpreter tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'file_search'\"),\n}).describe(\"File search tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'web_search'\"),\n}).describe(\"Web search tool definition.\")])).describe(\"List of tools the model can call. Supports function, code_interpreter, file_search, and web_search\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models\").optional(),\n stream: z.boolean().describe(\"Whether to stream the response. Returns a stream of events during generation\").optional(),\n metadata: z.object({}).describe(\"Optional metadata to attach to the response. All values must be strings\").optional(),\n reasoning: z.object({\n effort: z.enum([\"none\", \"minimal\", \"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level. 'none' for lowest latency, 'high' for maximum reasoning. GPT-5.2 default is 'none'\"),\n}).describe(\"Reasoning configuration for reasoning models.\").optional(),\n background: z.boolean().describe(\"Whether to run the model response in the background. When set to true, the response is created asynchronously and can be polled for completion. Only background responses can be cancelled\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) more focused. Not supported with reasoning models\").optional(),\n tool_choice: z.union([z.enum([\"auto\", \"none\", \"required\"]), z.object({\n type: z.string().describe(\"Must be 'function'\"),\n \"function\": z.object({}).describe(\"Function specification with 'name' key\"),\n}).describe(\"Specific function to call.\")]).optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens the model can generate in the response\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling. Default is true\").optional(),\n}).describe(\"Request parameters for creating a response via the Responses API.\");\nconst OpenaiCreateResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens generated\").nullable(),\n}).describe(\"Token usage information.\");\nconst OpenaiCreateResponse_OutputContentSchema = z.object({\n text: z.string().describe(\"Text content if type is 'output_text'\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable(),\n}).describe(\"Content within an output item.\");\nconst OpenaiCreateResponse_OutputItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items, e.g., 'assistant'\").nullable().optional(),\n type: z.string().describe(\"Type of output item, e.g., 'message', 'reasoning'\").nullable(),\n content: z.array(OpenaiCreateResponse_OutputContentSchema).describe(\"Array of content objects\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated (for reasoning items)\").nullable().optional(),\n}).describe(\"Output item in the output array.\");\nexport const OpenaiCreateResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n model: z.string().describe(\"Model used to generate the response\").nullable(),\n usage: OpenaiCreateResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCreateResponse_OutputItemSchema).describe(\"Array of output items from the model, which may include messages, reasoning items, tool calls, etc.\"),\n status: z.string().describe(\"Completion status, e.g., 'completed'\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n output_text: z.string().describe(\"Aggregated text output from all output items (SDK convenience property, may not be in raw API response)\").nullable().optional(),\n}).describe(\"Response schema for the Responses API.\");\n\nexport const openaiCreateResponse = action(\"OPENAI_CREATE_RESPONSE\", {\n slug: \"openai-create-response\",\n name: \"Create Response\",\n description: \"Tool to generate a one-shot model response via the Responses API. Use for multimodal analysis (image + text), OCR/text extraction from images, or structured JSON outputs. For structured outputs, configure text.format with type='json_schema' and your schema. Returns the full Response object including id, output array, and aggregated output_text for parsing structured data.\",\n input: OpenaiCreateResponseInput,\n output: OpenaiCreateResponseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO;EAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQ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wCAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-response.mjs","names":[],"sources":["../../src/actions/create-response.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateResponseInput = z.object({\n text: z.object({\n format: z.union([z.object({\n name: z.string().describe(\"Name identifier for the schema (e.g., 'math_response', 'person')\"),\n type: z.string().describe(\"Format type, must be 'json_schema'\"),\n schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema definition with type, properties, required fields, and additionalProperties. All properties must be listed in required array when strict=true\"),\n strict: z.boolean().nullable().optional(),\n}).passthrough().describe(\"JSON schema format specification for structured outputs.\"), z.object({\n type: z.string().describe(\"Format type, must be 'json_object'\"),\n}).passthrough().describe(\"JSON object format specification.\")]).optional(),\n}).describe(\"Text output configuration.\").optional(),\n input: z.union([z.string(), z.array(z.object({\n role: z.enum([\"system\", \"user\", \"assistant\", \"developer\"]).describe(\"Role of the message sender\"),\n content: z.union([z.string(), z.array(z.union([z.object({\n text: z.string().describe(\"The text content\"),\n type: z.string().describe(\"Content type, must be 'input_text'\"),\n}).passthrough().describe(\"Text content for input.\"), z.object({\n type: z.string().describe(\"Content type, must be 'input_image'\"),\n detail: z.enum([\"auto\", \"low\", \"high\"]).nullable().optional(),\n image_url: z.string().describe(\"Either a URL of the image (https://...) or the base64 encoded image data (data:image/jpeg;base64,...)\"),\n}).passthrough().describe(\"Image content for input.\")]))]),\n}).passthrough().describe(\"Message in the input array.\"))]),\n model: z.string().describe(\"Model to use for the response\"),\n store: z.boolean().describe(\"Whether to store the response for model distillation and training. Set to false to opt out\").optional(),\n tools: z.array(z.union([z.object({\n name: z.string().describe(\"Function name\"),\n type: z.string().describe(\"Tool type, must be 'function'\"),\n strict: z.boolean().nullable().optional(),\n parameters: z.record(z.string(), z.unknown()).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Function tool definition for the Responses API.\\n\\nNote: The Responses API uses a flat structure where name, description,\\nand parameters are at the top level, unlike the Chat Completions API\\nwhich nests them inside a 'function' object.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'code_interpreter'\"),\n}).passthrough().describe(\"Code interpreter tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'file_search'\"),\n}).passthrough().describe(\"File search tool definition.\"), z.object({\n type: z.string().describe(\"Tool type, must be 'web_search'\"),\n}).passthrough().describe(\"Web search tool definition.\")])).describe(\"List of tools the model can call. Supports function, code_interpreter, file_search, and web_search\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. Alternative to temperature. Not supported with reasoning models\").optional(),\n stream: z.boolean().describe(\"Whether to stream the response. Returns a stream of events during generation\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Optional metadata to attach to the response. All values must be strings\").optional(),\n reasoning: z.object({\n effort: z.enum([\"none\", \"minimal\", \"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level. 'none' for lowest latency, 'high' for maximum reasoning. GPT-5.2 default is 'none'\"),\n}).describe(\"Reasoning configuration for reasoning models.\").optional(),\n background: z.boolean().describe(\"Whether to run the model response in the background. When set to true, the response is created asynchronously and can be polled for completion. Only background responses can be cancelled\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) more focused. Not supported with reasoning models\").optional(),\n tool_choice: z.union([z.enum([\"auto\", \"none\", \"required\"]), z.object({\n type: z.string().describe(\"Must be 'function'\"),\n \"function\": z.record(z.string(), z.unknown()).describe(\"Function specification with 'name' key\"),\n}).passthrough().describe(\"Specific function to call.\")]).optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens the model can generate in the response\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling. Default is true\").optional(),\n}).describe(\"Request parameters for creating a response via the Responses API.\");\nconst OpenaiCreateResponse_UsageInfoSchema = z.object({\n input_tokens: z.number().int().describe(\"Number of input tokens\").nullable(),\n total_tokens: z.number().int().describe(\"Total tokens used (input + output)\").nullable(),\n output_tokens: z.number().int().describe(\"Number of output tokens generated\").nullable(),\n}).passthrough().describe(\"Token usage information.\");\nconst OpenaiCreateResponse_OutputContentSchema = z.object({\n text: z.string().describe(\"Text content if type is 'output_text'\").nullable().optional(),\n type: z.string().describe(\"Content type, e.g., 'output_text'\").nullable(),\n}).passthrough().describe(\"Content within an output item.\");\nconst OpenaiCreateResponse_OutputItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for this output item\").nullable().optional(),\n role: z.string().describe(\"Role for message items, e.g., 'assistant'\").nullable().optional(),\n type: z.string().describe(\"Type of output item, e.g., 'message', 'reasoning'\").nullable(),\n content: z.array(OpenaiCreateResponse_OutputContentSchema).describe(\"Array of content objects\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated (for reasoning items)\").nullable().optional(),\n}).passthrough().describe(\"Output item in the output array.\");\nexport const OpenaiCreateResponseOutput = z.object({\n id: z.string().describe(\"Unique identifier for this response\").nullable(),\n model: z.string().describe(\"Model used to generate the response\").nullable(),\n usage: OpenaiCreateResponse_UsageInfoSchema.nullable(),\n object: z.string().describe(\"Object type, always 'response'\").nullable(),\n output: z.array(OpenaiCreateResponse_OutputItemSchema).describe(\"Array of output items from the model, which may include messages, reasoning items, tool calls, etc.\"),\n status: z.string().describe(\"Completion status, e.g., 'completed'\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp when the response was created\").nullable(),\n output_text: z.string().describe(\"Aggregated text output from all output items (SDK convenience property, may not be in raw API response)\").nullable().optional(),\n}).passthrough().describe(\"Response schema for the Responses API.\");\n\nexport const openaiCreateResponse = action(\"OPENAI_CREATE_RESPONSE\", {\n slug: \"openai-create-response\",\n name: \"Create Response\",\n description: \"Tool to generate a one-shot model response via the Responses API. Use for multimodal analysis (image + text), OCR/text extraction from images, or structured JSON outputs. For structured outputs, configure text.format with type='json_schema' and your schema. Returns the full Response object including id, output array, and aggregated output_text for parsing structured data.\",\n input: OpenaiCreateResponseInput,\n output: OpenaiCreateResponseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO;EAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J;EAC9M,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D,GAAG,EAAE,OAAO,EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,CAAC,CAAC,SAAS,EAC1E,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjD,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO;EAC7C,MAAM,EAAE,KAAK;GAAC;GAAU;GAAQ;GAAa;EAAW,CAAC,CAAC,CAAC,SAAS,4BAA4B;EAChG,SAAS,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO;GACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;GAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB,GAAG,EAAE,OAAO;GAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;GAC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