openai 7.4.0 → 7.6.0
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/CHANGELOG.md +424 -0
- package/README.md +59 -12
- package/_vendor/partial-json-parser/parser.d.mts.map +1 -1
- package/_vendor/partial-json-parser/parser.d.ts.map +1 -1
- package/_vendor/partial-json-parser/parser.js +52 -36
- package/_vendor/partial-json-parser/parser.js.map +1 -1
- package/_vendor/partial-json-parser/parser.mjs +52 -36
- package/_vendor/partial-json-parser/parser.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/Options.d.mts +3 -3
- package/_vendor/zod-to-json-schema/Options.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/Options.d.ts +3 -3
- package/_vendor/zod-to-json-schema/Options.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/Options.js +9 -2
- package/_vendor/zod-to-json-schema/Options.js.map +1 -1
- package/_vendor/zod-to-json-schema/Options.mjs +9 -2
- package/_vendor/zod-to-json-schema/Options.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.d.mts +2 -2
- package/_vendor/zod-to-json-schema/Refs.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.d.ts +2 -2
- package/_vendor/zod-to-json-schema/Refs.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.js +4 -4
- package/_vendor/zod-to-json-schema/Refs.js.map +1 -1
- package/_vendor/zod-to-json-schema/Refs.mjs +4 -4
- package/_vendor/zod-to-json-schema/Refs.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.d.mts +2 -2
- package/_vendor/zod-to-json-schema/errorMessages.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.d.ts +2 -2
- package/_vendor/zod-to-json-schema/errorMessages.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.js +2 -1
- package/_vendor/zod-to-json-schema/errorMessages.js.map +1 -1
- package/_vendor/zod-to-json-schema/errorMessages.mjs +2 -1
- package/_vendor/zod-to-json-schema/errorMessages.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/index.d.mts +1 -1
- package/_vendor/zod-to-json-schema/index.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/index.d.ts +1 -1
- package/_vendor/zod-to-json-schema/index.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/index.js +1 -1
- package/_vendor/zod-to-json-schema/index.js.map +1 -1
- package/_vendor/zod-to-json-schema/index.mjs +1 -1
- package/_vendor/zod-to-json-schema/index.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.d.mts +24 -24
- package/_vendor/zod-to-json-schema/parseDef.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.d.ts +24 -24
- package/_vendor/zod-to-json-schema/parseDef.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.js +98 -40
- package/_vendor/zod-to-json-schema/parseDef.js.map +1 -1
- package/_vendor/zod-to-json-schema/parseDef.mjs +98 -40
- package/_vendor/zod-to-json-schema/parseDef.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/array.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/array.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.js +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.mjs +1 -1
- package/_vendor/zod-to-json-schema/parsers/array.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.d.mts +8 -8
- package/_vendor/zod-to-json-schema/parsers/bigint.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.d.ts +8 -8
- package/_vendor/zod-to-json-schema/parsers/bigint.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.js +8 -4
- package/_vendor/zod-to-json-schema/parsers/bigint.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/bigint.mjs +8 -4
- package/_vendor/zod-to-json-schema/parsers/bigint.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/branded.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/branded.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/branded.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/branded.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/catch.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/catch.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.js +1 -3
- package/_vendor/zod-to-json-schema/parsers/catch.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/catch.mjs +1 -3
- package/_vendor/zod-to-json-schema/parsers/catch.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.d.mts +5 -5
- package/_vendor/zod-to-json-schema/parsers/date.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.d.ts +5 -5
- package/_vendor/zod-to-json-schema/parsers/date.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.js +10 -5
- package/_vendor/zod-to-json-schema/parsers/date.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/date.mjs +10 -5
- package/_vendor/zod-to-json-schema/parsers/date.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/default.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/default.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/default.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/effects.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/effects.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/effects.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.mts +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.ts +1 -1
- package/_vendor/zod-to-json-schema/parsers/enum.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/intersection.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/intersection.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.js +6 -5
- package/_vendor/zod-to-json-schema/parsers/intersection.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/intersection.mjs +6 -5
- package/_vendor/zod-to-json-schema/parsers/intersection.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.d.mts +5 -2
- package/_vendor/zod-to-json-schema/parsers/literal.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.d.ts +5 -2
- package/_vendor/zod-to-json-schema/parsers/literal.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.js +4 -0
- package/_vendor/zod-to-json-schema/parsers/literal.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/literal.mjs +4 -0
- package/_vendor/zod-to-json-schema/parsers/literal.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/map.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/map.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/map.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.js +7 -9
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs +7 -9
- package/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.mts +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.ts +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.js +2 -2
- package/_vendor/zod-to-json-schema/parsers/null.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/null.mjs +2 -2
- package/_vendor/zod-to-json-schema/parsers/null.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/nullable.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/nullable.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.js +2 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.mjs +2 -1
- package/_vendor/zod-to-json-schema/parsers/nullable.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/number.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/number.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.js +10 -5
- package/_vendor/zod-to-json-schema/parsers/number.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/number.mjs +10 -5
- package/_vendor/zod-to-json-schema/parsers/number.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/object.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/object.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.js +43 -38
- package/_vendor/zod-to-json-schema/parsers/object.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/object.mjs +43 -38
- package/_vendor/zod-to-json-schema/parsers/object.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/optional.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/optional.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.js +2 -2
- package/_vendor/zod-to-json-schema/parsers/optional.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/optional.mjs +2 -2
- package/_vendor/zod-to-json-schema/parsers/optional.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/pipeline.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/pipeline.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/promise.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/promise.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/promise.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.js +1 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/readonly.mjs +1 -3
- package/_vendor/zod-to-json-schema/parsers/readonly.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.d.mts +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.d.ts +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.js +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/record.mjs +5 -5
- package/_vendor/zod-to-json-schema/parsers/record.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.d.mts +4 -4
- package/_vendor/zod-to-json-schema/parsers/set.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.d.ts +4 -4
- package/_vendor/zod-to-json-schema/parsers/set.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/set.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/string.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/string.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.js +55 -33
- package/_vendor/zod-to-json-schema/parsers/string.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/string.mjs +55 -33
- package/_vendor/zod-to-json-schema/parsers/string.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/tuple.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/tuple.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.js +12 -14
- package/_vendor/zod-to-json-schema/parsers/tuple.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs +12 -14
- package/_vendor/zod-to-json-schema/parsers/tuple.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.d.mts +3 -3
- package/_vendor/zod-to-json-schema/parsers/union.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.d.ts +3 -3
- package/_vendor/zod-to-json-schema/parsers/union.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.js +43 -24
- package/_vendor/zod-to-json-schema/parsers/union.js.map +1 -1
- package/_vendor/zod-to-json-schema/parsers/union.mjs +43 -24
- package/_vendor/zod-to-json-schema/parsers/union.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/util.d.mts +1 -1
- package/_vendor/zod-to-json-schema/util.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/util.d.ts +1 -1
- package/_vendor/zod-to-json-schema/util.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/util.js +6 -5
- package/_vendor/zod-to-json-schema/util.js.map +1 -1
- package/_vendor/zod-to-json-schema/util.mjs +6 -5
- package/_vendor/zod-to-json-schema/util.mjs.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts +4 -6
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.mts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts +4 -6
- package/_vendor/zod-to-json-schema/zodToJsonSchema.d.ts.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js +102 -36
- package/_vendor/zod-to-json-schema/zodToJsonSchema.js.map +1 -1
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +102 -36
- package/_vendor/zod-to-json-schema/zodToJsonSchema.mjs.map +1 -1
- package/auth/index.d.mts +1 -1
- package/auth/index.d.mts.map +1 -1
- package/auth/index.d.ts +1 -1
- package/auth/index.d.ts.map +1 -1
- package/auth/index.js.map +1 -1
- package/auth/index.mjs.map +1 -1
- package/auth/subject-token-providers.d.mts +52 -0
- package/auth/subject-token-providers.d.mts.map +1 -1
- package/auth/subject-token-providers.d.ts +52 -0
- package/auth/subject-token-providers.d.ts.map +1 -1
- package/auth/subject-token-providers.js +222 -7
- package/auth/subject-token-providers.js.map +1 -1
- package/auth/subject-token-providers.mjs +222 -7
- package/auth/subject-token-providers.mjs.map +1 -1
- package/auth/types.d.mts +31 -5
- package/auth/types.d.mts.map +1 -1
- package/auth/types.d.ts +31 -5
- package/auth/types.d.ts.map +1 -1
- package/auth/workload-identity-auth.d.mts +26 -1
- package/auth/workload-identity-auth.d.mts.map +1 -1
- package/auth/workload-identity-auth.d.ts +26 -1
- package/auth/workload-identity-auth.d.ts.map +1 -1
- package/auth/workload-identity-auth.js +139 -22
- package/auth/workload-identity-auth.js.map +1 -1
- package/auth/workload-identity-auth.mjs +139 -22
- package/auth/workload-identity-auth.mjs.map +1 -1
- package/auth/x509-transport.d.mts +5 -0
- package/auth/x509-transport.d.mts.map +1 -0
- package/auth/x509-transport.d.ts +5 -0
- package/auth/x509-transport.d.ts.map +1 -0
- package/auth/x509-transport.js +39 -0
- package/auth/x509-transport.js.map +1 -0
- package/auth/x509-transport.mjs +36 -0
- package/auth/x509-transport.mjs.map +1 -0
- package/azure.d.mts +38 -16
- package/azure.d.mts.map +1 -1
- package/azure.d.ts +38 -16
- package/azure.d.ts.map +1 -1
- package/azure.js +36 -19
- package/azure.js.map +1 -1
- package/azure.mjs +36 -19
- package/azure.mjs.map +1 -1
- package/bedrock.d.mts +23 -5
- package/bedrock.d.mts.map +1 -1
- package/bedrock.d.ts +23 -5
- package/bedrock.d.ts.map +1 -1
- package/bedrock.js +69 -8
- package/bedrock.js.map +1 -1
- package/bedrock.mjs +69 -8
- package/bedrock.mjs.map +1 -1
- package/beta/realtime/internal-base.d.mts +47 -4
- package/beta/realtime/internal-base.d.mts.map +1 -1
- package/beta/realtime/internal-base.d.ts +47 -4
- package/beta/realtime/internal-base.d.ts.map +1 -1
- package/beta/realtime/internal-base.js +53 -10
- package/beta/realtime/internal-base.js.map +1 -1
- package/beta/realtime/internal-base.mjs +52 -10
- package/beta/realtime/internal-base.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts +63 -4
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts +63 -4
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +161 -26
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +162 -27
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts +51 -3
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts +51 -3
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +82 -9
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +83 -10
- package/beta/realtime/ws.mjs.map +1 -1
- package/client.d.mts +40 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +40 -2
- package/client.d.ts.map +1 -1
- package/client.js +597 -75
- package/client.js.map +1 -1
- package/client.mjs +598 -76
- package/client.mjs.map +1 -1
- package/core/EventEmitter.d.mts +10 -6
- package/core/EventEmitter.d.mts.map +1 -1
- package/core/EventEmitter.d.ts +10 -6
- package/core/EventEmitter.d.ts.map +1 -1
- package/core/EventEmitter.js +98 -16
- package/core/EventEmitter.js.map +1 -1
- package/core/EventEmitter.mjs +99 -17
- package/core/EventEmitter.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +0 -1
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +0 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js +5 -5
- package/core/error.js.map +1 -1
- package/core/error.mjs +5 -5
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +0 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +0 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/resource.js +0 -1
- package/core/resource.js.map +1 -1
- package/core/resource.mjs +0 -1
- package/core/resource.mjs.map +1 -1
- package/core/streaming.d.mts +29 -2
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts +29 -2
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +177 -75
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +177 -75
- package/core/streaming.mjs.map +1 -1
- package/helpers/audio.d.mts +29 -0
- package/helpers/audio.d.mts.map +1 -1
- package/helpers/audio.d.ts +29 -0
- package/helpers/audio.d.ts.map +1 -1
- package/helpers/audio.js +163 -28
- package/helpers/audio.js.map +1 -1
- package/helpers/audio.mjs +163 -28
- package/helpers/audio.mjs.map +1 -1
- package/helpers/standard-schema.d.mts +154 -18
- package/helpers/standard-schema.d.mts.map +1 -1
- package/helpers/standard-schema.d.ts +154 -18
- package/helpers/standard-schema.d.ts.map +1 -1
- package/helpers/standard-schema.js +92 -29
- package/helpers/standard-schema.js.map +1 -1
- package/helpers/standard-schema.mjs +93 -30
- package/helpers/standard-schema.mjs.map +1 -1
- package/helpers/zod-v3-strict-schema.d.mts +7 -0
- package/helpers/zod-v3-strict-schema.d.mts.map +1 -0
- package/helpers/zod-v3-strict-schema.d.ts +7 -0
- package/helpers/zod-v3-strict-schema.d.ts.map +1 -0
- package/helpers/zod-v3-strict-schema.js +403 -0
- package/helpers/zod-v3-strict-schema.js.map +1 -0
- package/helpers/zod-v3-strict-schema.mjs +399 -0
- package/helpers/zod-v3-strict-schema.mjs.map +1 -0
- package/helpers/zod.d.mts +79 -5
- package/helpers/zod.d.mts.map +1 -1
- package/helpers/zod.d.ts +79 -5
- package/helpers/zod.d.ts.map +1 -1
- package/helpers/zod.js +84 -23
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +86 -25
- package/helpers/zod.mjs.map +1 -1
- package/index.d.mts +2 -2
- package/index.d.mts.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/internal/assistant-stream-delta.d.mts +7 -0
- package/internal/assistant-stream-delta.d.mts.map +1 -0
- package/internal/assistant-stream-delta.d.ts +7 -0
- package/internal/assistant-stream-delta.d.ts.map +1 -0
- package/internal/assistant-stream-delta.js +309 -0
- package/internal/assistant-stream-delta.js.map +1 -0
- package/internal/assistant-stream-delta.mjs +301 -0
- package/internal/assistant-stream-delta.mjs.map +1 -0
- package/internal/auth/x509-token-exchange.d.mts +16 -0
- package/internal/auth/x509-token-exchange.d.mts.map +1 -0
- package/internal/auth/x509-token-exchange.d.ts +16 -0
- package/internal/auth/x509-token-exchange.d.ts.map +1 -0
- package/internal/auth/x509-token-exchange.js +246 -0
- package/internal/auth/x509-token-exchange.js.map +1 -0
- package/internal/auth/x509-token-exchange.mjs +243 -0
- package/internal/auth/x509-token-exchange.mjs.map +1 -0
- package/internal/auth/x509-transport-capability.d.mts +37 -0
- package/internal/auth/x509-transport-capability.d.mts.map +1 -0
- package/internal/auth/x509-transport-capability.d.ts +37 -0
- package/internal/auth/x509-transport-capability.d.ts.map +1 -0
- package/internal/auth/x509-transport-capability.js +169 -0
- package/internal/auth/x509-transport-capability.js.map +1 -0
- package/internal/auth/x509-transport-capability.mjs +164 -0
- package/internal/auth/x509-transport-capability.mjs.map +1 -0
- package/internal/auth/x509-transport-registry.d.mts +63 -0
- package/internal/auth/x509-transport-registry.d.mts.map +1 -0
- package/internal/auth/x509-transport-registry.d.ts +63 -0
- package/internal/auth/x509-transport-registry.d.ts.map +1 -0
- package/internal/auth/x509-transport-registry.js +53 -0
- package/internal/auth/x509-transport-registry.js.map +1 -0
- package/internal/auth/x509-transport-registry.mjs +48 -0
- package/internal/auth/x509-transport-registry.mjs.map +1 -0
- package/internal/auth/x509-transport-state-browser.d.mts +21 -0
- package/internal/auth/x509-transport-state-browser.d.mts.map +1 -0
- package/internal/auth/x509-transport-state-browser.d.ts +21 -0
- package/internal/auth/x509-transport-state-browser.d.ts.map +1 -0
- package/internal/auth/x509-transport-state-browser.js +30 -0
- package/internal/auth/x509-transport-state-browser.js.map +1 -0
- package/internal/auth/x509-transport-state-browser.mjs +27 -0
- package/internal/auth/x509-transport-state-browser.mjs.map +1 -0
- package/internal/auth/x509-transport-state.cjs +30 -0
- package/internal/auth/x509-transport-state.cjs.map +1 -0
- package/internal/auth/x509-transport-state.d.cts +21 -0
- package/internal/auth/x509-transport-state.d.cts.map +1 -0
- package/internal/auth/x509-workload-identity-auth.d.mts +128 -0
- package/internal/auth/x509-workload-identity-auth.d.mts.map +1 -0
- package/internal/auth/x509-workload-identity-auth.d.ts +128 -0
- package/internal/auth/x509-workload-identity-auth.d.ts.map +1 -0
- package/internal/auth/x509-workload-identity-auth.js +767 -0
- package/internal/auth/x509-workload-identity-auth.js.map +1 -0
- package/internal/auth/x509-workload-identity-auth.mjs +757 -0
- package/internal/auth/x509-workload-identity-auth.mjs.map +1 -0
- package/internal/bedrock.d.mts +82 -5
- package/internal/bedrock.d.mts.map +1 -1
- package/internal/bedrock.d.ts +82 -5
- package/internal/bedrock.d.ts.map +1 -1
- package/internal/bedrock.js +312 -13
- package/internal/bedrock.js.map +1 -1
- package/internal/bedrock.mjs +307 -13
- package/internal/bedrock.mjs.map +1 -1
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/builtin-types.js +0 -1
- package/internal/builtin-types.js.map +1 -1
- package/internal/builtin-types.mjs +0 -1
- package/internal/builtin-types.mjs.map +1 -1
- package/internal/data-residency.d.mts +12 -0
- package/internal/data-residency.d.mts.map +1 -0
- package/internal/data-residency.d.ts +12 -0
- package/internal/data-residency.d.ts.map +1 -0
- package/internal/data-residency.js +34 -0
- package/internal/data-residency.js.map +1 -0
- package/internal/data-residency.mjs +30 -0
- package/internal/data-residency.mjs.map +1 -0
- package/internal/decoders/line.d.mts +25 -2
- package/internal/decoders/line.d.mts.map +1 -1
- package/internal/decoders/line.d.ts +25 -2
- package/internal/decoders/line.d.ts.map +1 -1
- package/internal/decoders/line.js +139 -54
- package/internal/decoders/line.js.map +1 -1
- package/internal/decoders/line.mjs +140 -55
- package/internal/decoders/line.mjs.map +1 -1
- package/internal/detect-platform.d.mts.map +1 -1
- package/internal/detect-platform.d.ts.map +1 -1
- package/internal/detect-platform.js +1 -2
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs +1 -2
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +0 -1
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs +0 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +0 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +0 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/multipart-encoding.d.mts +8 -0
- package/internal/multipart-encoding.d.mts.map +1 -0
- package/internal/multipart-encoding.d.ts +8 -0
- package/internal/multipart-encoding.d.ts.map +1 -0
- package/internal/multipart-encoding.js +51 -0
- package/internal/multipart-encoding.js.map +1 -0
- package/internal/multipart-encoding.mjs +48 -0
- package/internal/multipart-encoding.mjs.map +1 -0
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +23 -3
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +23 -3
- package/internal/parse.mjs.map +1 -1
- package/internal/provider.d.mts +26 -0
- package/internal/provider.d.mts.map +1 -1
- package/internal/provider.d.ts +26 -0
- package/internal/provider.d.ts.map +1 -1
- package/internal/provider.js +11 -0
- package/internal/provider.js.map +1 -1
- package/internal/provider.mjs +11 -0
- package/internal/provider.mjs.map +1 -1
- package/internal/qs/formats.d.mts +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +1 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +1 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +57 -51
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +57 -51
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +1 -1
- package/internal/qs/types.d.mts.map +1 -1
- package/internal/qs/types.d.ts +1 -1
- package/internal/qs/types.d.ts.map +1 -1
- package/internal/qs/utils.d.mts +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +356 -50
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +356 -50
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +7 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +7 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js +43 -2
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs +42 -2
- package/internal/request-options.mjs.map +1 -1
- package/internal/responses/canonical-output-text.d.mts +16 -0
- package/internal/responses/canonical-output-text.d.mts.map +1 -0
- package/internal/responses/canonical-output-text.d.ts +16 -0
- package/internal/responses/canonical-output-text.d.ts.map +1 -0
- package/internal/responses/canonical-output-text.js +123 -0
- package/internal/responses/canonical-output-text.js.map +1 -0
- package/internal/responses/canonical-output-text.mjs +115 -0
- package/internal/responses/canonical-output-text.mjs.map +1 -0
- package/internal/responses/output-text-index.d.mts +18 -0
- package/internal/responses/output-text-index.d.mts.map +1 -0
- package/internal/responses/output-text-index.d.ts +18 -0
- package/internal/responses/output-text-index.d.ts.map +1 -0
- package/internal/responses/output-text-index.js +77 -0
- package/internal/responses/output-text-index.js.map +1 -0
- package/internal/responses/output-text-index.mjs +73 -0
- package/internal/responses/output-text-index.mjs.map +1 -0
- package/internal/responses/response-accumulator.d.mts +11 -0
- package/internal/responses/response-accumulator.d.mts.map +1 -0
- package/internal/responses/response-accumulator.d.ts +11 -0
- package/internal/responses/response-accumulator.d.ts.map +1 -0
- package/internal/responses/response-accumulator.js +925 -0
- package/internal/responses/response-accumulator.js.map +1 -0
- package/internal/responses/response-accumulator.mjs +921 -0
- package/internal/responses/response-accumulator.mjs.map +1 -0
- package/internal/shim-types.d.mts.map +1 -1
- package/internal/shim-types.d.ts.map +1 -1
- package/internal/shim-types.js +6 -1
- package/internal/shim-types.js.map +1 -1
- package/internal/shim-types.mjs +6 -1
- package/internal/shim-types.mjs.map +1 -1
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts.map +1 -1
- package/internal/shims.js +6 -1
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs +6 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/stream-utils.d.mts +10 -3
- package/internal/stream-utils.d.mts.map +1 -1
- package/internal/stream-utils.d.ts +10 -3
- package/internal/stream-utils.d.ts.map +1 -1
- package/internal/stream-utils.js +35 -7
- package/internal/stream-utils.js.map +1 -1
- package/internal/stream-utils.mjs +35 -7
- package/internal/stream-utils.mjs.map +1 -1
- package/internal/to-file.d.mts +39 -17
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +39 -17
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +44 -22
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +44 -22
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +6 -0
- package/internal/tslib.mjs +6 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/types.js +0 -1
- package/internal/types.js.map +1 -1
- package/internal/types.mjs +0 -1
- package/internal/types.mjs.map +1 -1
- package/internal/uploads.d.mts +84 -14
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +84 -14
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +212 -75
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +212 -75
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js +0 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs +0 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +3 -0
- package/internal/utils/bytes.d.mts.map +1 -1
- package/internal/utils/bytes.d.ts +3 -0
- package/internal/utils/bytes.d.ts.map +1 -1
- package/internal/utils/bytes.js +3 -0
- package/internal/utils/bytes.js.map +1 -1
- package/internal/utils/bytes.mjs +3 -0
- package/internal/utils/bytes.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js +9 -5
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +9 -5
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -4
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -4
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts +14 -2
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts +14 -2
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +48 -30
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +48 -30
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.d.mts.map +1 -1
- package/internal/utils/query.d.ts.map +1 -1
- package/internal/utils/query.js +0 -1
- package/internal/utils/query.js.map +1 -1
- package/internal/utils/query.mjs +0 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/sleep.js +0 -1
- package/internal/utils/sleep.js.map +1 -1
- package/internal/utils/sleep.mjs +0 -1
- package/internal/utils/sleep.mjs.map +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +0 -1
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +0 -1
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +0 -1
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +0 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.js +0 -1
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +0 -1
- package/internal/utils.mjs.map +1 -1
- package/internal/ws-adapter-browser.d.mts +26 -3
- package/internal/ws-adapter-browser.d.mts.map +1 -1
- package/internal/ws-adapter-browser.d.ts +26 -3
- package/internal/ws-adapter-browser.d.ts.map +1 -1
- package/internal/ws-adapter-browser.js +64 -21
- package/internal/ws-adapter-browser.js.map +1 -1
- package/internal/ws-adapter-browser.mjs +64 -21
- package/internal/ws-adapter-browser.mjs.map +1 -1
- package/internal/ws-adapter-node.d.mts +18 -3
- package/internal/ws-adapter-node.d.mts.map +1 -1
- package/internal/ws-adapter-node.d.ts +18 -3
- package/internal/ws-adapter-node.d.ts.map +1 -1
- package/internal/ws-adapter-node.js +90 -24
- package/internal/ws-adapter-node.js.map +1 -1
- package/internal/ws-adapter-node.mjs +90 -24
- package/internal/ws-adapter-node.mjs.map +1 -1
- package/internal/ws-adapter.d.mts +14 -0
- package/internal/ws-adapter.d.mts.map +1 -1
- package/internal/ws-adapter.d.ts +14 -0
- package/internal/ws-adapter.d.ts.map +1 -1
- package/internal/ws-adapter.js +4 -0
- package/internal/ws-adapter.js.map +1 -1
- package/internal/ws-adapter.mjs +4 -0
- package/internal/ws-adapter.mjs.map +1 -1
- package/internal/ws.d.mts +36 -8
- package/internal/ws.d.mts.map +1 -1
- package/internal/ws.d.ts +36 -8
- package/internal/ws.d.ts.map +1 -1
- package/internal/ws.js +116 -47
- package/internal/ws.js.map +1 -1
- package/internal/ws.mjs +115 -47
- package/internal/ws.mjs.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.mts +26 -5
- package/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
- package/lib/AbstractChatCompletionRunner.d.ts +26 -5
- package/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
- package/lib/AbstractChatCompletionRunner.js +89 -39
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +92 -42
- package/lib/AbstractChatCompletionRunner.mjs.map +1 -1
- package/lib/AssistantStream.d.mts +49 -8
- package/lib/AssistantStream.d.mts.map +1 -1
- package/lib/AssistantStream.d.ts +49 -8
- package/lib/AssistantStream.d.ts.map +1 -1
- package/lib/AssistantStream.js +388 -227
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +389 -228
- package/lib/AssistantStream.mjs.map +1 -1
- package/lib/ChatCompletionRunner.d.mts +16 -5
- package/lib/ChatCompletionRunner.d.mts.map +1 -1
- package/lib/ChatCompletionRunner.d.ts +16 -5
- package/lib/ChatCompletionRunner.d.ts.map +1 -1
- package/lib/ChatCompletionRunner.js +4 -1
- package/lib/ChatCompletionRunner.js.map +1 -1
- package/lib/ChatCompletionRunner.mjs +5 -2
- package/lib/ChatCompletionRunner.mjs.map +1 -1
- package/lib/ChatCompletionStream.d.mts +137 -35
- package/lib/ChatCompletionStream.d.mts.map +1 -1
- package/lib/ChatCompletionStream.d.ts +137 -35
- package/lib/ChatCompletionStream.d.ts.map +1 -1
- package/lib/ChatCompletionStream.js +1252 -162
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +1255 -165
- package/lib/ChatCompletionStream.mjs.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.mts +20 -7
- package/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.d.ts +20 -7
- package/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
- package/lib/ChatCompletionStreamingRunner.js +27 -67
- package/lib/ChatCompletionStreamingRunner.js.map +1 -1
- package/lib/ChatCompletionStreamingRunner.mjs +28 -68
- package/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
- package/lib/EventEmitter.d.mts +9 -6
- package/lib/EventEmitter.d.mts.map +1 -1
- package/lib/EventEmitter.d.ts +9 -6
- package/lib/EventEmitter.d.ts.map +1 -1
- package/lib/EventEmitter.js +89 -20
- package/lib/EventEmitter.js.map +1 -1
- package/lib/EventEmitter.mjs +90 -21
- package/lib/EventEmitter.mjs.map +1 -1
- package/lib/EventStream.d.mts +49 -9
- package/lib/EventStream.d.mts.map +1 -1
- package/lib/EventStream.d.ts +49 -9
- package/lib/EventStream.d.ts.map +1 -1
- package/lib/EventStream.js +1257 -51
- package/lib/EventStream.js.map +1 -1
- package/lib/EventStream.mjs +1258 -52
- package/lib/EventStream.mjs.map +1 -1
- package/lib/ResponsesParser.d.mts +52 -5
- package/lib/ResponsesParser.d.mts.map +1 -1
- package/lib/ResponsesParser.d.ts +52 -5
- package/lib/ResponsesParser.d.ts.map +1 -1
- package/lib/ResponsesParser.js +32 -17
- package/lib/ResponsesParser.js.map +1 -1
- package/lib/ResponsesParser.mjs +33 -18
- package/lib/ResponsesParser.mjs.map +1 -1
- package/lib/RunnableFunction.d.mts +38 -10
- package/lib/RunnableFunction.d.mts.map +1 -1
- package/lib/RunnableFunction.d.ts +38 -10
- package/lib/RunnableFunction.d.ts.map +1 -1
- package/lib/RunnableFunction.js +3 -0
- package/lib/RunnableFunction.js.map +1 -1
- package/lib/RunnableFunction.mjs +3 -0
- package/lib/RunnableFunction.mjs.map +1 -1
- package/lib/Util.d.mts +2 -0
- package/lib/Util.d.mts.map +1 -1
- package/lib/Util.d.ts +2 -0
- package/lib/Util.d.ts.map +1 -1
- package/lib/Util.js +7 -4
- package/lib/Util.js.map +1 -1
- package/lib/Util.mjs +7 -4
- package/lib/Util.mjs.map +1 -1
- package/lib/assistant-run-polling.d.mts +12 -0
- package/lib/assistant-run-polling.d.mts.map +1 -0
- package/lib/assistant-run-polling.d.ts +12 -0
- package/lib/assistant-run-polling.d.ts.map +1 -0
- package/lib/assistant-run-polling.js +17 -0
- package/lib/assistant-run-polling.js.map +1 -0
- package/lib/assistant-run-polling.mjs +14 -0
- package/lib/assistant-run-polling.mjs.map +1 -0
- package/lib/chatCompletionUtils.d.mts +4 -1
- package/lib/chatCompletionUtils.d.mts.map +1 -1
- package/lib/chatCompletionUtils.d.ts +4 -1
- package/lib/chatCompletionUtils.d.ts.map +1 -1
- package/lib/chatCompletionUtils.js +5 -6
- package/lib/chatCompletionUtils.js.map +1 -1
- package/lib/chatCompletionUtils.mjs +5 -6
- package/lib/chatCompletionUtils.mjs.map +1 -1
- package/lib/embeddings.d.mts +18 -0
- package/lib/embeddings.d.mts.map +1 -0
- package/lib/embeddings.d.ts +18 -0
- package/lib/embeddings.d.ts.map +1 -0
- package/lib/embeddings.js +50 -0
- package/lib/embeddings.js.map +1 -0
- package/lib/embeddings.mjs +47 -0
- package/lib/embeddings.mjs.map +1 -0
- package/lib/file-processing.d.mts +10 -0
- package/lib/file-processing.d.mts.map +1 -0
- package/lib/file-processing.d.ts +10 -0
- package/lib/file-processing.d.ts.map +1 -0
- package/lib/file-processing.js +30 -0
- package/lib/file-processing.js.map +1 -0
- package/lib/file-processing.mjs +27 -0
- package/lib/file-processing.mjs.map +1 -0
- package/lib/jsonschema.d.mts +70 -14
- package/lib/jsonschema.d.mts.map +1 -1
- package/lib/jsonschema.d.ts +70 -14
- package/lib/jsonschema.d.ts.map +1 -1
- package/lib/parser.d.mts +97 -6
- package/lib/parser.d.mts.map +1 -1
- package/lib/parser.d.ts +97 -6
- package/lib/parser.d.ts.map +1 -1
- package/lib/parser.js +128 -41
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs +126 -41
- package/lib/parser.mjs.map +1 -1
- package/lib/polling.d.mts +20 -0
- package/lib/polling.d.mts.map +1 -0
- package/lib/polling.d.ts +20 -0
- package/lib/polling.d.ts.map +1 -0
- package/lib/polling.js +130 -0
- package/lib/polling.js.map +1 -0
- package/lib/polling.mjs +127 -0
- package/lib/polling.mjs.map +1 -0
- package/lib/responses/EventTypes.d.mts +7 -2
- package/lib/responses/EventTypes.d.mts.map +1 -1
- package/lib/responses/EventTypes.d.ts +7 -2
- package/lib/responses/EventTypes.d.ts.map +1 -1
- package/lib/responses/ResponseAccumulator.d.mts +4 -1
- package/lib/responses/ResponseAccumulator.d.mts.map +1 -1
- package/lib/responses/ResponseAccumulator.d.ts +4 -1
- package/lib/responses/ResponseAccumulator.d.ts.map +1 -1
- package/lib/responses/ResponseAccumulator.js +2 -390
- package/lib/responses/ResponseAccumulator.js.map +1 -1
- package/lib/responses/ResponseAccumulator.mjs +2 -390
- package/lib/responses/ResponseAccumulator.mjs.map +1 -1
- package/lib/responses/ResponseInputItems.d.mts +1 -0
- package/lib/responses/ResponseInputItems.d.mts.map +1 -1
- package/lib/responses/ResponseInputItems.d.ts +1 -0
- package/lib/responses/ResponseInputItems.d.ts.map +1 -1
- package/lib/responses/ResponseInputItems.js.map +1 -1
- package/lib/responses/ResponseInputItems.mjs.map +1 -1
- package/lib/responses/ResponseStream.d.mts +29 -10
- package/lib/responses/ResponseStream.d.mts.map +1 -1
- package/lib/responses/ResponseStream.d.ts +29 -10
- package/lib/responses/ResponseStream.d.ts.map +1 -1
- package/lib/responses/ResponseStream.js +57 -71
- package/lib/responses/ResponseStream.js.map +1 -1
- package/lib/responses/ResponseStream.mjs +58 -72
- package/lib/responses/ResponseStream.mjs.map +1 -1
- package/lib/transform.d.mts +21 -0
- package/lib/transform.d.mts.map +1 -1
- package/lib/transform.d.ts +21 -0
- package/lib/transform.d.ts.map +1 -1
- package/lib/transform.js +126 -76
- package/lib/transform.js.map +1 -1
- package/lib/transform.mjs +126 -76
- package/lib/transform.mjs.map +1 -1
- package/lib/vector-store-polling.d.mts +22 -0
- package/lib/vector-store-polling.d.mts.map +1 -0
- package/lib/vector-store-polling.d.ts +22 -0
- package/lib/vector-store-polling.d.ts.map +1 -0
- package/lib/vector-store-polling.js +24 -0
- package/lib/vector-store-polling.js.map +1 -0
- package/lib/vector-store-polling.mjs +20 -0
- package/lib/vector-store-polling.mjs.map +1 -0
- package/lib/vector-store-upload.d.mts +17 -0
- package/lib/vector-store-upload.d.mts.map +1 -0
- package/lib/vector-store-upload.d.ts +17 -0
- package/lib/vector-store-upload.d.ts.map +1 -0
- package/lib/vector-store-upload.js +37 -0
- package/lib/vector-store-upload.js.map +1 -0
- package/lib/vector-store-upload.mjs +34 -0
- package/lib/vector-store-upload.mjs.map +1 -0
- package/lib/webhook-signature.d.mts +15 -0
- package/lib/webhook-signature.d.mts.map +1 -0
- package/lib/webhook-signature.d.ts +15 -0
- package/lib/webhook-signature.d.ts.map +1 -0
- package/lib/webhook-signature.js +125 -0
- package/lib/webhook-signature.js.map +1 -0
- package/lib/webhook-signature.mjs +121 -0
- package/lib/webhook-signature.mjs.map +1 -0
- package/package.json +23 -3
- package/providers/bedrock/aws.d.mts +35 -8
- package/providers/bedrock/aws.d.mts.map +1 -1
- package/providers/bedrock/aws.d.ts +35 -8
- package/providers/bedrock/aws.d.ts.map +1 -1
- package/providers/bedrock/aws.js +60 -21
- package/providers/bedrock/aws.js.map +1 -1
- package/providers/bedrock/aws.mjs +61 -22
- package/providers/bedrock/aws.mjs.map +1 -1
- package/providers/bedrock.d.mts +17 -2
- package/providers/bedrock.d.mts.map +1 -1
- package/providers/bedrock.d.ts +17 -2
- package/providers/bedrock.d.ts.map +1 -1
- package/providers/bedrock.js +19 -2
- package/providers/bedrock.js.map +1 -1
- package/providers/bedrock.mjs +20 -3
- package/providers/bedrock.mjs.map +1 -1
- package/realtime/internal-base.d.mts +99 -10
- package/realtime/internal-base.d.mts.map +1 -1
- package/realtime/internal-base.d.ts +99 -10
- package/realtime/internal-base.d.ts.map +1 -1
- package/realtime/internal-base.js +94 -29
- package/realtime/internal-base.js.map +1 -1
- package/realtime/internal-base.mjs +93 -29
- package/realtime/internal-base.mjs.map +1 -1
- package/realtime/websocket.d.mts +63 -4
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts +63 -4
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +152 -27
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +153 -28
- package/realtime/websocket.mjs.map +1 -1
- package/realtime/ws.d.mts +58 -3
- package/realtime/ws.d.mts.map +1 -1
- package/realtime/ws.d.ts +58 -3
- package/realtime/ws.d.ts.map +1 -1
- package/realtime/ws.js +72 -8
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +73 -9
- package/realtime/ws.mjs.map +1 -1
- package/resources/admin/admin.js +1 -1
- package/resources/admin/admin.js.map +1 -1
- package/resources/admin/admin.mjs +1 -1
- package/resources/admin/admin.mjs.map +1 -1
- package/resources/admin/index.js +1 -1
- package/resources/admin/index.js.map +1 -1
- package/resources/admin/index.mjs +1 -1
- package/resources/admin/index.mjs.map +1 -1
- package/resources/admin/organization/admin-api-keys.js +1 -1
- package/resources/admin/organization/admin-api-keys.js.map +1 -1
- package/resources/admin/organization/admin-api-keys.mjs +1 -1
- package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
- package/resources/admin/organization/audit-logs.d.mts +2 -2
- package/resources/admin/organization/audit-logs.d.mts.map +1 -1
- package/resources/admin/organization/audit-logs.d.ts +2 -2
- package/resources/admin/organization/audit-logs.d.ts.map +1 -1
- package/resources/admin/organization/audit-logs.js +1 -1
- package/resources/admin/organization/audit-logs.js.map +1 -1
- package/resources/admin/organization/audit-logs.mjs +1 -1
- package/resources/admin/organization/audit-logs.mjs.map +1 -1
- package/resources/admin/organization/certificates.js +1 -1
- package/resources/admin/organization/certificates.js.map +1 -1
- package/resources/admin/organization/certificates.mjs +1 -1
- package/resources/admin/organization/certificates.mjs.map +1 -1
- package/resources/admin/organization/data-retention.js +1 -1
- package/resources/admin/organization/data-retention.js.map +1 -1
- package/resources/admin/organization/data-retention.mjs +1 -1
- package/resources/admin/organization/data-retention.mjs.map +1 -1
- package/resources/admin/organization/groups/groups.js +1 -1
- package/resources/admin/organization/groups/groups.js.map +1 -1
- package/resources/admin/organization/groups/groups.mjs +1 -1
- package/resources/admin/organization/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/groups/index.js +1 -1
- package/resources/admin/organization/groups/index.js.map +1 -1
- package/resources/admin/organization/groups/index.mjs +1 -1
- package/resources/admin/organization/groups/index.mjs.map +1 -1
- package/resources/admin/organization/groups/roles.js +1 -1
- package/resources/admin/organization/groups/roles.js.map +1 -1
- package/resources/admin/organization/groups/roles.mjs +1 -1
- package/resources/admin/organization/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/groups/users.js +1 -1
- package/resources/admin/organization/groups/users.js.map +1 -1
- package/resources/admin/organization/groups/users.mjs +1 -1
- package/resources/admin/organization/groups/users.mjs.map +1 -1
- package/resources/admin/organization/groups.js +1 -1
- package/resources/admin/organization/groups.js.map +1 -1
- package/resources/admin/organization/groups.mjs +1 -1
- package/resources/admin/organization/groups.mjs.map +1 -1
- package/resources/admin/organization/index.d.mts +2 -2
- package/resources/admin/organization/index.d.mts.map +1 -1
- package/resources/admin/organization/index.d.ts +2 -2
- package/resources/admin/organization/index.d.ts.map +1 -1
- package/resources/admin/organization/index.js +1 -1
- package/resources/admin/organization/index.js.map +1 -1
- package/resources/admin/organization/index.mjs +1 -1
- package/resources/admin/organization/index.mjs.map +1 -1
- package/resources/admin/organization/invites.js +1 -1
- package/resources/admin/organization/invites.js.map +1 -1
- package/resources/admin/organization/invites.mjs +1 -1
- package/resources/admin/organization/invites.mjs.map +1 -1
- package/resources/admin/organization/organization.d.mts +4 -4
- package/resources/admin/organization/organization.d.mts.map +1 -1
- package/resources/admin/organization/organization.d.ts +4 -4
- package/resources/admin/organization/organization.d.ts.map +1 -1
- package/resources/admin/organization/organization.js +1 -1
- package/resources/admin/organization/organization.js.map +1 -1
- package/resources/admin/organization/organization.mjs +1 -1
- package/resources/admin/organization/organization.mjs.map +1 -1
- package/resources/admin/organization/projects/api-keys.js +1 -1
- package/resources/admin/organization/projects/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/api-keys.mjs +1 -1
- package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/certificates.js +1 -1
- package/resources/admin/organization/projects/certificates.js.map +1 -1
- package/resources/admin/organization/projects/certificates.mjs +1 -1
- package/resources/admin/organization/projects/certificates.mjs.map +1 -1
- package/resources/admin/organization/projects/data-retention.js +1 -1
- package/resources/admin/organization/projects/data-retention.js.map +1 -1
- package/resources/admin/organization/projects/data-retention.mjs +1 -1
- package/resources/admin/organization/projects/data-retention.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/groups.js +1 -1
- package/resources/admin/organization/projects/groups/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs +1 -1
- package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/index.js +1 -1
- package/resources/admin/organization/projects/groups/index.js.map +1 -1
- package/resources/admin/organization/projects/groups/index.mjs +1 -1
- package/resources/admin/organization/projects/groups/index.mjs.map +1 -1
- package/resources/admin/organization/projects/groups/roles.js +1 -1
- package/resources/admin/organization/projects/groups/roles.js.map +1 -1
- package/resources/admin/organization/projects/groups/roles.mjs +1 -1
- package/resources/admin/organization/projects/groups/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/groups.js +1 -1
- package/resources/admin/organization/projects/groups.js.map +1 -1
- package/resources/admin/organization/projects/groups.mjs +1 -1
- package/resources/admin/organization/projects/groups.mjs.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.js +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.js.map +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs +1 -1
- package/resources/admin/organization/projects/hosted-tool-permissions.mjs.map +1 -1
- package/resources/admin/organization/projects/index.d.mts +1 -1
- package/resources/admin/organization/projects/index.d.mts.map +1 -1
- package/resources/admin/organization/projects/index.d.ts +1 -1
- package/resources/admin/organization/projects/index.d.ts.map +1 -1
- package/resources/admin/organization/projects/index.js +1 -1
- package/resources/admin/organization/projects/index.js.map +1 -1
- package/resources/admin/organization/projects/index.mjs +1 -1
- package/resources/admin/organization/projects/index.mjs.map +1 -1
- package/resources/admin/organization/projects/model-permissions.js +1 -1
- package/resources/admin/organization/projects/model-permissions.js.map +1 -1
- package/resources/admin/organization/projects/model-permissions.mjs +1 -1
- package/resources/admin/organization/projects/model-permissions.mjs.map +1 -1
- package/resources/admin/organization/projects/projects.d.mts +22 -5
- package/resources/admin/organization/projects/projects.d.mts.map +1 -1
- package/resources/admin/organization/projects/projects.d.ts +22 -5
- package/resources/admin/organization/projects/projects.d.ts.map +1 -1
- package/resources/admin/organization/projects/projects.js +1 -1
- package/resources/admin/organization/projects/projects.js.map +1 -1
- package/resources/admin/organization/projects/projects.mjs +1 -1
- package/resources/admin/organization/projects/projects.mjs.map +1 -1
- package/resources/admin/organization/projects/rate-limits.js +1 -1
- package/resources/admin/organization/projects/rate-limits.js.map +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs +1 -1
- package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
- package/resources/admin/organization/projects/roles.js +1 -1
- package/resources/admin/organization/projects/roles.js.map +1 -1
- package/resources/admin/organization/projects/roles.mjs +1 -1
- package/resources/admin/organization/projects/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/index.js +1 -1
- package/resources/admin/organization/projects/service-accounts/index.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/index.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/service-accounts.js +1 -1
- package/resources/admin/organization/projects/service-accounts.js.map +1 -1
- package/resources/admin/organization/projects/service-accounts.mjs +1 -1
- package/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.js +1 -1
- package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs +1 -1
- package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/projects/spend-limit.js +1 -1
- package/resources/admin/organization/projects/spend-limit.js.map +1 -1
- package/resources/admin/organization/projects/spend-limit.mjs +1 -1
- package/resources/admin/organization/projects/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/projects/users/index.js +1 -1
- package/resources/admin/organization/projects/users/index.js.map +1 -1
- package/resources/admin/organization/projects/users/index.mjs +1 -1
- package/resources/admin/organization/projects/users/index.mjs.map +1 -1
- package/resources/admin/organization/projects/users/roles.js +1 -1
- package/resources/admin/organization/projects/users/roles.js.map +1 -1
- package/resources/admin/organization/projects/users/roles.mjs +1 -1
- package/resources/admin/organization/projects/users/roles.mjs.map +1 -1
- package/resources/admin/organization/projects/users/users.js +1 -1
- package/resources/admin/organization/projects/users/users.js.map +1 -1
- package/resources/admin/organization/projects/users/users.mjs +1 -1
- package/resources/admin/organization/projects/users/users.mjs.map +1 -1
- package/resources/admin/organization/projects/users.js +1 -1
- package/resources/admin/organization/projects/users.js.map +1 -1
- package/resources/admin/organization/projects/users.mjs +1 -1
- package/resources/admin/organization/projects/users.mjs.map +1 -1
- package/resources/admin/organization/projects.js +1 -1
- package/resources/admin/organization/projects.js.map +1 -1
- package/resources/admin/organization/projects.mjs +1 -1
- package/resources/admin/organization/projects.mjs.map +1 -1
- package/resources/admin/organization/roles.js +1 -1
- package/resources/admin/organization/roles.js.map +1 -1
- package/resources/admin/organization/roles.mjs +1 -1
- package/resources/admin/organization/roles.mjs.map +1 -1
- package/resources/admin/organization/spend-alerts.js +1 -1
- package/resources/admin/organization/spend-alerts.js.map +1 -1
- package/resources/admin/organization/spend-alerts.mjs +1 -1
- package/resources/admin/organization/spend-alerts.mjs.map +1 -1
- package/resources/admin/organization/spend-limit.js +1 -1
- package/resources/admin/organization/spend-limit.js.map +1 -1
- package/resources/admin/organization/spend-limit.mjs +1 -1
- package/resources/admin/organization/spend-limit.mjs.map +1 -1
- package/resources/admin/organization/usage.d.mts +62 -1
- package/resources/admin/organization/usage.d.mts.map +1 -1
- package/resources/admin/organization/usage.d.ts +62 -1
- package/resources/admin/organization/usage.d.ts.map +1 -1
- package/resources/admin/organization/usage.js +1 -1
- package/resources/admin/organization/usage.js.map +1 -1
- package/resources/admin/organization/usage.mjs +1 -1
- package/resources/admin/organization/usage.mjs.map +1 -1
- package/resources/admin/organization/users/index.js +1 -1
- package/resources/admin/organization/users/index.js.map +1 -1
- package/resources/admin/organization/users/index.mjs +1 -1
- package/resources/admin/organization/users/index.mjs.map +1 -1
- package/resources/admin/organization/users/roles.js +1 -1
- package/resources/admin/organization/users/roles.js.map +1 -1
- package/resources/admin/organization/users/roles.mjs +1 -1
- package/resources/admin/organization/users/roles.mjs.map +1 -1
- package/resources/admin/organization/users/users.js +1 -1
- package/resources/admin/organization/users/users.js.map +1 -1
- package/resources/admin/organization/users/users.mjs +1 -1
- package/resources/admin/organization/users/users.mjs.map +1 -1
- package/resources/admin/organization/users.js +1 -1
- package/resources/admin/organization/users.js.map +1 -1
- package/resources/admin/organization/users.mjs +1 -1
- package/resources/admin/organization/users.mjs.map +1 -1
- package/resources/admin/organization.js +1 -1
- package/resources/admin/organization.js.map +1 -1
- package/resources/admin/organization.mjs +1 -1
- package/resources/admin/organization.mjs.map +1 -1
- package/resources/admin.js +1 -1
- package/resources/admin.js.map +1 -1
- package/resources/admin.mjs +1 -1
- package/resources/admin.mjs.map +1 -1
- package/resources/audio/audio.js +1 -1
- package/resources/audio/audio.js.map +1 -1
- package/resources/audio/audio.mjs +1 -1
- package/resources/audio/audio.mjs.map +1 -1
- package/resources/audio/index.js +1 -1
- package/resources/audio/index.js.map +1 -1
- package/resources/audio/index.mjs +1 -1
- package/resources/audio/index.mjs.map +1 -1
- package/resources/audio/speech.js +1 -1
- package/resources/audio/speech.js.map +1 -1
- package/resources/audio/speech.mjs +1 -1
- package/resources/audio/speech.mjs.map +1 -1
- package/resources/audio/transcriptions.d.mts +3 -1
- package/resources/audio/transcriptions.d.mts.map +1 -1
- package/resources/audio/transcriptions.d.ts +3 -1
- package/resources/audio/transcriptions.d.ts.map +1 -1
- package/resources/audio/transcriptions.js +1 -1
- package/resources/audio/transcriptions.js.map +1 -1
- package/resources/audio/transcriptions.mjs +1 -1
- package/resources/audio/transcriptions.mjs.map +1 -1
- package/resources/audio/translations.d.mts +3 -1
- package/resources/audio/translations.d.mts.map +1 -1
- package/resources/audio/translations.d.ts +3 -1
- package/resources/audio/translations.d.ts.map +1 -1
- package/resources/audio/translations.js +1 -1
- package/resources/audio/translations.js.map +1 -1
- package/resources/audio/translations.mjs +1 -1
- package/resources/audio/translations.mjs.map +1 -1
- package/resources/audio.js +1 -1
- package/resources/audio.js.map +1 -1
- package/resources/audio.mjs +1 -1
- package/resources/audio.mjs.map +1 -1
- package/resources/batches.js +1 -1
- package/resources/batches.js.map +1 -1
- package/resources/batches.mjs +1 -1
- package/resources/batches.mjs.map +1 -1
- package/resources/beta/assistants.js +1 -1
- package/resources/beta/assistants.js.map +1 -1
- package/resources/beta/assistants.mjs +1 -1
- package/resources/beta/assistants.mjs.map +1 -1
- package/resources/beta/beta.d.mts +2 -2
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +2 -2
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/chatkit/chatkit.js +1 -1
- package/resources/beta/chatkit/chatkit.js.map +1 -1
- package/resources/beta/chatkit/chatkit.mjs +1 -1
- package/resources/beta/chatkit/chatkit.mjs.map +1 -1
- package/resources/beta/chatkit/index.js +1 -1
- package/resources/beta/chatkit/index.js.map +1 -1
- package/resources/beta/chatkit/index.mjs +1 -1
- package/resources/beta/chatkit/index.mjs.map +1 -1
- package/resources/beta/chatkit/sessions.js +1 -1
- package/resources/beta/chatkit/sessions.js.map +1 -1
- package/resources/beta/chatkit/sessions.mjs +1 -1
- package/resources/beta/chatkit/sessions.mjs.map +1 -1
- package/resources/beta/chatkit/threads.js +1 -1
- package/resources/beta/chatkit/threads.js.map +1 -1
- package/resources/beta/chatkit/threads.mjs +1 -1
- package/resources/beta/chatkit/threads.mjs.map +1 -1
- package/resources/beta/chatkit.js +1 -1
- package/resources/beta/chatkit.js.map +1 -1
- package/resources/beta/chatkit.mjs +1 -1
- package/resources/beta/chatkit.mjs.map +1 -1
- package/resources/beta/index.d.mts +1 -1
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +1 -1
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/realtime/index.d.mts.map +1 -1
- package/resources/beta/realtime/index.d.ts.map +1 -1
- package/resources/beta/realtime/index.js +0 -1
- package/resources/beta/realtime/index.js.map +1 -1
- package/resources/beta/realtime/index.mjs +0 -1
- package/resources/beta/realtime/index.mjs.map +1 -1
- package/resources/beta/realtime/realtime.d.mts.map +1 -1
- package/resources/beta/realtime/realtime.d.ts.map +1 -1
- package/resources/beta/realtime/realtime.js +0 -1
- package/resources/beta/realtime/realtime.js.map +1 -1
- package/resources/beta/realtime/realtime.mjs +0 -1
- package/resources/beta/realtime/realtime.mjs.map +1 -1
- package/resources/beta/realtime/sessions.d.mts.map +1 -1
- package/resources/beta/realtime/sessions.d.ts.map +1 -1
- package/resources/beta/realtime/sessions.js +0 -1
- package/resources/beta/realtime/sessions.js.map +1 -1
- package/resources/beta/realtime/sessions.mjs +0 -1
- package/resources/beta/realtime/sessions.mjs.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
- package/resources/beta/realtime/transcription-sessions.js +0 -1
- package/resources/beta/realtime/transcription-sessions.js.map +1 -1
- package/resources/beta/realtime/transcription-sessions.mjs +0 -1
- package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
- package/resources/beta/realtime.d.mts.map +1 -1
- package/resources/beta/realtime.d.ts.map +1 -1
- package/resources/beta/realtime.js +0 -1
- package/resources/beta/realtime.js.map +1 -1
- package/resources/beta/realtime.mjs +0 -1
- package/resources/beta/realtime.mjs.map +1 -1
- package/resources/beta/responses/index.d.mts +1 -1
- package/resources/beta/responses/index.d.mts.map +1 -1
- package/resources/beta/responses/index.d.ts +1 -1
- package/resources/beta/responses/index.d.ts.map +1 -1
- package/resources/beta/responses/index.js +1 -1
- package/resources/beta/responses/index.js.map +1 -1
- package/resources/beta/responses/index.mjs +1 -1
- package/resources/beta/responses/index.mjs.map +1 -1
- package/resources/beta/responses/input-items.js +1 -1
- package/resources/beta/responses/input-items.js.map +1 -1
- package/resources/beta/responses/input-items.mjs +1 -1
- package/resources/beta/responses/input-items.mjs.map +1 -1
- package/resources/beta/responses/input-tokens.js +1 -1
- package/resources/beta/responses/input-tokens.js.map +1 -1
- package/resources/beta/responses/input-tokens.mjs +1 -1
- package/resources/beta/responses/input-tokens.mjs.map +1 -1
- package/resources/beta/responses/internal-base.d.mts +6 -3
- package/resources/beta/responses/internal-base.d.mts.map +1 -1
- package/resources/beta/responses/internal-base.d.ts +6 -3
- package/resources/beta/responses/internal-base.d.ts.map +1 -1
- package/resources/beta/responses/internal-base.js +5 -2
- package/resources/beta/responses/internal-base.js.map +1 -1
- package/resources/beta/responses/internal-base.mjs +5 -2
- package/resources/beta/responses/internal-base.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +1243 -132
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +1243 -132
- package/resources/beta/responses/responses.d.ts.map +1 -1
- package/resources/beta/responses/responses.js +1 -1
- package/resources/beta/responses/responses.js.map +1 -1
- package/resources/beta/responses/responses.mjs +1 -1
- package/resources/beta/responses/responses.mjs.map +1 -1
- package/resources/beta/responses/ws-base.js +1 -1
- package/resources/beta/responses/ws-base.js.map +1 -1
- package/resources/beta/responses/ws-base.mjs +1 -1
- package/resources/beta/responses/ws-base.mjs.map +1 -1
- package/resources/beta/responses/ws.js +1 -1
- package/resources/beta/responses/ws.js.map +1 -1
- package/resources/beta/responses/ws.mjs +1 -1
- package/resources/beta/responses/ws.mjs.map +1 -1
- package/resources/beta/responses.js +1 -1
- package/resources/beta/responses.js.map +1 -1
- package/resources/beta/responses.mjs +1 -1
- package/resources/beta/responses.mjs.map +1 -1
- package/resources/beta/threads/index.js +1 -1
- package/resources/beta/threads/index.js.map +1 -1
- package/resources/beta/threads/index.mjs +1 -1
- package/resources/beta/threads/index.mjs.map +1 -1
- package/resources/beta/threads/messages.js +1 -1
- package/resources/beta/threads/messages.js.map +1 -1
- package/resources/beta/threads/messages.mjs +1 -1
- package/resources/beta/threads/messages.mjs.map +1 -1
- package/resources/beta/threads/runs/index.d.mts +1 -1
- package/resources/beta/threads/runs/index.d.mts.map +1 -1
- package/resources/beta/threads/runs/index.d.ts +1 -1
- package/resources/beta/threads/runs/index.d.ts.map +1 -1
- package/resources/beta/threads/runs/index.js +1 -1
- package/resources/beta/threads/runs/index.js.map +1 -1
- package/resources/beta/threads/runs/index.mjs +1 -1
- package/resources/beta/threads/runs/index.mjs.map +1 -1
- package/resources/beta/threads/runs/runs.d.mts.map +1 -1
- package/resources/beta/threads/runs/runs.d.ts.map +1 -1
- package/resources/beta/threads/runs/runs.js +3 -44
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +3 -44
- package/resources/beta/threads/runs/runs.mjs.map +1 -1
- package/resources/beta/threads/runs/steps.js +1 -1
- package/resources/beta/threads/runs/steps.js.map +1 -1
- package/resources/beta/threads/runs/steps.mjs +1 -1
- package/resources/beta/threads/runs/steps.mjs.map +1 -1
- package/resources/beta/threads/runs.js +1 -1
- package/resources/beta/threads/runs.js.map +1 -1
- package/resources/beta/threads/runs.mjs +1 -1
- package/resources/beta/threads/runs.mjs.map +1 -1
- package/resources/beta/threads/threads.js +1 -1
- package/resources/beta/threads/threads.js.map +1 -1
- package/resources/beta/threads/threads.mjs +1 -1
- package/resources/beta/threads/threads.mjs.map +1 -1
- package/resources/beta/threads.js +1 -1
- package/resources/beta/threads.js.map +1 -1
- package/resources/beta/threads.mjs +1 -1
- package/resources/beta/threads.mjs.map +1 -1
- package/resources/beta.js +1 -1
- package/resources/beta.js.map +1 -1
- package/resources/beta.mjs +1 -1
- package/resources/beta.mjs.map +1 -1
- package/resources/chat/chat.js +1 -1
- package/resources/chat/chat.js.map +1 -1
- package/resources/chat/chat.mjs +1 -1
- package/resources/chat/chat.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +36 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +36 -3
- package/resources/chat/completions/completions.d.ts.map +1 -1
- package/resources/chat/completions/completions.js +2 -5
- package/resources/chat/completions/completions.js.map +1 -1
- package/resources/chat/completions/completions.mjs +2 -5
- package/resources/chat/completions/completions.mjs.map +1 -1
- package/resources/chat/completions/index.js +1 -1
- package/resources/chat/completions/index.js.map +1 -1
- package/resources/chat/completions/index.mjs +1 -1
- package/resources/chat/completions/index.mjs.map +1 -1
- package/resources/chat/completions/messages.js +1 -1
- package/resources/chat/completions/messages.js.map +1 -1
- package/resources/chat/completions/messages.mjs +1 -1
- package/resources/chat/completions/messages.mjs.map +1 -1
- package/resources/chat/completions.js +1 -1
- package/resources/chat/completions.js.map +1 -1
- package/resources/chat/completions.mjs +1 -1
- package/resources/chat/completions.mjs.map +1 -1
- package/resources/chat/index.js +1 -1
- package/resources/chat/index.js.map +1 -1
- package/resources/chat/index.mjs +1 -1
- package/resources/chat/index.mjs.map +1 -1
- package/resources/chat.js +1 -1
- package/resources/chat.js.map +1 -1
- package/resources/chat.mjs +1 -1
- package/resources/chat.mjs.map +1 -1
- package/resources/completions.d.mts +12 -0
- package/resources/completions.d.mts.map +1 -1
- package/resources/completions.d.ts +12 -0
- package/resources/completions.d.ts.map +1 -1
- package/resources/completions.js +1 -1
- package/resources/completions.js.map +1 -1
- package/resources/completions.mjs +1 -1
- package/resources/completions.mjs.map +1 -1
- package/resources/containers/containers.js +1 -1
- package/resources/containers/containers.js.map +1 -1
- package/resources/containers/containers.mjs +1 -1
- package/resources/containers/containers.mjs.map +1 -1
- package/resources/containers/files/content.js +1 -1
- package/resources/containers/files/content.js.map +1 -1
- package/resources/containers/files/content.mjs +1 -1
- package/resources/containers/files/content.mjs.map +1 -1
- package/resources/containers/files/files.js +1 -1
- package/resources/containers/files/files.js.map +1 -1
- package/resources/containers/files/files.mjs +1 -1
- package/resources/containers/files/files.mjs.map +1 -1
- package/resources/containers/files/index.js +1 -1
- package/resources/containers/files/index.js.map +1 -1
- package/resources/containers/files/index.mjs +1 -1
- package/resources/containers/files/index.mjs.map +1 -1
- package/resources/containers/files.js +1 -1
- package/resources/containers/files.js.map +1 -1
- package/resources/containers/files.mjs +1 -1
- package/resources/containers/files.mjs.map +1 -1
- package/resources/containers/index.js +1 -1
- package/resources/containers/index.js.map +1 -1
- package/resources/containers/index.mjs +1 -1
- package/resources/containers/index.mjs.map +1 -1
- package/resources/containers.js +1 -1
- package/resources/containers.js.map +1 -1
- package/resources/containers.mjs +1 -1
- package/resources/containers.mjs.map +1 -1
- package/resources/content-provenance-checks.js +1 -1
- package/resources/content-provenance-checks.js.map +1 -1
- package/resources/content-provenance-checks.mjs +1 -1
- package/resources/content-provenance-checks.mjs.map +1 -1
- package/resources/conversations/conversations.d.mts +1 -1
- package/resources/conversations/conversations.d.mts.map +1 -1
- package/resources/conversations/conversations.d.ts +1 -1
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/index.js +1 -1
- package/resources/conversations/index.js.map +1 -1
- package/resources/conversations/index.mjs +1 -1
- package/resources/conversations/index.mjs.map +1 -1
- package/resources/conversations/items.d.mts +1 -1
- package/resources/conversations/items.d.mts.map +1 -1
- package/resources/conversations/items.d.ts +1 -1
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js +1 -1
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs +1 -1
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/conversations.js +1 -1
- package/resources/conversations.js.map +1 -1
- package/resources/conversations.mjs +1 -1
- package/resources/conversations.mjs.map +1 -1
- package/resources/embeddings.d.mts +9 -0
- package/resources/embeddings.d.mts.map +1 -1
- package/resources/embeddings.d.ts +9 -0
- package/resources/embeddings.d.ts.map +1 -1
- package/resources/embeddings.js +3 -47
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +3 -47
- package/resources/embeddings.mjs.map +1 -1
- package/resources/evals/evals.js +1 -1
- package/resources/evals/evals.js.map +1 -1
- package/resources/evals/evals.mjs +1 -1
- package/resources/evals/evals.mjs.map +1 -1
- package/resources/evals/index.js +1 -1
- package/resources/evals/index.js.map +1 -1
- package/resources/evals/index.mjs +1 -1
- package/resources/evals/index.mjs.map +1 -1
- package/resources/evals/runs/index.js +1 -1
- package/resources/evals/runs/index.js.map +1 -1
- package/resources/evals/runs/index.mjs +1 -1
- package/resources/evals/runs/index.mjs.map +1 -1
- package/resources/evals/runs/output-items.js +1 -1
- package/resources/evals/runs/output-items.js.map +1 -1
- package/resources/evals/runs/output-items.mjs +1 -1
- package/resources/evals/runs/output-items.mjs.map +1 -1
- package/resources/evals/runs/runs.js +1 -1
- package/resources/evals/runs/runs.js.map +1 -1
- package/resources/evals/runs/runs.mjs +1 -1
- package/resources/evals/runs/runs.mjs.map +1 -1
- package/resources/evals/runs.js +1 -1
- package/resources/evals/runs.js.map +1 -1
- package/resources/evals/runs.mjs +1 -1
- package/resources/evals/runs.mjs.map +1 -1
- package/resources/evals.js +1 -1
- package/resources/evals.js.map +1 -1
- package/resources/evals.mjs +1 -1
- package/resources/evals.mjs.map +1 -1
- package/resources/files.d.mts +1 -1
- package/resources/files.d.mts.map +1 -1
- package/resources/files.d.ts +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js +4 -17
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +4 -17
- package/resources/files.mjs.map +1 -1
- package/resources/fine-tuning/alpha/alpha.js +1 -1
- package/resources/fine-tuning/alpha/alpha.js.map +1 -1
- package/resources/fine-tuning/alpha/alpha.mjs +1 -1
- package/resources/fine-tuning/alpha/alpha.mjs.map +1 -1
- package/resources/fine-tuning/alpha/graders.js +1 -1
- package/resources/fine-tuning/alpha/graders.js.map +1 -1
- package/resources/fine-tuning/alpha/graders.mjs +1 -1
- package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
- package/resources/fine-tuning/alpha/index.js +1 -1
- package/resources/fine-tuning/alpha/index.js.map +1 -1
- package/resources/fine-tuning/alpha/index.mjs +1 -1
- package/resources/fine-tuning/alpha/index.mjs.map +1 -1
- package/resources/fine-tuning/alpha.js +1 -1
- package/resources/fine-tuning/alpha.js.map +1 -1
- package/resources/fine-tuning/alpha.mjs +1 -1
- package/resources/fine-tuning/alpha.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.js +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.js.map +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.mjs +1 -1
- package/resources/fine-tuning/checkpoints/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/index.js +1 -1
- package/resources/fine-tuning/checkpoints/index.js.map +1 -1
- package/resources/fine-tuning/checkpoints/index.mjs +1 -1
- package/resources/fine-tuning/checkpoints/index.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js +1 -1
- package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs +1 -1
- package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
- package/resources/fine-tuning/checkpoints.js +1 -1
- package/resources/fine-tuning/checkpoints.js.map +1 -1
- package/resources/fine-tuning/checkpoints.mjs +1 -1
- package/resources/fine-tuning/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/fine-tuning.js +1 -1
- package/resources/fine-tuning/fine-tuning.js.map +1 -1
- package/resources/fine-tuning/fine-tuning.mjs +1 -1
- package/resources/fine-tuning/fine-tuning.mjs.map +1 -1
- package/resources/fine-tuning/index.js +1 -1
- package/resources/fine-tuning/index.js.map +1 -1
- package/resources/fine-tuning/index.mjs +1 -1
- package/resources/fine-tuning/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js +1 -1
- package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
- package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
- package/resources/fine-tuning/jobs/index.js +1 -1
- package/resources/fine-tuning/jobs/index.js.map +1 -1
- package/resources/fine-tuning/jobs/index.mjs +1 -1
- package/resources/fine-tuning/jobs/index.mjs.map +1 -1
- package/resources/fine-tuning/jobs/jobs.js +1 -1
- package/resources/fine-tuning/jobs/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs +1 -1
- package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
- package/resources/fine-tuning/jobs.js +1 -1
- package/resources/fine-tuning/jobs.js.map +1 -1
- package/resources/fine-tuning/jobs.mjs +1 -1
- package/resources/fine-tuning/jobs.mjs.map +1 -1
- package/resources/fine-tuning/methods.js +1 -1
- package/resources/fine-tuning/methods.js.map +1 -1
- package/resources/fine-tuning/methods.mjs +1 -1
- package/resources/fine-tuning/methods.mjs.map +1 -1
- package/resources/fine-tuning.js +1 -1
- package/resources/fine-tuning.js.map +1 -1
- package/resources/fine-tuning.mjs +1 -1
- package/resources/fine-tuning.mjs.map +1 -1
- package/resources/graders/grader-models.js +1 -1
- package/resources/graders/grader-models.js.map +1 -1
- package/resources/graders/grader-models.mjs +1 -1
- package/resources/graders/grader-models.mjs.map +1 -1
- package/resources/graders/graders.js +1 -1
- package/resources/graders/graders.js.map +1 -1
- package/resources/graders/graders.mjs +1 -1
- package/resources/graders/graders.mjs.map +1 -1
- package/resources/graders/index.js +1 -1
- package/resources/graders/index.js.map +1 -1
- package/resources/graders/index.mjs +1 -1
- package/resources/graders/index.mjs.map +1 -1
- package/resources/graders.js +1 -1
- package/resources/graders.js.map +1 -1
- package/resources/graders.mjs +1 -1
- package/resources/graders.mjs.map +1 -1
- package/resources/images.d.mts +12 -22
- package/resources/images.d.mts.map +1 -1
- package/resources/images.d.ts +12 -22
- package/resources/images.d.ts.map +1 -1
- package/resources/images.js +8 -2
- package/resources/images.js.map +1 -1
- package/resources/images.mjs +8 -2
- package/resources/images.mjs.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/models.d.mts +4 -0
- package/resources/models.d.mts.map +1 -1
- package/resources/models.d.ts +4 -0
- package/resources/models.d.ts.map +1 -1
- package/resources/models.js +1 -1
- package/resources/models.js.map +1 -1
- package/resources/models.mjs +1 -1
- package/resources/models.mjs.map +1 -1
- package/resources/moderations.js +1 -1
- package/resources/moderations.js.map +1 -1
- package/resources/moderations.mjs +1 -1
- package/resources/moderations.mjs.map +1 -1
- package/resources/realtime/calls.d.mts +23 -1
- package/resources/realtime/calls.d.mts.map +1 -1
- package/resources/realtime/calls.d.ts +23 -1
- package/resources/realtime/calls.d.ts.map +1 -1
- package/resources/realtime/calls.js +25 -1
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +25 -1
- package/resources/realtime/calls.mjs.map +1 -1
- package/resources/realtime/client-secrets.js +1 -1
- package/resources/realtime/client-secrets.js.map +1 -1
- package/resources/realtime/client-secrets.mjs +1 -1
- package/resources/realtime/client-secrets.mjs.map +1 -1
- package/resources/realtime/index.d.mts +1 -1
- package/resources/realtime/index.d.mts.map +1 -1
- package/resources/realtime/index.d.ts +1 -1
- package/resources/realtime/index.d.ts.map +1 -1
- package/resources/realtime/index.js +1 -1
- package/resources/realtime/index.js.map +1 -1
- package/resources/realtime/index.mjs +2 -2
- package/resources/realtime/index.mjs.map +1 -1
- package/resources/realtime/realtime.d.mts +5 -4
- package/resources/realtime/realtime.d.mts.map +1 -1
- package/resources/realtime/realtime.d.ts +5 -4
- package/resources/realtime/realtime.d.ts.map +1 -1
- package/resources/realtime/realtime.js +1 -1
- package/resources/realtime/realtime.js.map +1 -1
- package/resources/realtime/realtime.mjs +1 -1
- package/resources/realtime/realtime.mjs.map +1 -1
- package/resources/realtime.js +1 -1
- package/resources/realtime.js.map +1 -1
- package/resources/realtime.mjs +1 -1
- package/resources/realtime.mjs.map +1 -1
- package/resources/responses/index.js +1 -1
- package/resources/responses/index.js.map +1 -1
- package/resources/responses/index.mjs +1 -1
- package/resources/responses/index.mjs.map +1 -1
- package/resources/responses/input-items.js +1 -1
- package/resources/responses/input-items.js.map +1 -1
- package/resources/responses/input-items.mjs +1 -1
- package/resources/responses/input-items.mjs.map +1 -1
- package/resources/responses/input-tokens.js +1 -1
- package/resources/responses/input-tokens.js.map +1 -1
- package/resources/responses/input-tokens.mjs +1 -1
- package/resources/responses/input-tokens.mjs.map +1 -1
- package/resources/responses/internal-base.d.mts +6 -3
- package/resources/responses/internal-base.d.mts.map +1 -1
- package/resources/responses/internal-base.d.ts +6 -3
- package/resources/responses/internal-base.d.ts.map +1 -1
- package/resources/responses/internal-base.js +5 -2
- package/resources/responses/internal-base.js.map +1 -1
- package/resources/responses/internal-base.mjs +5 -2
- package/resources/responses/internal-base.mjs.map +1 -1
- package/resources/responses/responses.d.mts +1059 -32
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +1059 -32
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/responses/ws-base.js +1 -1
- package/resources/responses/ws-base.js.map +1 -1
- package/resources/responses/ws-base.mjs +1 -1
- package/resources/responses/ws-base.mjs.map +1 -1
- package/resources/responses/ws.js +1 -1
- package/resources/responses/ws.js.map +1 -1
- package/resources/responses/ws.mjs +1 -1
- package/resources/responses/ws.mjs.map +1 -1
- package/resources/responses.js +1 -1
- package/resources/responses.js.map +1 -1
- package/resources/responses.mjs +1 -1
- package/resources/responses.mjs.map +1 -1
- package/resources/shared.d.mts +3 -3
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +3 -3
- package/resources/shared.d.ts.map +1 -1
- package/resources/shared.js +1 -1
- package/resources/shared.js.map +1 -1
- package/resources/shared.mjs +1 -1
- package/resources/shared.mjs.map +1 -1
- package/resources/skills/content.js +1 -1
- package/resources/skills/content.js.map +1 -1
- package/resources/skills/content.mjs +1 -1
- package/resources/skills/content.mjs.map +1 -1
- package/resources/skills/index.js +1 -1
- package/resources/skills/index.js.map +1 -1
- package/resources/skills/index.mjs +1 -1
- package/resources/skills/index.mjs.map +1 -1
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js +4 -2
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs +4 -2
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/skills/versions/content.js +1 -1
- package/resources/skills/versions/content.js.map +1 -1
- package/resources/skills/versions/content.mjs +1 -1
- package/resources/skills/versions/content.mjs.map +1 -1
- package/resources/skills/versions/index.js +1 -1
- package/resources/skills/versions/index.js.map +1 -1
- package/resources/skills/versions/index.mjs +1 -1
- package/resources/skills/versions/index.mjs.map +1 -1
- package/resources/skills/versions/versions.d.mts.map +1 -1
- package/resources/skills/versions/versions.d.ts.map +1 -1
- package/resources/skills/versions/versions.js +4 -2
- package/resources/skills/versions/versions.js.map +1 -1
- package/resources/skills/versions/versions.mjs +4 -2
- package/resources/skills/versions/versions.mjs.map +1 -1
- package/resources/skills/versions.js +1 -1
- package/resources/skills/versions.js.map +1 -1
- package/resources/skills/versions.mjs +1 -1
- package/resources/skills/versions.mjs.map +1 -1
- package/resources/skills.js +1 -1
- package/resources/skills.js.map +1 -1
- package/resources/skills.mjs +1 -1
- package/resources/skills.mjs.map +1 -1
- package/resources/uploads/index.js +1 -1
- package/resources/uploads/index.js.map +1 -1
- package/resources/uploads/index.mjs +1 -1
- package/resources/uploads/index.mjs.map +1 -1
- package/resources/uploads/parts.js +1 -1
- package/resources/uploads/parts.js.map +1 -1
- package/resources/uploads/parts.mjs +1 -1
- package/resources/uploads/parts.mjs.map +1 -1
- package/resources/uploads/uploads.js +1 -1
- package/resources/uploads/uploads.js.map +1 -1
- package/resources/uploads/uploads.mjs +1 -1
- package/resources/uploads/uploads.mjs.map +1 -1
- package/resources/uploads.js +1 -1
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +1 -1
- package/resources/uploads.mjs.map +1 -1
- package/resources/vector-stores/file-batches.d.mts.map +1 -1
- package/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/resources/vector-stores/file-batches.js +6 -63
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +6 -63
- package/resources/vector-stores/file-batches.mjs.map +1 -1
- package/resources/vector-stores/files.d.mts +1 -1
- package/resources/vector-stores/files.d.mts.map +1 -1
- package/resources/vector-stores/files.d.ts +1 -1
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +3 -36
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +3 -36
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.js +1 -1
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs +1 -1
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.js +1 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/resources/vector-stores.js +1 -1
- package/resources/vector-stores.js.map +1 -1
- package/resources/vector-stores.mjs +1 -1
- package/resources/vector-stores.mjs.map +1 -1
- package/resources/videos.d.mts +23 -0
- package/resources/videos.d.mts.map +1 -1
- package/resources/videos.d.ts +23 -0
- package/resources/videos.d.ts.map +1 -1
- package/resources/videos.js +24 -1
- package/resources/videos.js.map +1 -1
- package/resources/videos.mjs +24 -1
- package/resources/videos.mjs.map +1 -1
- package/resources/webhooks/index.js +1 -1
- package/resources/webhooks/index.js.map +1 -1
- package/resources/webhooks/index.mjs +1 -1
- package/resources/webhooks/index.mjs.map +1 -1
- package/resources/webhooks/webhooks.d.mts.map +1 -1
- package/resources/webhooks/webhooks.d.ts.map +1 -1
- package/resources/webhooks/webhooks.js +6 -43
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +6 -43
- package/resources/webhooks/webhooks.mjs.map +1 -1
- package/resources/webhooks.js +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/src/_vendor/partial-json-parser/parser.ts +63 -33
- package/src/_vendor/zod-to-json-schema/Options.ts +30 -18
- package/src/_vendor/zod-to-json-schema/Refs.ts +7 -6
- package/src/_vendor/zod-to-json-schema/errorMessages.ts +5 -3
- package/src/_vendor/zod-to-json-schema/index.ts +3 -1
- package/src/_vendor/zod-to-json-schema/parseDef.ts +150 -64
- package/src/_vendor/zod-to-json-schema/parsers/array.ts +8 -5
- package/src/_vendor/zod-to-json-schema/parsers/bigint.ts +18 -12
- package/src/_vendor/zod-to-json-schema/parsers/branded.ts +2 -2
- package/src/_vendor/zod-to-json-schema/parsers/catch.ts +4 -5
- package/src/_vendor/zod-to-json-schema/parsers/date.ts +16 -10
- package/src/_vendor/zod-to-json-schema/parsers/default.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/effects.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/enum.ts +1 -1
- package/src/_vendor/zod-to-json-schema/parsers/intersection.ts +12 -9
- package/src/_vendor/zod-to-json-schema/parsers/literal.ts +11 -2
- package/src/_vendor/zod-to-json-schema/parsers/map.ts +6 -4
- package/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +10 -11
- package/src/_vendor/zod-to-json-schema/parsers/null.ts +3 -3
- package/src/_vendor/zod-to-json-schema/parsers/nullable.ts +8 -5
- package/src/_vendor/zod-to-json-schema/parsers/number.ts +15 -8
- package/src/_vendor/zod-to-json-schema/parsers/object.ts +57 -54
- package/src/_vendor/zod-to-json-schema/parsers/optional.ts +6 -5
- package/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +5 -4
- package/src/_vendor/zod-to-json-schema/parsers/promise.ts +4 -3
- package/src/_vendor/zod-to-json-schema/parsers/readonly.ts +4 -5
- package/src/_vendor/zod-to-json-schema/parsers/record.ts +20 -19
- package/src/_vendor/zod-to-json-schema/parsers/set.ts +6 -4
- package/src/_vendor/zod-to-json-schema/parsers/string.ts +60 -36
- package/src/_vendor/zod-to-json-schema/parsers/tuple.ts +18 -18
- package/src/_vendor/zod-to-json-schema/parsers/union.ts +48 -33
- package/src/_vendor/zod-to-json-schema/util.ts +10 -6
- package/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +119 -45
- package/src/auth/index.ts +6 -1
- package/src/auth/subject-token-providers.ts +267 -12
- package/src/auth/types.ts +42 -5
- package/src/auth/workload-identity-auth.ts +164 -22
- package/src/auth/x509-transport.ts +49 -0
- package/src/azure.ts +81 -26
- package/src/bedrock.ts +93 -9
- package/src/beta/realtime/internal-base.ts +94 -15
- package/src/beta/realtime/websocket.ts +237 -44
- package/src/beta/realtime/ws.ts +124 -23
- package/src/client.ts +760 -104
- package/src/core/EventEmitter.ts +136 -24
- package/src/core/api-promise.ts +0 -2
- package/src/core/error.ts +6 -8
- package/src/core/pagination.ts +3 -5
- package/src/core/resource.ts +0 -2
- package/src/core/streaming.ts +216 -83
- package/src/helpers/audio.ts +177 -31
- package/src/helpers/standard-schema.ts +294 -57
- package/src/helpers/zod-v3-strict-schema.ts +514 -0
- package/src/helpers/zod.ts +151 -41
- package/src/index.ts +2 -4
- package/src/internal/assistant-stream-delta.ts +434 -0
- package/src/internal/auth/x509-token-exchange.ts +310 -0
- package/src/internal/auth/x509-transport-capability.ts +219 -0
- package/src/internal/auth/x509-transport-registry.ts +118 -0
- package/src/internal/auth/x509-transport-state-browser.ts +36 -0
- package/src/internal/auth/x509-transport-state.cts +36 -0
- package/src/internal/auth/x509-workload-identity-auth.ts +958 -0
- package/src/internal/bedrock.ts +410 -18
- package/src/internal/builtin-types.ts +0 -2
- package/src/internal/data-residency.ts +44 -0
- package/src/internal/decoders/line.ts +144 -61
- package/src/internal/detect-platform.ts +1 -3
- package/src/internal/errors.ts +0 -2
- package/src/internal/headers.ts +0 -2
- package/src/internal/multipart-encoding.ts +53 -0
- package/src/internal/parse.ts +31 -8
- package/src/internal/provider.ts +29 -0
- package/src/internal/qs/formats.ts +1 -1
- package/src/internal/qs/stringify.ts +54 -53
- package/src/internal/qs/types.ts +1 -1
- package/src/internal/qs/utils.ts +432 -54
- package/src/internal/request-options.ts +52 -3
- package/src/internal/responses/canonical-output-text.ts +160 -0
- package/src/internal/responses/output-text-index.ts +84 -0
- package/src/internal/responses/response-accumulator.ts +1232 -0
- package/src/internal/shim-types.ts +3 -4
- package/src/internal/shims.ts +0 -2
- package/src/internal/stream-utils.ts +37 -5
- package/src/internal/to-file.ts +87 -33
- package/src/internal/types.ts +21 -29
- package/src/internal/uploads.ts +323 -86
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/bytes.ts +5 -0
- package/src/internal/utils/env.ts +9 -7
- package/src/internal/utils/log.ts +8 -12
- package/src/internal/utils/path.ts +51 -32
- package/src/internal/utils/query.ts +0 -2
- package/src/internal/utils/sleep.ts +0 -2
- package/src/internal/utils/uuid.ts +0 -2
- package/src/internal/utils/values.ts +0 -2
- package/src/internal/utils.ts +0 -2
- package/src/internal/ws-adapter-browser.ts +81 -24
- package/src/internal/ws-adapter-node.ts +105 -26
- package/src/internal/ws-adapter.ts +23 -0
- package/src/internal/ws.ts +153 -50
- package/src/lib/.keep +2 -2
- package/src/lib/AbstractChatCompletionRunner.ts +140 -62
- package/src/lib/AssistantStream.ts +498 -239
- package/src/lib/ChatCompletionRunner.ts +24 -16
- package/src/lib/ChatCompletionStream.ts +1783 -249
- package/src/lib/ChatCompletionStreamingRunner.ts +54 -94
- package/src/lib/EventEmitter.ts +127 -27
- package/src/lib/EventStream.ts +1704 -62
- package/src/lib/ResponsesParser.ts +95 -40
- package/src/lib/RunnableFunction.ts +62 -32
- package/src/lib/Util.ts +7 -5
- package/src/lib/assistant-run-polling.ts +27 -0
- package/src/lib/chatCompletionUtils.ts +9 -10
- package/src/lib/embeddings.ts +65 -0
- package/src/lib/file-processing.ts +36 -0
- package/src/lib/jsonschema.ts +74 -34
- package/src/lib/parser.ts +197 -61
- package/src/lib/polling.ts +144 -0
- package/src/lib/responses/EventTypes.ts +16 -1
- package/src/lib/responses/ResponseAccumulator.ts +8 -402
- package/src/lib/responses/ResponseInputItems.ts +1 -0
- package/src/lib/responses/ResponseStream.ts +105 -91
- package/src/lib/transform.ts +160 -108
- package/src/lib/vector-store-polling.ts +46 -0
- package/src/lib/vector-store-upload.ts +53 -0
- package/src/lib/webhook-signature.ts +164 -0
- package/src/providers/bedrock/aws.ts +114 -41
- package/src/providers/bedrock.ts +22 -4
- package/src/realtime/internal-base.ts +206 -41
- package/src/realtime/websocket.ts +226 -41
- package/src/realtime/ws.ts +112 -18
- package/src/resources/admin/admin.ts +1 -1
- package/src/resources/admin/index.ts +1 -1
- package/src/resources/admin/organization/admin-api-keys.ts +1 -1
- package/src/resources/admin/organization/audit-logs.ts +5 -1
- package/src/resources/admin/organization/certificates.ts +1 -1
- package/src/resources/admin/organization/data-retention.ts +1 -1
- package/src/resources/admin/organization/groups/groups.ts +1 -1
- package/src/resources/admin/organization/groups/index.ts +1 -1
- package/src/resources/admin/organization/groups/roles.ts +1 -1
- package/src/resources/admin/organization/groups/users.ts +1 -1
- package/src/resources/admin/organization/groups.ts +1 -1
- package/src/resources/admin/organization/index.ts +3 -1
- package/src/resources/admin/organization/invites.ts +1 -1
- package/src/resources/admin/organization/organization.ts +5 -1
- package/src/resources/admin/organization/projects/api-keys.ts +1 -1
- package/src/resources/admin/organization/projects/certificates.ts +1 -1
- package/src/resources/admin/organization/projects/data-retention.ts +1 -1
- package/src/resources/admin/organization/projects/groups/groups.ts +1 -1
- package/src/resources/admin/organization/projects/groups/index.ts +1 -1
- package/src/resources/admin/organization/projects/groups/roles.ts +1 -1
- package/src/resources/admin/organization/projects/groups.ts +1 -1
- package/src/resources/admin/organization/projects/hosted-tool-permissions.ts +1 -1
- package/src/resources/admin/organization/projects/index.ts +2 -1
- package/src/resources/admin/organization/projects/model-permissions.ts +1 -1
- package/src/resources/admin/organization/projects/projects.ts +38 -5
- package/src/resources/admin/organization/projects/rate-limits.ts +1 -1
- package/src/resources/admin/organization/projects/roles.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts/index.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +1 -1
- package/src/resources/admin/organization/projects/service-accounts.ts +1 -1
- package/src/resources/admin/organization/projects/spend-alerts.ts +1 -1
- package/src/resources/admin/organization/projects/spend-limit.ts +1 -1
- package/src/resources/admin/organization/projects/users/index.ts +1 -1
- package/src/resources/admin/organization/projects/users/roles.ts +1 -1
- package/src/resources/admin/organization/projects/users/users.ts +1 -1
- package/src/resources/admin/organization/projects/users.ts +1 -1
- package/src/resources/admin/organization/projects.ts +1 -1
- package/src/resources/admin/organization/roles.ts +1 -1
- package/src/resources/admin/organization/spend-alerts.ts +1 -1
- package/src/resources/admin/organization/spend-limit.ts +1 -1
- package/src/resources/admin/organization/usage.ts +84 -1
- package/src/resources/admin/organization/users/index.ts +1 -1
- package/src/resources/admin/organization/users/roles.ts +1 -1
- package/src/resources/admin/organization/users/users.ts +1 -1
- package/src/resources/admin/organization/users.ts +1 -1
- package/src/resources/admin/organization.ts +1 -1
- package/src/resources/admin.ts +1 -1
- package/src/resources/audio/audio.ts +1 -1
- package/src/resources/audio/index.ts +1 -1
- package/src/resources/audio/speech.ts +1 -1
- package/src/resources/audio/transcriptions.ts +4 -2
- package/src/resources/audio/translations.ts +4 -2
- package/src/resources/audio.ts +1 -1
- package/src/resources/batches.ts +1 -1
- package/src/resources/beta/assistants.ts +1 -1
- package/src/resources/beta/beta.ts +17 -1
- package/src/resources/beta/chatkit/chatkit.ts +1 -1
- package/src/resources/beta/chatkit/index.ts +1 -1
- package/src/resources/beta/chatkit/sessions.ts +1 -1
- package/src/resources/beta/chatkit/threads.ts +1 -1
- package/src/resources/beta/chatkit.ts +1 -1
- package/src/resources/beta/index.ts +9 -1
- package/src/resources/beta/realtime/index.ts +0 -2
- package/src/resources/beta/realtime/realtime.ts +0 -2
- package/src/resources/beta/realtime/sessions.ts +0 -2
- package/src/resources/beta/realtime/transcription-sessions.ts +0 -2
- package/src/resources/beta/realtime.ts +0 -2
- package/src/resources/beta/responses/index.ts +9 -1
- package/src/resources/beta/responses/input-items.ts +1 -1
- package/src/resources/beta/responses/input-tokens.ts +1 -1
- package/src/resources/beta/responses/internal-base.ts +11 -10
- package/src/resources/beta/responses/responses.ts +2276 -956
- package/src/resources/beta/responses/ws-base.ts +1 -1
- package/src/resources/beta/responses/ws.ts +1 -1
- package/src/resources/beta/responses.ts +1 -1
- package/src/resources/beta/threads/index.ts +1 -1
- package/src/resources/beta/threads/messages.ts +1 -1
- package/src/resources/beta/threads/runs/index.ts +2 -2
- package/src/resources/beta/threads/runs/runs.ts +3 -46
- package/src/resources/beta/threads/runs/steps.ts +1 -1
- package/src/resources/beta/threads/runs.ts +1 -1
- package/src/resources/beta/threads/threads.ts +1 -1
- package/src/resources/beta/threads.ts +1 -1
- package/src/resources/beta.ts +1 -1
- package/src/resources/chat/chat.ts +1 -1
- package/src/resources/chat/completions/completions.ts +46 -8
- package/src/resources/chat/completions/index.ts +1 -1
- package/src/resources/chat/completions/messages.ts +1 -1
- package/src/resources/chat/completions.ts +1 -1
- package/src/resources/chat/index.ts +1 -1
- package/src/resources/chat.ts +1 -1
- package/src/resources/completions.ts +16 -1
- package/src/resources/containers/containers.ts +1 -1
- package/src/resources/containers/files/content.ts +1 -1
- package/src/resources/containers/files/files.ts +1 -1
- package/src/resources/containers/files/index.ts +1 -1
- package/src/resources/containers/files.ts +1 -1
- package/src/resources/containers/index.ts +1 -1
- package/src/resources/containers.ts +1 -1
- package/src/resources/content-provenance-checks.ts +1 -1
- package/src/resources/conversations/conversations.ts +2 -2
- package/src/resources/conversations/index.ts +1 -1
- package/src/resources/conversations/items.ts +2 -2
- package/src/resources/conversations.ts +1 -1
- package/src/resources/embeddings.ts +16 -43
- package/src/resources/evals/evals.ts +1 -1
- package/src/resources/evals/index.ts +1 -1
- package/src/resources/evals/runs/index.ts +1 -1
- package/src/resources/evals/runs/output-items.ts +1 -1
- package/src/resources/evals/runs/runs.ts +1 -1
- package/src/resources/evals/runs.ts +1 -1
- package/src/resources/evals.ts +1 -1
- package/src/resources/files.ts +4 -21
- package/src/resources/fine-tuning/alpha/alpha.ts +1 -1
- package/src/resources/fine-tuning/alpha/graders.ts +1 -1
- package/src/resources/fine-tuning/alpha/index.ts +1 -1
- package/src/resources/fine-tuning/alpha.ts +1 -1
- package/src/resources/fine-tuning/checkpoints/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/checkpoints/index.ts +1 -1
- package/src/resources/fine-tuning/checkpoints/permissions.ts +1 -1
- package/src/resources/fine-tuning/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/fine-tuning.ts +1 -1
- package/src/resources/fine-tuning/index.ts +1 -1
- package/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
- package/src/resources/fine-tuning/jobs/index.ts +1 -1
- package/src/resources/fine-tuning/jobs/jobs.ts +1 -1
- package/src/resources/fine-tuning/jobs.ts +1 -1
- package/src/resources/fine-tuning/methods.ts +1 -1
- package/src/resources/fine-tuning.ts +1 -1
- package/src/resources/graders/grader-models.ts +1 -1
- package/src/resources/graders/graders.ts +1 -1
- package/src/resources/graders/index.ts +1 -1
- package/src/resources/graders.ts +1 -1
- package/src/resources/images.ts +20 -24
- package/src/resources/index.ts +1 -1
- package/src/resources/models.ts +6 -1
- package/src/resources/moderations.ts +1 -1
- package/src/resources/realtime/api.md +1 -0
- package/src/resources/realtime/calls.ts +47 -1
- package/src/resources/realtime/client-secrets.ts +1 -1
- package/src/resources/realtime/index.ts +8 -2
- package/src/resources/realtime/realtime.ts +6 -4
- package/src/resources/realtime.ts +1 -1
- package/src/resources/responses/api.md +8 -0
- package/src/resources/responses/index.ts +1 -1
- package/src/resources/responses/input-items.ts +1 -1
- package/src/resources/responses/input-tokens.ts +1 -1
- package/src/resources/responses/internal-base.ts +11 -10
- package/src/resources/responses/responses.ts +1530 -332
- package/src/resources/responses/ws-base.ts +1 -1
- package/src/resources/responses/ws.ts +1 -1
- package/src/resources/responses.ts +1 -1
- package/src/resources/shared.ts +14 -3
- package/src/resources/skills/content.ts +1 -1
- package/src/resources/skills/index.ts +1 -1
- package/src/resources/skills/skills.ts +4 -2
- package/src/resources/skills/versions/content.ts +1 -1
- package/src/resources/skills/versions/index.ts +1 -1
- package/src/resources/skills/versions/versions.ts +4 -2
- package/src/resources/skills/versions.ts +1 -1
- package/src/resources/skills.ts +1 -1
- package/src/resources/uploads/index.ts +1 -1
- package/src/resources/uploads/parts.ts +1 -1
- package/src/resources/uploads/uploads.ts +1 -1
- package/src/resources/uploads.ts +1 -1
- package/src/resources/vector-stores/file-batches.ts +13 -78
- package/src/resources/vector-stores/files.ts +4 -44
- package/src/resources/vector-stores/index.ts +1 -1
- package/src/resources/vector-stores/vector-stores.ts +1 -1
- package/src/resources/vector-stores.ts +1 -1
- package/src/resources/videos.ts +24 -1
- package/src/resources/webhooks/index.ts +1 -1
- package/src/resources/webhooks/webhooks.ts +6 -65
- package/src/resources/webhooks.ts +1 -1
- package/src/tsconfig.dist-src.d.ts +29 -0
- package/src/tsconfig.json +6 -3
- package/src/version.ts +2 -1
- package/version.d.mts +2 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +2 -1
- package/version.d.ts.map +1 -1
- package/version.js +2 -1
- package/version.js.map +1 -1
- package/version.mjs +2 -1
- package/version.mjs.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by
|
|
1
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
4
|
import * as ResponsesAPI from './responses';
|
|
@@ -919,6 +919,8 @@ export interface BetaFunctionTool {
|
|
|
919
919
|
output_schema?: { [key: string]: unknown } | null;
|
|
920
920
|
}
|
|
921
921
|
|
|
922
|
+
export type BetaImageDetail = 'low' | 'high' | 'auto' | 'original';
|
|
923
|
+
|
|
922
924
|
export interface BetaInlineSkill {
|
|
923
925
|
/**
|
|
924
926
|
* The description of the skill.
|
|
@@ -990,6 +992,35 @@ export interface BetaLocalSkill {
|
|
|
990
992
|
path: string;
|
|
991
993
|
}
|
|
992
994
|
|
|
995
|
+
export type BetaMcpToolCallError =
|
|
996
|
+
| BetaMcpToolCallError.McpProtocolError
|
|
997
|
+
| BetaMcpToolCallError.McpToolExecutionError
|
|
998
|
+
| BetaMcpToolCallError.HTTPError;
|
|
999
|
+
|
|
1000
|
+
export namespace BetaMcpToolCallError {
|
|
1001
|
+
export interface McpProtocolError {
|
|
1002
|
+
code: number;
|
|
1003
|
+
|
|
1004
|
+
message: string;
|
|
1005
|
+
|
|
1006
|
+
type: 'mcp_protocol_error';
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export interface McpToolExecutionError {
|
|
1010
|
+
content: unknown;
|
|
1011
|
+
|
|
1012
|
+
type: 'mcp_tool_execution_error';
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export interface HTTPError {
|
|
1016
|
+
code: number;
|
|
1017
|
+
|
|
1018
|
+
message: string;
|
|
1019
|
+
|
|
1020
|
+
type: 'http_error';
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
993
1024
|
/**
|
|
994
1025
|
* Groups function/custom tools under a shared namespace.
|
|
995
1026
|
*/
|
|
@@ -1102,6 +1133,7 @@ export interface BetaResponse {
|
|
|
1102
1133
|
| 'gpt-5.6-terra'
|
|
1103
1134
|
| 'gpt-5.6-luna'
|
|
1104
1135
|
| 'gpt-5.5'
|
|
1136
|
+
| 'gpt-5.5-2026-04-23'
|
|
1105
1137
|
| 'gpt-5.4'
|
|
1106
1138
|
| 'gpt-5.4-mini'
|
|
1107
1139
|
| 'gpt-5.4-nano'
|
|
@@ -1190,10 +1222,15 @@ export interface BetaResponse {
|
|
|
1190
1222
|
| 'o4-mini-deep-research-2025-06-26'
|
|
1191
1223
|
| 'computer-use-preview'
|
|
1192
1224
|
| 'computer-use-preview-2025-03-11'
|
|
1225
|
+
| 'gpt-5.5-pro'
|
|
1226
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
1193
1227
|
| 'gpt-5-codex'
|
|
1194
1228
|
| 'gpt-5-pro'
|
|
1195
1229
|
| 'gpt-5-pro-2025-10-06'
|
|
1196
1230
|
| 'gpt-5.1-codex-max'
|
|
1231
|
+
| 'gpt-daybreak-blue-latest'
|
|
1232
|
+
| 'gpt-daybreak-red-latest'
|
|
1233
|
+
| 'gpt-5.6-cyber'
|
|
1197
1234
|
| (string & {});
|
|
1198
1235
|
|
|
1199
1236
|
/**
|
|
@@ -1393,6 +1430,10 @@ export interface BetaResponse {
|
|
|
1393
1430
|
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
1394
1431
|
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
1395
1432
|
* request.
|
|
1433
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
1434
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
1435
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
1436
|
+
* `service_tier=ultrafast`.
|
|
1396
1437
|
* - When not set, the default behavior is 'auto'.
|
|
1397
1438
|
*
|
|
1398
1439
|
* When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1400,7 +1441,7 @@ export interface BetaResponse {
|
|
|
1400
1441
|
* request. This response value may be different from the value set in the
|
|
1401
1442
|
* parameter.
|
|
1402
1443
|
*/
|
|
1403
|
-
service_tier?:
|
|
1444
|
+
service_tier?: BetaServiceTier | null;
|
|
1404
1445
|
|
|
1405
1446
|
/**
|
|
1406
1447
|
* The status of the response generation. One of `completed`, `failed`,
|
|
@@ -4397,6 +4438,26 @@ export interface BetaResponseImageGenCallPartialImageEvent {
|
|
|
4397
4438
|
* The agent that owns this multi-agent streaming event.
|
|
4398
4439
|
*/
|
|
4399
4440
|
agent?: BetaResponseImageGenCallPartialImageEvent.Agent | null;
|
|
4441
|
+
|
|
4442
|
+
/**
|
|
4443
|
+
* The background setting that was used.
|
|
4444
|
+
*/
|
|
4445
|
+
background?: string;
|
|
4446
|
+
|
|
4447
|
+
/**
|
|
4448
|
+
* The output format that was used.
|
|
4449
|
+
*/
|
|
4450
|
+
output_format?: string;
|
|
4451
|
+
|
|
4452
|
+
/**
|
|
4453
|
+
* The image quality that was used.
|
|
4454
|
+
*/
|
|
4455
|
+
quality?: string;
|
|
4456
|
+
|
|
4457
|
+
/**
|
|
4458
|
+
* The image size that was used.
|
|
4459
|
+
*/
|
|
4460
|
+
size?: string;
|
|
4400
4461
|
}
|
|
4401
4462
|
|
|
4402
4463
|
export namespace BetaResponseImageGenCallPartialImageEvent {
|
|
@@ -4787,7 +4848,7 @@ export interface BetaResponseInputImage {
|
|
|
4787
4848
|
* The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
4788
4849
|
* `auto`, or `original`. Defaults to `auto`.
|
|
4789
4850
|
*/
|
|
4790
|
-
detail:
|
|
4851
|
+
detail: BetaImageDetail;
|
|
4791
4852
|
|
|
4792
4853
|
/**
|
|
4793
4854
|
* The type of the input item. Always `input_image`.
|
|
@@ -4841,7 +4902,7 @@ export interface BetaResponseInputImageContent {
|
|
|
4841
4902
|
* The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
4842
4903
|
* `auto`, or `original`. Defaults to `auto`.
|
|
4843
4904
|
*/
|
|
4844
|
-
detail?:
|
|
4905
|
+
detail?: BetaImageDetail | null;
|
|
4845
4906
|
|
|
4846
4907
|
/**
|
|
4847
4908
|
* The ID of the file to be sent to the model.
|
|
@@ -6235,7 +6296,7 @@ export namespace BetaResponseInputItem {
|
|
|
6235
6296
|
/**
|
|
6236
6297
|
* The error from the tool call, if any.
|
|
6237
6298
|
*/
|
|
6238
|
-
error?:
|
|
6299
|
+
error?: ResponsesAPI.BetaMcpToolCallError | null;
|
|
6239
6300
|
|
|
6240
6301
|
/**
|
|
6241
6302
|
* The output from the tool call.
|
|
@@ -6662,7 +6723,7 @@ export namespace BetaResponseItem {
|
|
|
6662
6723
|
* The detail level of the screenshot image to be sent to the model. One of `high`,
|
|
6663
6724
|
* `low`, `auto`, or `original`. Defaults to `auto`.
|
|
6664
6725
|
*/
|
|
6665
|
-
detail:
|
|
6726
|
+
detail: ResponsesAPI.BetaImageDetail;
|
|
6666
6727
|
|
|
6667
6728
|
/**
|
|
6668
6729
|
* The identifier of an uploaded file that contains the screenshot.
|
|
@@ -7332,7 +7393,7 @@ export namespace BetaResponseItem {
|
|
|
7332
7393
|
/**
|
|
7333
7394
|
* The error from the tool call, if any.
|
|
7334
7395
|
*/
|
|
7335
|
-
error?:
|
|
7396
|
+
error?: ResponsesAPI.BetaMcpToolCallError | null;
|
|
7336
7397
|
|
|
7337
7398
|
/**
|
|
7338
7399
|
* The output from the tool call.
|
|
@@ -7866,7 +7927,7 @@ export namespace BetaResponseOutputItem {
|
|
|
7866
7927
|
* The detail level of the screenshot image to be sent to the model. One of `high`,
|
|
7867
7928
|
* `low`, `auto`, or `original`. Defaults to `auto`.
|
|
7868
7929
|
*/
|
|
7869
|
-
detail:
|
|
7930
|
+
detail: ResponsesAPI.BetaImageDetail;
|
|
7870
7931
|
|
|
7871
7932
|
/**
|
|
7872
7933
|
* The identifier of an uploaded file that contains the screenshot.
|
|
@@ -8370,7 +8431,7 @@ export namespace BetaResponseOutputItem {
|
|
|
8370
8431
|
/**
|
|
8371
8432
|
* The error from the tool call, if any.
|
|
8372
8433
|
*/
|
|
8373
|
-
error?:
|
|
8434
|
+
error?: ResponsesAPI.BetaMcpToolCallError | null;
|
|
8374
8435
|
|
|
8375
8436
|
/**
|
|
8376
8437
|
* The output from the tool call.
|
|
@@ -8568,7 +8629,10 @@ export namespace BetaResponseOutputItem {
|
|
|
8568
8629
|
*/
|
|
8569
8630
|
export interface BetaResponseOutputItemAddedEvent {
|
|
8570
8631
|
/**
|
|
8571
|
-
* The output item that was added.
|
|
8632
|
+
* The output item that was added. For reasoning items, `encrypted_content` may be
|
|
8633
|
+
* incomplete while the item is in progress. Use the reasoning item from the
|
|
8634
|
+
* corresponding `response.output_item.done` event when passing it as input to a
|
|
8635
|
+
* subsequent request.
|
|
8572
8636
|
*/
|
|
8573
8637
|
item: BetaResponseOutputItem;
|
|
8574
8638
|
|
|
@@ -8888,9 +8952,14 @@ export namespace BetaResponseOutputText {
|
|
|
8888
8952
|
*/
|
|
8889
8953
|
export interface BetaResponseOutputTextAnnotationAddedEvent {
|
|
8890
8954
|
/**
|
|
8891
|
-
*
|
|
8955
|
+
* An annotation that applies to a span of output text.
|
|
8892
8956
|
*/
|
|
8893
|
-
annotation:
|
|
8957
|
+
annotation:
|
|
8958
|
+
| BetaResponseOutputTextAnnotationAddedEvent.FileCitation
|
|
8959
|
+
| BetaResponseOutputTextAnnotationAddedEvent.URLCitation
|
|
8960
|
+
| BetaResponseOutputTextAnnotationAddedEvent.ContainerFileCitation
|
|
8961
|
+
| BetaResponseOutputTextAnnotationAddedEvent.FilePath
|
|
8962
|
+
| null;
|
|
8894
8963
|
|
|
8895
8964
|
/**
|
|
8896
8965
|
* The index of the annotation within the content part.
|
|
@@ -8929,6 +8998,116 @@ export interface BetaResponseOutputTextAnnotationAddedEvent {
|
|
|
8929
8998
|
}
|
|
8930
8999
|
|
|
8931
9000
|
export namespace BetaResponseOutputTextAnnotationAddedEvent {
|
|
9001
|
+
/**
|
|
9002
|
+
* A citation to a file.
|
|
9003
|
+
*/
|
|
9004
|
+
export interface FileCitation {
|
|
9005
|
+
/**
|
|
9006
|
+
* The ID of the file.
|
|
9007
|
+
*/
|
|
9008
|
+
file_id: string;
|
|
9009
|
+
|
|
9010
|
+
/**
|
|
9011
|
+
* The filename of the file cited.
|
|
9012
|
+
*/
|
|
9013
|
+
filename: string;
|
|
9014
|
+
|
|
9015
|
+
/**
|
|
9016
|
+
* The index of the file in the list of files.
|
|
9017
|
+
*/
|
|
9018
|
+
index: number;
|
|
9019
|
+
|
|
9020
|
+
/**
|
|
9021
|
+
* The type of the file citation. Always `file_citation`.
|
|
9022
|
+
*/
|
|
9023
|
+
type: 'file_citation';
|
|
9024
|
+
}
|
|
9025
|
+
|
|
9026
|
+
/**
|
|
9027
|
+
* A citation for a web resource used to generate a model response.
|
|
9028
|
+
*/
|
|
9029
|
+
export interface URLCitation {
|
|
9030
|
+
/**
|
|
9031
|
+
* The index of the last character of the URL citation in the message.
|
|
9032
|
+
*/
|
|
9033
|
+
end_index: number;
|
|
9034
|
+
|
|
9035
|
+
/**
|
|
9036
|
+
* The index of the first character of the URL citation in the message.
|
|
9037
|
+
*/
|
|
9038
|
+
start_index: number;
|
|
9039
|
+
|
|
9040
|
+
/**
|
|
9041
|
+
* The title of the web resource.
|
|
9042
|
+
*/
|
|
9043
|
+
title: string;
|
|
9044
|
+
|
|
9045
|
+
/**
|
|
9046
|
+
* The type of the URL citation. Always `url_citation`.
|
|
9047
|
+
*/
|
|
9048
|
+
type: 'url_citation';
|
|
9049
|
+
|
|
9050
|
+
/**
|
|
9051
|
+
* The URL of the web resource.
|
|
9052
|
+
*/
|
|
9053
|
+
url: string;
|
|
9054
|
+
}
|
|
9055
|
+
|
|
9056
|
+
/**
|
|
9057
|
+
* A citation for a container file used to generate a model response.
|
|
9058
|
+
*/
|
|
9059
|
+
export interface ContainerFileCitation {
|
|
9060
|
+
/**
|
|
9061
|
+
* The ID of the container file.
|
|
9062
|
+
*/
|
|
9063
|
+
container_id: string;
|
|
9064
|
+
|
|
9065
|
+
/**
|
|
9066
|
+
* The index of the last character of the container file citation in the message.
|
|
9067
|
+
*/
|
|
9068
|
+
end_index: number;
|
|
9069
|
+
|
|
9070
|
+
/**
|
|
9071
|
+
* The ID of the file.
|
|
9072
|
+
*/
|
|
9073
|
+
file_id: string;
|
|
9074
|
+
|
|
9075
|
+
/**
|
|
9076
|
+
* The filename of the container file cited.
|
|
9077
|
+
*/
|
|
9078
|
+
filename: string;
|
|
9079
|
+
|
|
9080
|
+
/**
|
|
9081
|
+
* The index of the first character of the container file citation in the message.
|
|
9082
|
+
*/
|
|
9083
|
+
start_index: number;
|
|
9084
|
+
|
|
9085
|
+
/**
|
|
9086
|
+
* The type of the container file citation. Always `container_file_citation`.
|
|
9087
|
+
*/
|
|
9088
|
+
type: 'container_file_citation';
|
|
9089
|
+
}
|
|
9090
|
+
|
|
9091
|
+
/**
|
|
9092
|
+
* A path to a file.
|
|
9093
|
+
*/
|
|
9094
|
+
export interface FilePath {
|
|
9095
|
+
/**
|
|
9096
|
+
* The ID of the file.
|
|
9097
|
+
*/
|
|
9098
|
+
file_id: string;
|
|
9099
|
+
|
|
9100
|
+
/**
|
|
9101
|
+
* The index of the file in the list of files.
|
|
9102
|
+
*/
|
|
9103
|
+
index: number;
|
|
9104
|
+
|
|
9105
|
+
/**
|
|
9106
|
+
* The type of the file path. Always `file_path`.
|
|
9107
|
+
*/
|
|
9108
|
+
type: 'file_path';
|
|
9109
|
+
}
|
|
9110
|
+
|
|
8932
9111
|
/**
|
|
8933
9112
|
* The agent that owns this multi-agent streaming event.
|
|
8934
9113
|
*/
|
|
@@ -9038,6 +9217,11 @@ export interface BetaResponseReasoningItem {
|
|
|
9038
9217
|
* The encrypted content of the reasoning item. This is populated by default for
|
|
9039
9218
|
* reasoning items returned by `POST /v1/responses` and WebSocket `response.create`
|
|
9040
9219
|
* requests.
|
|
9220
|
+
*
|
|
9221
|
+
* When streaming, use the completed reasoning item and its `encrypted_content`
|
|
9222
|
+
* from the `response.output_item.done` event in subsequent requests. The
|
|
9223
|
+
* `encrypted_content` in `response.output_item.added` may be incomplete. This is
|
|
9224
|
+
* especially important when `store` is `false` or when using Zero Data Retention.
|
|
9041
9225
|
*/
|
|
9042
9226
|
encrypted_content?: string | null;
|
|
9043
9227
|
|
|
@@ -9543,191 +9727,41 @@ export namespace BetaResponseRefusalDoneEvent {
|
|
|
9543
9727
|
}
|
|
9544
9728
|
|
|
9545
9729
|
/**
|
|
9546
|
-
*
|
|
9547
|
-
* `in_progress`, `cancelled`, `queued`, or `incomplete`.
|
|
9548
|
-
*/
|
|
9549
|
-
export type BetaResponseStatus =
|
|
9550
|
-
| 'completed'
|
|
9551
|
-
| 'failed'
|
|
9552
|
-
| 'in_progress'
|
|
9553
|
-
| 'cancelled'
|
|
9554
|
-
| 'queued'
|
|
9555
|
-
| 'incomplete';
|
|
9556
|
-
|
|
9557
|
-
/**
|
|
9558
|
-
* Emitted when there is a partial audio response.
|
|
9559
|
-
*/
|
|
9560
|
-
export type BetaResponseStreamEvent =
|
|
9561
|
-
| BetaResponseAudioDeltaEvent
|
|
9562
|
-
| BetaResponseAudioDoneEvent
|
|
9563
|
-
| BetaResponseAudioTranscriptDeltaEvent
|
|
9564
|
-
| BetaResponseAudioTranscriptDoneEvent
|
|
9565
|
-
| BetaResponseCodeInterpreterCallCodeDeltaEvent
|
|
9566
|
-
| BetaResponseCodeInterpreterCallCodeDoneEvent
|
|
9567
|
-
| BetaResponseCodeInterpreterCallCompletedEvent
|
|
9568
|
-
| BetaResponseCodeInterpreterCallInProgressEvent
|
|
9569
|
-
| BetaResponseCodeInterpreterCallInterpretingEvent
|
|
9570
|
-
| BetaResponseCompletedEvent
|
|
9571
|
-
| BetaResponseContentPartAddedEvent
|
|
9572
|
-
| BetaResponseContentPartDoneEvent
|
|
9573
|
-
| BetaResponseCreatedEvent
|
|
9574
|
-
| BetaResponseErrorEvent
|
|
9575
|
-
| BetaResponseFileSearchCallCompletedEvent
|
|
9576
|
-
| BetaResponseFileSearchCallInProgressEvent
|
|
9577
|
-
| BetaResponseFileSearchCallSearchingEvent
|
|
9578
|
-
| BetaResponseFunctionCallArgumentsDeltaEvent
|
|
9579
|
-
| BetaResponseFunctionCallArgumentsDoneEvent
|
|
9580
|
-
| BetaResponseInProgressEvent
|
|
9581
|
-
| BetaResponseFailedEvent
|
|
9582
|
-
| BetaResponseIncompleteEvent
|
|
9583
|
-
| BetaResponseOutputItemAddedEvent
|
|
9584
|
-
| BetaResponseOutputItemDoneEvent
|
|
9585
|
-
| BetaResponseReasoningSummaryPartAddedEvent
|
|
9586
|
-
| BetaResponseReasoningSummaryPartDoneEvent
|
|
9587
|
-
| BetaResponseReasoningSummaryTextDeltaEvent
|
|
9588
|
-
| BetaResponseReasoningSummaryTextDoneEvent
|
|
9589
|
-
| BetaResponseReasoningTextDeltaEvent
|
|
9590
|
-
| BetaResponseReasoningTextDoneEvent
|
|
9591
|
-
| BetaResponseRefusalDeltaEvent
|
|
9592
|
-
| BetaResponseRefusalDoneEvent
|
|
9593
|
-
| BetaResponseTextDeltaEvent
|
|
9594
|
-
| BetaResponseTextDoneEvent
|
|
9595
|
-
| BetaResponseWebSearchCallCompletedEvent
|
|
9596
|
-
| BetaResponseWebSearchCallInProgressEvent
|
|
9597
|
-
| BetaResponseWebSearchCallSearchingEvent
|
|
9598
|
-
| BetaResponseImageGenCallCompletedEvent
|
|
9599
|
-
| BetaResponseImageGenCallGeneratingEvent
|
|
9600
|
-
| BetaResponseImageGenCallInProgressEvent
|
|
9601
|
-
| BetaResponseImageGenCallPartialImageEvent
|
|
9602
|
-
| BetaResponseMcpCallArgumentsDeltaEvent
|
|
9603
|
-
| BetaResponseMcpCallArgumentsDoneEvent
|
|
9604
|
-
| BetaResponseMcpCallCompletedEvent
|
|
9605
|
-
| BetaResponseMcpCallFailedEvent
|
|
9606
|
-
| BetaResponseMcpCallInProgressEvent
|
|
9607
|
-
| BetaResponseMcpListToolsCompletedEvent
|
|
9608
|
-
| BetaResponseMcpListToolsFailedEvent
|
|
9609
|
-
| BetaResponseMcpListToolsInProgressEvent
|
|
9610
|
-
| BetaResponseOutputTextAnnotationAddedEvent
|
|
9611
|
-
| BetaResponseQueuedEvent
|
|
9612
|
-
| BetaResponseCustomToolCallInputDeltaEvent
|
|
9613
|
-
| BetaResponseCustomToolCallInputDoneEvent;
|
|
9614
|
-
|
|
9615
|
-
/**
|
|
9616
|
-
* Configuration options for a text response from the model. Can be plain text or
|
|
9617
|
-
* structured JSON data. Learn more:
|
|
9618
|
-
*
|
|
9619
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
9620
|
-
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
9730
|
+
* A streaming event that indicated a shell command was added to a tool call.
|
|
9621
9731
|
*/
|
|
9622
|
-
export interface
|
|
9732
|
+
export interface BetaResponseShellCallCommandAddedEvent {
|
|
9623
9733
|
/**
|
|
9624
|
-
*
|
|
9625
|
-
*
|
|
9626
|
-
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
9627
|
-
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
9628
|
-
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
|
|
9629
|
-
*
|
|
9630
|
-
* The default format is `{ "type": "text" }` with no additional options.
|
|
9631
|
-
*
|
|
9632
|
-
* **Not recommended for gpt-4o and newer models:**
|
|
9633
|
-
*
|
|
9634
|
-
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
9635
|
-
* ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
9636
|
-
* preferred for models that support it.
|
|
9734
|
+
* The shell command that was added.
|
|
9637
9735
|
*/
|
|
9638
|
-
|
|
9736
|
+
command: string;
|
|
9639
9737
|
|
|
9640
9738
|
/**
|
|
9641
|
-
*
|
|
9642
|
-
* more concise responses, while higher values will result in more verbose
|
|
9643
|
-
* responses. Currently supported values are `low`, `medium`, and `high`. The
|
|
9644
|
-
* default is `medium`.
|
|
9739
|
+
* The index of the shell command that was added.
|
|
9645
9740
|
*/
|
|
9646
|
-
|
|
9647
|
-
}
|
|
9741
|
+
command_index: number;
|
|
9648
9742
|
|
|
9649
|
-
/**
|
|
9650
|
-
* Emitted when there is an additional text delta.
|
|
9651
|
-
*/
|
|
9652
|
-
export interface BetaResponseTextDeltaEvent {
|
|
9653
9743
|
/**
|
|
9654
|
-
* The index of the
|
|
9744
|
+
* The index of the output item that was updated.
|
|
9655
9745
|
*/
|
|
9656
|
-
|
|
9746
|
+
output_index: number;
|
|
9657
9747
|
|
|
9658
9748
|
/**
|
|
9659
|
-
* The
|
|
9749
|
+
* The sequence number of the event that was emitted.
|
|
9660
9750
|
*/
|
|
9661
|
-
|
|
9751
|
+
sequence_number: number;
|
|
9662
9752
|
|
|
9663
9753
|
/**
|
|
9664
|
-
* The
|
|
9754
|
+
* The type of the event, always `response.shell_call_command.added`.
|
|
9665
9755
|
*/
|
|
9666
|
-
|
|
9756
|
+
type: 'response.shell_call_command.added';
|
|
9667
9757
|
|
|
9668
9758
|
/**
|
|
9669
|
-
* The
|
|
9759
|
+
* The agent that owns this multi-agent streaming event.
|
|
9670
9760
|
*/
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
/**
|
|
9674
|
-
* The index of the output item that the text delta was added to.
|
|
9675
|
-
*/
|
|
9676
|
-
output_index: number;
|
|
9677
|
-
|
|
9678
|
-
/**
|
|
9679
|
-
* The sequence number for this event.
|
|
9680
|
-
*/
|
|
9681
|
-
sequence_number: number;
|
|
9682
|
-
|
|
9683
|
-
/**
|
|
9684
|
-
* The type of the event. Always `response.output_text.delta`.
|
|
9685
|
-
*/
|
|
9686
|
-
type: 'response.output_text.delta';
|
|
9687
|
-
|
|
9688
|
-
/**
|
|
9689
|
-
* The agent that owns this multi-agent streaming event.
|
|
9690
|
-
*/
|
|
9691
|
-
agent?: BetaResponseTextDeltaEvent.Agent | null;
|
|
9692
|
-
}
|
|
9693
|
-
|
|
9694
|
-
export namespace BetaResponseTextDeltaEvent {
|
|
9695
|
-
/**
|
|
9696
|
-
* A logprob is the logarithmic probability that the model assigns to producing a
|
|
9697
|
-
* particular token at a given position in the sequence. Less-negative (higher)
|
|
9698
|
-
* logprob values indicate greater model confidence in that token choice.
|
|
9699
|
-
*/
|
|
9700
|
-
export interface Logprob {
|
|
9701
|
-
/**
|
|
9702
|
-
* A possible text token.
|
|
9703
|
-
*/
|
|
9704
|
-
token: string;
|
|
9705
|
-
|
|
9706
|
-
/**
|
|
9707
|
-
* The log probability of this token.
|
|
9708
|
-
*/
|
|
9709
|
-
logprob: number;
|
|
9710
|
-
|
|
9711
|
-
/**
|
|
9712
|
-
* The log probabilities of up to 20 of the most likely tokens.
|
|
9713
|
-
*/
|
|
9714
|
-
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
9715
|
-
}
|
|
9716
|
-
|
|
9717
|
-
export namespace Logprob {
|
|
9718
|
-
export interface TopLogprob {
|
|
9719
|
-
/**
|
|
9720
|
-
* A possible text token.
|
|
9721
|
-
*/
|
|
9722
|
-
token?: string;
|
|
9723
|
-
|
|
9724
|
-
/**
|
|
9725
|
-
* The log probability of this token.
|
|
9726
|
-
*/
|
|
9727
|
-
logprob?: number;
|
|
9728
|
-
}
|
|
9729
|
-
}
|
|
9761
|
+
agent?: BetaResponseShellCallCommandAddedEvent.Agent;
|
|
9762
|
+
}
|
|
9730
9763
|
|
|
9764
|
+
export namespace BetaResponseShellCallCommandAddedEvent {
|
|
9731
9765
|
/**
|
|
9732
9766
|
* The agent that owns this multi-agent streaming event.
|
|
9733
9767
|
*/
|
|
@@ -9740,87 +9774,46 @@ export namespace BetaResponseTextDeltaEvent {
|
|
|
9740
9774
|
}
|
|
9741
9775
|
|
|
9742
9776
|
/**
|
|
9743
|
-
*
|
|
9777
|
+
* A streaming event that indicated a shell command was incrementally updated.
|
|
9744
9778
|
*/
|
|
9745
|
-
export interface
|
|
9746
|
-
/**
|
|
9747
|
-
* The index of the content part that the text content is finalized.
|
|
9748
|
-
*/
|
|
9749
|
-
content_index: number;
|
|
9750
|
-
|
|
9779
|
+
export interface BetaResponseShellCallCommandDeltaEvent {
|
|
9751
9780
|
/**
|
|
9752
|
-
* The
|
|
9781
|
+
* The index of the shell command that was updated.
|
|
9753
9782
|
*/
|
|
9754
|
-
|
|
9783
|
+
command_index: number;
|
|
9755
9784
|
|
|
9756
9785
|
/**
|
|
9757
|
-
* The
|
|
9786
|
+
* The shell command delta that was appended.
|
|
9758
9787
|
*/
|
|
9759
|
-
|
|
9788
|
+
delta: string;
|
|
9760
9789
|
|
|
9761
9790
|
/**
|
|
9762
|
-
* The index of the output item that
|
|
9791
|
+
* The index of the output item that was updated.
|
|
9763
9792
|
*/
|
|
9764
9793
|
output_index: number;
|
|
9765
9794
|
|
|
9766
9795
|
/**
|
|
9767
|
-
* The sequence number
|
|
9796
|
+
* The sequence number of the event that was emitted.
|
|
9768
9797
|
*/
|
|
9769
9798
|
sequence_number: number;
|
|
9770
9799
|
|
|
9771
9800
|
/**
|
|
9772
|
-
* The
|
|
9773
|
-
*/
|
|
9774
|
-
text: string;
|
|
9775
|
-
|
|
9776
|
-
/**
|
|
9777
|
-
* The type of the event. Always `response.output_text.done`.
|
|
9801
|
+
* The type of the event, always `response.shell_call_command.delta`.
|
|
9778
9802
|
*/
|
|
9779
|
-
type: 'response.
|
|
9803
|
+
type: 'response.shell_call_command.delta';
|
|
9780
9804
|
|
|
9781
9805
|
/**
|
|
9782
9806
|
* The agent that owns this multi-agent streaming event.
|
|
9783
9807
|
*/
|
|
9784
|
-
agent?:
|
|
9785
|
-
}
|
|
9808
|
+
agent?: BetaResponseShellCallCommandDeltaEvent.Agent;
|
|
9786
9809
|
|
|
9787
|
-
export namespace BetaResponseTextDoneEvent {
|
|
9788
9810
|
/**
|
|
9789
|
-
*
|
|
9790
|
-
* particular token at a given position in the sequence. Less-negative (higher)
|
|
9791
|
-
* logprob values indicate greater model confidence in that token choice.
|
|
9811
|
+
* An obfuscation string that was added to pad the event payload.
|
|
9792
9812
|
*/
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
* A possible text token.
|
|
9796
|
-
*/
|
|
9797
|
-
token: string;
|
|
9798
|
-
|
|
9799
|
-
/**
|
|
9800
|
-
* The log probability of this token.
|
|
9801
|
-
*/
|
|
9802
|
-
logprob: number;
|
|
9803
|
-
|
|
9804
|
-
/**
|
|
9805
|
-
* The log probabilities of up to 20 of the most likely tokens.
|
|
9806
|
-
*/
|
|
9807
|
-
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
9808
|
-
}
|
|
9809
|
-
|
|
9810
|
-
export namespace Logprob {
|
|
9811
|
-
export interface TopLogprob {
|
|
9812
|
-
/**
|
|
9813
|
-
* A possible text token.
|
|
9814
|
-
*/
|
|
9815
|
-
token?: string;
|
|
9816
|
-
|
|
9817
|
-
/**
|
|
9818
|
-
* The log probability of this token.
|
|
9819
|
-
*/
|
|
9820
|
-
logprob?: number;
|
|
9821
|
-
}
|
|
9822
|
-
}
|
|
9813
|
+
obfuscation?: string;
|
|
9814
|
+
}
|
|
9823
9815
|
|
|
9816
|
+
export namespace BetaResponseShellCallCommandDeltaEvent {
|
|
9824
9817
|
/**
|
|
9825
9818
|
* The agent that owns this multi-agent streaming event.
|
|
9826
9819
|
*/
|
|
@@ -9832,51 +9825,44 @@ export namespace BetaResponseTextDoneEvent {
|
|
|
9832
9825
|
}
|
|
9833
9826
|
}
|
|
9834
9827
|
|
|
9835
|
-
|
|
9836
|
-
|
|
9837
|
-
|
|
9838
|
-
|
|
9839
|
-
id: string;
|
|
9840
|
-
|
|
9841
|
-
/**
|
|
9842
|
-
* Arguments used for the tool search call.
|
|
9843
|
-
*/
|
|
9844
|
-
arguments: unknown;
|
|
9845
|
-
|
|
9828
|
+
/**
|
|
9829
|
+
* A streaming event that indicated a shell command was completed.
|
|
9830
|
+
*/
|
|
9831
|
+
export interface BetaResponseShellCallCommandDoneEvent {
|
|
9846
9832
|
/**
|
|
9847
|
-
* The
|
|
9833
|
+
* The final shell command that was emitted.
|
|
9848
9834
|
*/
|
|
9849
|
-
|
|
9835
|
+
command: string;
|
|
9850
9836
|
|
|
9851
9837
|
/**
|
|
9852
|
-
*
|
|
9838
|
+
* The index of the shell command that was completed.
|
|
9853
9839
|
*/
|
|
9854
|
-
|
|
9840
|
+
command_index: number;
|
|
9855
9841
|
|
|
9856
9842
|
/**
|
|
9857
|
-
* The
|
|
9843
|
+
* The index of the output item that was updated.
|
|
9858
9844
|
*/
|
|
9859
|
-
|
|
9845
|
+
output_index: number;
|
|
9860
9846
|
|
|
9861
9847
|
/**
|
|
9862
|
-
* The
|
|
9848
|
+
* The sequence number of the event that was emitted.
|
|
9863
9849
|
*/
|
|
9864
|
-
|
|
9850
|
+
sequence_number: number;
|
|
9865
9851
|
|
|
9866
9852
|
/**
|
|
9867
|
-
* The
|
|
9853
|
+
* The type of the event, always `response.shell_call_command.done`.
|
|
9868
9854
|
*/
|
|
9869
|
-
|
|
9855
|
+
type: 'response.shell_call_command.done';
|
|
9870
9856
|
|
|
9871
9857
|
/**
|
|
9872
|
-
* The
|
|
9858
|
+
* The agent that owns this multi-agent streaming event.
|
|
9873
9859
|
*/
|
|
9874
|
-
|
|
9860
|
+
agent?: BetaResponseShellCallCommandDoneEvent.Agent;
|
|
9875
9861
|
}
|
|
9876
9862
|
|
|
9877
|
-
export namespace
|
|
9863
|
+
export namespace BetaResponseShellCallCommandDoneEvent {
|
|
9878
9864
|
/**
|
|
9879
|
-
* The agent that
|
|
9865
|
+
* The agent that owns this multi-agent streaming event.
|
|
9880
9866
|
*/
|
|
9881
9867
|
export interface Agent {
|
|
9882
9868
|
/**
|
|
@@ -9886,51 +9872,64 @@ export namespace BetaResponseToolSearchCall {
|
|
|
9886
9872
|
}
|
|
9887
9873
|
}
|
|
9888
9874
|
|
|
9889
|
-
|
|
9875
|
+
/**
|
|
9876
|
+
* A streaming event that indicated shell call output was incrementally added.
|
|
9877
|
+
*/
|
|
9878
|
+
export interface BetaResponseShellCallOutputContentDeltaEvent {
|
|
9890
9879
|
/**
|
|
9891
|
-
* The
|
|
9880
|
+
* The index of the shell command that produced output.
|
|
9892
9881
|
*/
|
|
9893
|
-
|
|
9882
|
+
command_index: number;
|
|
9894
9883
|
|
|
9895
9884
|
/**
|
|
9896
|
-
* The
|
|
9885
|
+
* The stdout/stderr delta that was emitted.
|
|
9897
9886
|
*/
|
|
9898
|
-
|
|
9887
|
+
delta: BetaResponseShellCallOutputContentDeltaEvent.Delta;
|
|
9899
9888
|
|
|
9900
9889
|
/**
|
|
9901
|
-
*
|
|
9890
|
+
* The ID of the output item that was updated.
|
|
9902
9891
|
*/
|
|
9903
|
-
|
|
9892
|
+
item_id: string;
|
|
9904
9893
|
|
|
9905
9894
|
/**
|
|
9906
|
-
* The
|
|
9895
|
+
* The index of the output item that was updated.
|
|
9907
9896
|
*/
|
|
9908
|
-
|
|
9897
|
+
output_index: number;
|
|
9909
9898
|
|
|
9910
9899
|
/**
|
|
9911
|
-
* The
|
|
9900
|
+
* The sequence number of the event that was emitted.
|
|
9912
9901
|
*/
|
|
9913
|
-
|
|
9902
|
+
sequence_number: number;
|
|
9914
9903
|
|
|
9915
9904
|
/**
|
|
9916
|
-
* The type of the
|
|
9905
|
+
* The type of the event, always `response.shell_call_output_content.delta`.
|
|
9917
9906
|
*/
|
|
9918
|
-
type: '
|
|
9907
|
+
type: 'response.shell_call_output_content.delta';
|
|
9919
9908
|
|
|
9920
9909
|
/**
|
|
9921
|
-
* The agent that
|
|
9910
|
+
* The agent that owns this multi-agent streaming event.
|
|
9922
9911
|
*/
|
|
9923
|
-
agent?:
|
|
9912
|
+
agent?: BetaResponseShellCallOutputContentDeltaEvent.Agent;
|
|
9913
|
+
}
|
|
9924
9914
|
|
|
9915
|
+
export namespace BetaResponseShellCallOutputContentDeltaEvent {
|
|
9925
9916
|
/**
|
|
9926
|
-
* The
|
|
9917
|
+
* The stdout/stderr delta that was emitted.
|
|
9927
9918
|
*/
|
|
9928
|
-
|
|
9929
|
-
|
|
9919
|
+
export interface Delta {
|
|
9920
|
+
/**
|
|
9921
|
+
* The stderr delta that was emitted.
|
|
9922
|
+
*/
|
|
9923
|
+
stderr?: string;
|
|
9924
|
+
|
|
9925
|
+
/**
|
|
9926
|
+
* The stdout delta that was emitted.
|
|
9927
|
+
*/
|
|
9928
|
+
stdout?: string;
|
|
9929
|
+
}
|
|
9930
9930
|
|
|
9931
|
-
export namespace BetaResponseToolSearchOutputItem {
|
|
9932
9931
|
/**
|
|
9933
|
-
* The agent that
|
|
9932
|
+
* The agent that owns this multi-agent streaming event.
|
|
9934
9933
|
*/
|
|
9935
9934
|
export interface Agent {
|
|
9936
9935
|
/**
|
|
@@ -9940,187 +9939,302 @@ export namespace BetaResponseToolSearchOutputItem {
|
|
|
9940
9939
|
}
|
|
9941
9940
|
}
|
|
9942
9941
|
|
|
9943
|
-
|
|
9942
|
+
/**
|
|
9943
|
+
* A streaming event that indicated shell call output was completed.
|
|
9944
|
+
*/
|
|
9945
|
+
export interface BetaResponseShellCallOutputContentDoneEvent {
|
|
9944
9946
|
/**
|
|
9945
|
-
* The
|
|
9947
|
+
* The index of the shell command that produced output.
|
|
9946
9948
|
*/
|
|
9947
|
-
|
|
9949
|
+
command_index: number;
|
|
9948
9950
|
|
|
9949
9951
|
/**
|
|
9950
|
-
* The item
|
|
9952
|
+
* The ID of the output item that was updated.
|
|
9951
9953
|
*/
|
|
9952
|
-
|
|
9954
|
+
item_id: string;
|
|
9953
9955
|
|
|
9954
9956
|
/**
|
|
9955
|
-
* The
|
|
9957
|
+
* The output contents emitted for the shell command.
|
|
9956
9958
|
*/
|
|
9957
|
-
|
|
9959
|
+
output: Array<BetaResponseShellCallOutputContentDoneEvent.Output>;
|
|
9958
9960
|
|
|
9959
9961
|
/**
|
|
9960
|
-
* The
|
|
9962
|
+
* The index of the output item that was updated.
|
|
9961
9963
|
*/
|
|
9962
|
-
|
|
9964
|
+
output_index: number;
|
|
9963
9965
|
|
|
9964
9966
|
/**
|
|
9965
|
-
* The
|
|
9967
|
+
* The sequence number of the event that was emitted.
|
|
9966
9968
|
*/
|
|
9967
|
-
|
|
9969
|
+
sequence_number: number;
|
|
9968
9970
|
|
|
9969
9971
|
/**
|
|
9970
|
-
*
|
|
9972
|
+
* The type of the event, always `response.shell_call_output_content.done`.
|
|
9971
9973
|
*/
|
|
9972
|
-
|
|
9974
|
+
type: 'response.shell_call_output_content.done';
|
|
9973
9975
|
|
|
9974
9976
|
/**
|
|
9975
|
-
* The
|
|
9977
|
+
* The agent that owns this multi-agent streaming event.
|
|
9976
9978
|
*/
|
|
9977
|
-
|
|
9979
|
+
agent?: BetaResponseShellCallOutputContentDoneEvent.Agent;
|
|
9978
9980
|
}
|
|
9979
9981
|
|
|
9980
|
-
export namespace
|
|
9982
|
+
export namespace BetaResponseShellCallOutputContentDoneEvent {
|
|
9981
9983
|
/**
|
|
9982
|
-
* The
|
|
9984
|
+
* The content of a shell tool call output that was emitted.
|
|
9983
9985
|
*/
|
|
9984
|
-
export interface
|
|
9986
|
+
export interface Output {
|
|
9985
9987
|
/**
|
|
9986
|
-
*
|
|
9988
|
+
* Represents either an exit outcome (with an exit code) or a timeout outcome for a
|
|
9989
|
+
* shell call output chunk.
|
|
9987
9990
|
*/
|
|
9988
|
-
|
|
9989
|
-
}
|
|
9990
|
-
}
|
|
9991
|
-
|
|
9992
|
-
/**
|
|
9993
|
-
* Represents token usage details including input tokens, output tokens, a
|
|
9994
|
-
* breakdown of output tokens, and the total tokens used.
|
|
9995
|
-
*/
|
|
9996
|
-
export interface BetaResponseUsage {
|
|
9997
|
-
/**
|
|
9998
|
-
* The number of input tokens.
|
|
9999
|
-
*/
|
|
10000
|
-
input_tokens: number;
|
|
10001
|
-
|
|
10002
|
-
/**
|
|
10003
|
-
* A detailed breakdown of the input tokens.
|
|
10004
|
-
*/
|
|
10005
|
-
input_tokens_details: BetaResponseUsage.InputTokensDetails;
|
|
10006
|
-
|
|
10007
|
-
/**
|
|
10008
|
-
* The number of output tokens.
|
|
10009
|
-
*/
|
|
10010
|
-
output_tokens: number;
|
|
10011
|
-
|
|
10012
|
-
/**
|
|
10013
|
-
* A detailed breakdown of the output tokens.
|
|
10014
|
-
*/
|
|
10015
|
-
output_tokens_details: BetaResponseUsage.OutputTokensDetails;
|
|
10016
|
-
|
|
10017
|
-
/**
|
|
10018
|
-
* The total number of tokens used.
|
|
10019
|
-
*/
|
|
10020
|
-
total_tokens: number;
|
|
10021
|
-
}
|
|
9991
|
+
outcome: Output.Timeout | Output.Exit;
|
|
10022
9992
|
|
|
10023
|
-
export namespace BetaResponseUsage {
|
|
10024
|
-
/**
|
|
10025
|
-
* A detailed breakdown of the input tokens.
|
|
10026
|
-
*/
|
|
10027
|
-
export interface InputTokensDetails {
|
|
10028
9993
|
/**
|
|
10029
|
-
* The
|
|
9994
|
+
* The standard error output that was captured.
|
|
10030
9995
|
*/
|
|
10031
|
-
|
|
9996
|
+
stderr: string;
|
|
10032
9997
|
|
|
10033
9998
|
/**
|
|
10034
|
-
* The
|
|
10035
|
-
* [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
|
|
9999
|
+
* The standard output that was captured.
|
|
10036
10000
|
*/
|
|
10037
|
-
|
|
10001
|
+
stdout: string;
|
|
10002
|
+
|
|
10003
|
+
/**
|
|
10004
|
+
* The identifier of the actor that created the item.
|
|
10005
|
+
*/
|
|
10006
|
+
created_by?: string;
|
|
10007
|
+
}
|
|
10008
|
+
|
|
10009
|
+
export namespace Output {
|
|
10010
|
+
/**
|
|
10011
|
+
* Indicates that the shell call exceeded its configured time limit.
|
|
10012
|
+
*/
|
|
10013
|
+
export interface Timeout {
|
|
10014
|
+
/**
|
|
10015
|
+
* The outcome type. Always `timeout`.
|
|
10016
|
+
*/
|
|
10017
|
+
type: 'timeout';
|
|
10018
|
+
}
|
|
10019
|
+
|
|
10020
|
+
/**
|
|
10021
|
+
* Indicates that the shell commands finished and returned an exit code.
|
|
10022
|
+
*/
|
|
10023
|
+
export interface Exit {
|
|
10024
|
+
/**
|
|
10025
|
+
* Exit code from the shell process.
|
|
10026
|
+
*/
|
|
10027
|
+
exit_code: number;
|
|
10028
|
+
|
|
10029
|
+
/**
|
|
10030
|
+
* The outcome type. Always `exit`.
|
|
10031
|
+
*/
|
|
10032
|
+
type: 'exit';
|
|
10033
|
+
}
|
|
10038
10034
|
}
|
|
10039
10035
|
|
|
10040
10036
|
/**
|
|
10041
|
-
*
|
|
10037
|
+
* The agent that owns this multi-agent streaming event.
|
|
10042
10038
|
*/
|
|
10043
|
-
export interface
|
|
10039
|
+
export interface Agent {
|
|
10044
10040
|
/**
|
|
10045
|
-
* The
|
|
10041
|
+
* The canonical name of the agent that produced this item.
|
|
10046
10042
|
*/
|
|
10047
|
-
|
|
10043
|
+
agent_name: string;
|
|
10048
10044
|
}
|
|
10049
10045
|
}
|
|
10050
10046
|
|
|
10051
10047
|
/**
|
|
10052
|
-
*
|
|
10048
|
+
* The status of the response generation. One of `completed`, `failed`,
|
|
10049
|
+
* `in_progress`, `cancelled`, `queued`, or `incomplete`.
|
|
10053
10050
|
*/
|
|
10054
|
-
export
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10051
|
+
export type BetaResponseStatus =
|
|
10052
|
+
| 'completed'
|
|
10053
|
+
| 'failed'
|
|
10054
|
+
| 'in_progress'
|
|
10055
|
+
| 'cancelled'
|
|
10056
|
+
| 'queued'
|
|
10057
|
+
| 'incomplete';
|
|
10058
|
+
|
|
10059
|
+
/**
|
|
10060
|
+
* Event emitted while a response is streamed.
|
|
10061
|
+
*/
|
|
10062
|
+
export type BetaResponseStreamEvent =
|
|
10063
|
+
| BetaResponseAudioDeltaEvent
|
|
10064
|
+
| BetaResponseAudioDoneEvent
|
|
10065
|
+
| BetaResponseAudioTranscriptDeltaEvent
|
|
10066
|
+
| BetaResponseAudioTranscriptDoneEvent
|
|
10067
|
+
| BetaResponseCodeInterpreterCallCodeDeltaEvent
|
|
10068
|
+
| BetaResponseCodeInterpreterCallCodeDoneEvent
|
|
10069
|
+
| BetaResponseCodeInterpreterCallCompletedEvent
|
|
10070
|
+
| BetaResponseCodeInterpreterCallInProgressEvent
|
|
10071
|
+
| BetaResponseCodeInterpreterCallInterpretingEvent
|
|
10072
|
+
| BetaResponseCompletedEvent
|
|
10073
|
+
| BetaResponseContentPartAddedEvent
|
|
10074
|
+
| BetaResponseContentPartDoneEvent
|
|
10075
|
+
| BetaResponseCreatedEvent
|
|
10076
|
+
| BetaResponseErrorEvent
|
|
10077
|
+
| BetaResponseFileSearchCallCompletedEvent
|
|
10078
|
+
| BetaResponseFileSearchCallInProgressEvent
|
|
10079
|
+
| BetaResponseFileSearchCallSearchingEvent
|
|
10080
|
+
| BetaResponseFunctionCallArgumentsDeltaEvent
|
|
10081
|
+
| BetaResponseFunctionCallArgumentsDoneEvent
|
|
10082
|
+
| BetaResponseShellCallCommandAddedEvent
|
|
10083
|
+
| BetaResponseShellCallCommandDeltaEvent
|
|
10084
|
+
| BetaResponseShellCallCommandDoneEvent
|
|
10085
|
+
| BetaResponseShellCallOutputContentDeltaEvent
|
|
10086
|
+
| BetaResponseShellCallOutputContentDoneEvent
|
|
10087
|
+
| BetaResponseInProgressEvent
|
|
10088
|
+
| BetaResponseFailedEvent
|
|
10089
|
+
| BetaResponseIncompleteEvent
|
|
10090
|
+
| BetaResponseOutputItemAddedEvent
|
|
10091
|
+
| BetaResponseOutputItemDoneEvent
|
|
10092
|
+
| BetaResponseReasoningSummaryPartAddedEvent
|
|
10093
|
+
| BetaResponseReasoningSummaryPartDoneEvent
|
|
10094
|
+
| BetaResponseReasoningSummaryTextDeltaEvent
|
|
10095
|
+
| BetaResponseReasoningSummaryTextDoneEvent
|
|
10096
|
+
| BetaResponseReasoningTextDeltaEvent
|
|
10097
|
+
| BetaResponseReasoningTextDoneEvent
|
|
10098
|
+
| BetaResponseRefusalDeltaEvent
|
|
10099
|
+
| BetaResponseRefusalDoneEvent
|
|
10100
|
+
| BetaResponseTextDeltaEvent
|
|
10101
|
+
| BetaResponseTextDoneEvent
|
|
10102
|
+
| BetaResponseWebSearchCallCompletedEvent
|
|
10103
|
+
| BetaResponseWebSearchCallInProgressEvent
|
|
10104
|
+
| BetaResponseWebSearchCallSearchingEvent
|
|
10105
|
+
| BetaResponseImageGenCallCompletedEvent
|
|
10106
|
+
| BetaResponseImageGenCallGeneratingEvent
|
|
10107
|
+
| BetaResponseImageGenCallInProgressEvent
|
|
10108
|
+
| BetaResponseImageGenCallPartialImageEvent
|
|
10109
|
+
| BetaResponseMcpCallArgumentsDeltaEvent
|
|
10110
|
+
| BetaResponseMcpCallArgumentsDoneEvent
|
|
10111
|
+
| BetaResponseMcpCallCompletedEvent
|
|
10112
|
+
| BetaResponseMcpCallFailedEvent
|
|
10113
|
+
| BetaResponseMcpCallInProgressEvent
|
|
10114
|
+
| BetaResponseMcpListToolsCompletedEvent
|
|
10115
|
+
| BetaResponseMcpListToolsFailedEvent
|
|
10116
|
+
| BetaResponseMcpListToolsInProgressEvent
|
|
10117
|
+
| BetaResponseOutputTextAnnotationAddedEvent
|
|
10118
|
+
| BetaResponseQueuedEvent
|
|
10119
|
+
| BetaResponseCustomToolCallInputDeltaEvent
|
|
10120
|
+
| BetaResponseCustomToolCallInputDoneEvent;
|
|
10059
10121
|
|
|
10122
|
+
/**
|
|
10123
|
+
* Configuration options for a text response from the model. Can be plain text or
|
|
10124
|
+
* structured JSON data. Learn more:
|
|
10125
|
+
*
|
|
10126
|
+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
10127
|
+
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
10128
|
+
*/
|
|
10129
|
+
export interface BetaResponseTextConfig {
|
|
10060
10130
|
/**
|
|
10061
|
-
*
|
|
10131
|
+
* An object specifying the format that the model must output.
|
|
10132
|
+
*
|
|
10133
|
+
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
10134
|
+
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
10135
|
+
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
|
|
10136
|
+
*
|
|
10137
|
+
* The default format is `{ "type": "text" }` with no additional options.
|
|
10138
|
+
*
|
|
10139
|
+
* **Not recommended for gpt-4o and newer models:**
|
|
10140
|
+
*
|
|
10141
|
+
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
10142
|
+
* ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
10143
|
+
* preferred for models that support it.
|
|
10062
10144
|
*/
|
|
10063
|
-
|
|
10145
|
+
format?: BetaResponseFormatTextConfig;
|
|
10064
10146
|
|
|
10065
10147
|
/**
|
|
10066
|
-
*
|
|
10148
|
+
* Constrains the verbosity of the model's response. Lower values will result in
|
|
10149
|
+
* more concise responses, while higher values will result in more verbose
|
|
10150
|
+
* responses. Currently supported values are `low`, `medium`, and `high`. The
|
|
10151
|
+
* default is `medium`.
|
|
10067
10152
|
*/
|
|
10068
|
-
|
|
10153
|
+
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
10154
|
+
}
|
|
10069
10155
|
|
|
10156
|
+
/**
|
|
10157
|
+
* Emitted when there is an additional text delta.
|
|
10158
|
+
*/
|
|
10159
|
+
export interface BetaResponseTextDeltaEvent {
|
|
10070
10160
|
/**
|
|
10071
|
-
* The
|
|
10161
|
+
* The index of the content part that the text delta was added to.
|
|
10072
10162
|
*/
|
|
10073
|
-
|
|
10163
|
+
content_index: number;
|
|
10074
10164
|
|
|
10075
10165
|
/**
|
|
10076
|
-
* The
|
|
10166
|
+
* The text delta that was added.
|
|
10077
10167
|
*/
|
|
10078
|
-
|
|
10079
|
-
}
|
|
10168
|
+
delta: string;
|
|
10080
10169
|
|
|
10081
|
-
export namespace BetaResponseWebSearchCallCompletedEvent {
|
|
10082
10170
|
/**
|
|
10083
|
-
* The
|
|
10171
|
+
* The ID of the output item that the text delta was added to.
|
|
10084
10172
|
*/
|
|
10085
|
-
|
|
10086
|
-
/**
|
|
10087
|
-
* The canonical name of the agent that produced this item.
|
|
10088
|
-
*/
|
|
10089
|
-
agent_name: string;
|
|
10090
|
-
}
|
|
10091
|
-
}
|
|
10173
|
+
item_id: string;
|
|
10092
10174
|
|
|
10093
|
-
/**
|
|
10094
|
-
* Emitted when a web search call is initiated.
|
|
10095
|
-
*/
|
|
10096
|
-
export interface BetaResponseWebSearchCallInProgressEvent {
|
|
10097
10175
|
/**
|
|
10098
|
-
*
|
|
10176
|
+
* The log probabilities of the tokens in the delta.
|
|
10099
10177
|
*/
|
|
10100
|
-
|
|
10178
|
+
logprobs: Array<BetaResponseTextDeltaEvent.Logprob>;
|
|
10101
10179
|
|
|
10102
10180
|
/**
|
|
10103
|
-
* The index of the output item that the
|
|
10181
|
+
* The index of the output item that the text delta was added to.
|
|
10104
10182
|
*/
|
|
10105
10183
|
output_index: number;
|
|
10106
10184
|
|
|
10107
10185
|
/**
|
|
10108
|
-
* The sequence number
|
|
10186
|
+
* The sequence number for this event.
|
|
10109
10187
|
*/
|
|
10110
10188
|
sequence_number: number;
|
|
10111
10189
|
|
|
10112
10190
|
/**
|
|
10113
|
-
* The type of the event. Always `response.
|
|
10191
|
+
* The type of the event. Always `response.output_text.delta`.
|
|
10114
10192
|
*/
|
|
10115
|
-
type: 'response.
|
|
10193
|
+
type: 'response.output_text.delta';
|
|
10116
10194
|
|
|
10117
10195
|
/**
|
|
10118
10196
|
* The agent that owns this multi-agent streaming event.
|
|
10119
10197
|
*/
|
|
10120
|
-
agent?:
|
|
10198
|
+
agent?: BetaResponseTextDeltaEvent.Agent | null;
|
|
10121
10199
|
}
|
|
10122
10200
|
|
|
10123
|
-
export namespace
|
|
10201
|
+
export namespace BetaResponseTextDeltaEvent {
|
|
10202
|
+
/**
|
|
10203
|
+
* A logprob is the logarithmic probability that the model assigns to producing a
|
|
10204
|
+
* particular token at a given position in the sequence. Less-negative (higher)
|
|
10205
|
+
* logprob values indicate greater model confidence in that token choice.
|
|
10206
|
+
*/
|
|
10207
|
+
export interface Logprob {
|
|
10208
|
+
/**
|
|
10209
|
+
* A possible text token.
|
|
10210
|
+
*/
|
|
10211
|
+
token: string;
|
|
10212
|
+
|
|
10213
|
+
/**
|
|
10214
|
+
* The log probability of this token.
|
|
10215
|
+
*/
|
|
10216
|
+
logprob: number;
|
|
10217
|
+
|
|
10218
|
+
/**
|
|
10219
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
10220
|
+
*/
|
|
10221
|
+
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
10222
|
+
}
|
|
10223
|
+
|
|
10224
|
+
export namespace Logprob {
|
|
10225
|
+
export interface TopLogprob {
|
|
10226
|
+
/**
|
|
10227
|
+
* A possible text token.
|
|
10228
|
+
*/
|
|
10229
|
+
token?: string;
|
|
10230
|
+
|
|
10231
|
+
/**
|
|
10232
|
+
* The log probability of this token.
|
|
10233
|
+
*/
|
|
10234
|
+
logprob?: number;
|
|
10235
|
+
}
|
|
10236
|
+
}
|
|
10237
|
+
|
|
10124
10238
|
/**
|
|
10125
10239
|
* The agent that owns this multi-agent streaming event.
|
|
10126
10240
|
*/
|
|
@@ -10133,737 +10247,1915 @@ export namespace BetaResponseWebSearchCallInProgressEvent {
|
|
|
10133
10247
|
}
|
|
10134
10248
|
|
|
10135
10249
|
/**
|
|
10136
|
-
* Emitted when
|
|
10250
|
+
* Emitted when text content is finalized.
|
|
10137
10251
|
*/
|
|
10138
|
-
export interface
|
|
10252
|
+
export interface BetaResponseTextDoneEvent {
|
|
10139
10253
|
/**
|
|
10140
|
-
*
|
|
10254
|
+
* The index of the content part that the text content is finalized.
|
|
10255
|
+
*/
|
|
10256
|
+
content_index: number;
|
|
10257
|
+
|
|
10258
|
+
/**
|
|
10259
|
+
* The ID of the output item that the text content is finalized.
|
|
10141
10260
|
*/
|
|
10142
10261
|
item_id: string;
|
|
10143
10262
|
|
|
10144
10263
|
/**
|
|
10145
|
-
* The
|
|
10264
|
+
* The log probabilities of the tokens in the delta.
|
|
10265
|
+
*/
|
|
10266
|
+
logprobs: Array<BetaResponseTextDoneEvent.Logprob>;
|
|
10267
|
+
|
|
10268
|
+
/**
|
|
10269
|
+
* The index of the output item that the text content is finalized.
|
|
10146
10270
|
*/
|
|
10147
10271
|
output_index: number;
|
|
10148
10272
|
|
|
10149
10273
|
/**
|
|
10150
|
-
* The sequence number
|
|
10274
|
+
* The sequence number for this event.
|
|
10151
10275
|
*/
|
|
10152
10276
|
sequence_number: number;
|
|
10153
10277
|
|
|
10154
10278
|
/**
|
|
10155
|
-
* The
|
|
10279
|
+
* The text content that is finalized.
|
|
10156
10280
|
*/
|
|
10157
|
-
|
|
10281
|
+
text: string;
|
|
10158
10282
|
|
|
10159
10283
|
/**
|
|
10160
|
-
* The
|
|
10284
|
+
* The type of the event. Always `response.output_text.done`.
|
|
10161
10285
|
*/
|
|
10162
|
-
|
|
10163
|
-
}
|
|
10286
|
+
type: 'response.output_text.done';
|
|
10164
10287
|
|
|
10165
|
-
export namespace BetaResponseWebSearchCallSearchingEvent {
|
|
10166
10288
|
/**
|
|
10167
10289
|
* The agent that owns this multi-agent streaming event.
|
|
10168
10290
|
*/
|
|
10291
|
+
agent?: BetaResponseTextDoneEvent.Agent | null;
|
|
10292
|
+
}
|
|
10293
|
+
|
|
10294
|
+
export namespace BetaResponseTextDoneEvent {
|
|
10295
|
+
/**
|
|
10296
|
+
* A logprob is the logarithmic probability that the model assigns to producing a
|
|
10297
|
+
* particular token at a given position in the sequence. Less-negative (higher)
|
|
10298
|
+
* logprob values indicate greater model confidence in that token choice.
|
|
10299
|
+
*/
|
|
10300
|
+
export interface Logprob {
|
|
10301
|
+
/**
|
|
10302
|
+
* A possible text token.
|
|
10303
|
+
*/
|
|
10304
|
+
token: string;
|
|
10305
|
+
|
|
10306
|
+
/**
|
|
10307
|
+
* The log probability of this token.
|
|
10308
|
+
*/
|
|
10309
|
+
logprob: number;
|
|
10310
|
+
|
|
10311
|
+
/**
|
|
10312
|
+
* The log probabilities of up to 20 of the most likely tokens.
|
|
10313
|
+
*/
|
|
10314
|
+
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
10315
|
+
}
|
|
10316
|
+
|
|
10317
|
+
export namespace Logprob {
|
|
10318
|
+
export interface TopLogprob {
|
|
10319
|
+
/**
|
|
10320
|
+
* A possible text token.
|
|
10321
|
+
*/
|
|
10322
|
+
token?: string;
|
|
10323
|
+
|
|
10324
|
+
/**
|
|
10325
|
+
* The log probability of this token.
|
|
10326
|
+
*/
|
|
10327
|
+
logprob?: number;
|
|
10328
|
+
}
|
|
10329
|
+
}
|
|
10330
|
+
|
|
10331
|
+
/**
|
|
10332
|
+
* The agent that owns this multi-agent streaming event.
|
|
10333
|
+
*/
|
|
10334
|
+
export interface Agent {
|
|
10335
|
+
/**
|
|
10336
|
+
* The canonical name of the agent that produced this item.
|
|
10337
|
+
*/
|
|
10338
|
+
agent_name: string;
|
|
10339
|
+
}
|
|
10340
|
+
}
|
|
10341
|
+
|
|
10342
|
+
export interface BetaResponseToolSearchCall {
|
|
10343
|
+
/**
|
|
10344
|
+
* The unique ID of the tool search call item.
|
|
10345
|
+
*/
|
|
10346
|
+
id: string;
|
|
10347
|
+
|
|
10348
|
+
/**
|
|
10349
|
+
* Arguments used for the tool search call.
|
|
10350
|
+
*/
|
|
10351
|
+
arguments: unknown;
|
|
10352
|
+
|
|
10353
|
+
/**
|
|
10354
|
+
* The unique ID of the tool search call generated by the model.
|
|
10355
|
+
*/
|
|
10356
|
+
call_id: string | null;
|
|
10357
|
+
|
|
10358
|
+
/**
|
|
10359
|
+
* Whether tool search was executed by the server or by the client.
|
|
10360
|
+
*/
|
|
10361
|
+
execution: 'server' | 'client';
|
|
10362
|
+
|
|
10363
|
+
/**
|
|
10364
|
+
* The status of the tool search call item that was recorded.
|
|
10365
|
+
*/
|
|
10366
|
+
status: 'in_progress' | 'completed' | 'incomplete';
|
|
10367
|
+
|
|
10368
|
+
/**
|
|
10369
|
+
* The type of the item. Always `tool_search_call`.
|
|
10370
|
+
*/
|
|
10371
|
+
type: 'tool_search_call';
|
|
10372
|
+
|
|
10373
|
+
/**
|
|
10374
|
+
* The agent that produced this item.
|
|
10375
|
+
*/
|
|
10376
|
+
agent?: BetaResponseToolSearchCall.Agent;
|
|
10377
|
+
|
|
10378
|
+
/**
|
|
10379
|
+
* The identifier of the actor that created the item.
|
|
10380
|
+
*/
|
|
10381
|
+
created_by?: string;
|
|
10382
|
+
}
|
|
10383
|
+
|
|
10384
|
+
export namespace BetaResponseToolSearchCall {
|
|
10385
|
+
/**
|
|
10386
|
+
* The agent that produced this item.
|
|
10387
|
+
*/
|
|
10388
|
+
export interface Agent {
|
|
10389
|
+
/**
|
|
10390
|
+
* The canonical name of the agent that produced this item.
|
|
10391
|
+
*/
|
|
10392
|
+
agent_name: string;
|
|
10393
|
+
}
|
|
10394
|
+
}
|
|
10395
|
+
|
|
10396
|
+
export interface BetaResponseToolSearchOutputItem {
|
|
10397
|
+
/**
|
|
10398
|
+
* The unique ID of the tool search output item.
|
|
10399
|
+
*/
|
|
10400
|
+
id: string;
|
|
10401
|
+
|
|
10402
|
+
/**
|
|
10403
|
+
* The unique ID of the tool search call generated by the model.
|
|
10404
|
+
*/
|
|
10405
|
+
call_id: string | null;
|
|
10406
|
+
|
|
10407
|
+
/**
|
|
10408
|
+
* Whether tool search was executed by the server or by the client.
|
|
10409
|
+
*/
|
|
10410
|
+
execution: 'server' | 'client';
|
|
10411
|
+
|
|
10412
|
+
/**
|
|
10413
|
+
* The status of the tool search output item that was recorded.
|
|
10414
|
+
*/
|
|
10415
|
+
status: 'in_progress' | 'completed' | 'incomplete';
|
|
10416
|
+
|
|
10417
|
+
/**
|
|
10418
|
+
* The loaded tool definitions returned by tool search.
|
|
10419
|
+
*/
|
|
10420
|
+
tools: Array<BetaTool>;
|
|
10421
|
+
|
|
10422
|
+
/**
|
|
10423
|
+
* The type of the item. Always `tool_search_output`.
|
|
10424
|
+
*/
|
|
10425
|
+
type: 'tool_search_output';
|
|
10426
|
+
|
|
10427
|
+
/**
|
|
10428
|
+
* The agent that produced this item.
|
|
10429
|
+
*/
|
|
10430
|
+
agent?: BetaResponseToolSearchOutputItem.Agent;
|
|
10431
|
+
|
|
10432
|
+
/**
|
|
10433
|
+
* The identifier of the actor that created the item.
|
|
10434
|
+
*/
|
|
10435
|
+
created_by?: string;
|
|
10436
|
+
}
|
|
10437
|
+
|
|
10438
|
+
export namespace BetaResponseToolSearchOutputItem {
|
|
10439
|
+
/**
|
|
10440
|
+
* The agent that produced this item.
|
|
10441
|
+
*/
|
|
10442
|
+
export interface Agent {
|
|
10443
|
+
/**
|
|
10444
|
+
* The canonical name of the agent that produced this item.
|
|
10445
|
+
*/
|
|
10446
|
+
agent_name: string;
|
|
10447
|
+
}
|
|
10448
|
+
}
|
|
10449
|
+
|
|
10450
|
+
export interface BetaResponseToolSearchOutputItemParam {
|
|
10451
|
+
/**
|
|
10452
|
+
* The loaded tool definitions returned by the tool search output.
|
|
10453
|
+
*/
|
|
10454
|
+
tools: Array<BetaTool>;
|
|
10455
|
+
|
|
10456
|
+
/**
|
|
10457
|
+
* The item type. Always `tool_search_output`.
|
|
10458
|
+
*/
|
|
10459
|
+
type: 'tool_search_output';
|
|
10460
|
+
|
|
10461
|
+
/**
|
|
10462
|
+
* The unique ID of this tool search output.
|
|
10463
|
+
*/
|
|
10464
|
+
id?: string | null;
|
|
10465
|
+
|
|
10466
|
+
/**
|
|
10467
|
+
* The agent that produced this item.
|
|
10468
|
+
*/
|
|
10469
|
+
agent?: BetaResponseToolSearchOutputItemParam.Agent | null;
|
|
10470
|
+
|
|
10471
|
+
/**
|
|
10472
|
+
* The unique ID of the tool search call generated by the model.
|
|
10473
|
+
*/
|
|
10474
|
+
call_id?: string | null;
|
|
10475
|
+
|
|
10476
|
+
/**
|
|
10477
|
+
* Whether tool search was executed by the server or by the client.
|
|
10478
|
+
*/
|
|
10479
|
+
execution?: 'server' | 'client';
|
|
10480
|
+
|
|
10481
|
+
/**
|
|
10482
|
+
* The status of the tool search output.
|
|
10483
|
+
*/
|
|
10484
|
+
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
10485
|
+
}
|
|
10486
|
+
|
|
10487
|
+
export namespace BetaResponseToolSearchOutputItemParam {
|
|
10488
|
+
/**
|
|
10489
|
+
* The agent that produced this item.
|
|
10490
|
+
*/
|
|
10169
10491
|
export interface Agent {
|
|
10170
10492
|
/**
|
|
10171
|
-
* The canonical name of the agent that produced this item.
|
|
10493
|
+
* The canonical name of the agent that produced this item.
|
|
10494
|
+
*/
|
|
10495
|
+
agent_name: string;
|
|
10496
|
+
}
|
|
10497
|
+
}
|
|
10498
|
+
|
|
10499
|
+
/**
|
|
10500
|
+
* Represents token usage details including input tokens, output tokens, a
|
|
10501
|
+
* breakdown of output tokens, and the total tokens used.
|
|
10502
|
+
*/
|
|
10503
|
+
export interface BetaResponseUsage {
|
|
10504
|
+
/**
|
|
10505
|
+
* The number of input tokens.
|
|
10506
|
+
*/
|
|
10507
|
+
input_tokens: number;
|
|
10508
|
+
|
|
10509
|
+
/**
|
|
10510
|
+
* A detailed breakdown of the input tokens.
|
|
10511
|
+
*/
|
|
10512
|
+
input_tokens_details: BetaResponseUsage.InputTokensDetails;
|
|
10513
|
+
|
|
10514
|
+
/**
|
|
10515
|
+
* The number of output tokens.
|
|
10516
|
+
*/
|
|
10517
|
+
output_tokens: number;
|
|
10518
|
+
|
|
10519
|
+
/**
|
|
10520
|
+
* A detailed breakdown of the output tokens.
|
|
10521
|
+
*/
|
|
10522
|
+
output_tokens_details: BetaResponseUsage.OutputTokensDetails;
|
|
10523
|
+
|
|
10524
|
+
/**
|
|
10525
|
+
* The total number of tokens used.
|
|
10526
|
+
*/
|
|
10527
|
+
total_tokens: number;
|
|
10528
|
+
}
|
|
10529
|
+
|
|
10530
|
+
export namespace BetaResponseUsage {
|
|
10531
|
+
/**
|
|
10532
|
+
* A detailed breakdown of the input tokens.
|
|
10533
|
+
*/
|
|
10534
|
+
export interface InputTokensDetails {
|
|
10535
|
+
/**
|
|
10536
|
+
* The number of input tokens that were written to the cache.
|
|
10537
|
+
*/
|
|
10538
|
+
cache_write_tokens: number;
|
|
10539
|
+
|
|
10540
|
+
/**
|
|
10541
|
+
* The number of tokens that were retrieved from the cache.
|
|
10542
|
+
* [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
|
|
10543
|
+
*/
|
|
10544
|
+
cached_tokens: number;
|
|
10545
|
+
}
|
|
10546
|
+
|
|
10547
|
+
/**
|
|
10548
|
+
* A detailed breakdown of the output tokens.
|
|
10549
|
+
*/
|
|
10550
|
+
export interface OutputTokensDetails {
|
|
10551
|
+
/**
|
|
10552
|
+
* The number of reasoning tokens.
|
|
10553
|
+
*/
|
|
10554
|
+
reasoning_tokens: number;
|
|
10555
|
+
}
|
|
10556
|
+
}
|
|
10557
|
+
|
|
10558
|
+
/**
|
|
10559
|
+
* Emitted when a web search call is completed.
|
|
10560
|
+
*/
|
|
10561
|
+
export interface BetaResponseWebSearchCallCompletedEvent {
|
|
10562
|
+
/**
|
|
10563
|
+
* Unique ID for the output item associated with the web search call.
|
|
10564
|
+
*/
|
|
10565
|
+
item_id: string;
|
|
10566
|
+
|
|
10567
|
+
/**
|
|
10568
|
+
* The index of the output item that the web search call is associated with.
|
|
10569
|
+
*/
|
|
10570
|
+
output_index: number;
|
|
10571
|
+
|
|
10572
|
+
/**
|
|
10573
|
+
* The sequence number of the web search call being processed.
|
|
10574
|
+
*/
|
|
10575
|
+
sequence_number: number;
|
|
10576
|
+
|
|
10577
|
+
/**
|
|
10578
|
+
* The type of the event. Always `response.web_search_call.completed`.
|
|
10579
|
+
*/
|
|
10580
|
+
type: 'response.web_search_call.completed';
|
|
10581
|
+
|
|
10582
|
+
/**
|
|
10583
|
+
* The agent that owns this multi-agent streaming event.
|
|
10584
|
+
*/
|
|
10585
|
+
agent?: BetaResponseWebSearchCallCompletedEvent.Agent | null;
|
|
10586
|
+
}
|
|
10587
|
+
|
|
10588
|
+
export namespace BetaResponseWebSearchCallCompletedEvent {
|
|
10589
|
+
/**
|
|
10590
|
+
* The agent that owns this multi-agent streaming event.
|
|
10591
|
+
*/
|
|
10592
|
+
export interface Agent {
|
|
10593
|
+
/**
|
|
10594
|
+
* The canonical name of the agent that produced this item.
|
|
10595
|
+
*/
|
|
10596
|
+
agent_name: string;
|
|
10597
|
+
}
|
|
10598
|
+
}
|
|
10599
|
+
|
|
10600
|
+
/**
|
|
10601
|
+
* Emitted when a web search call is initiated.
|
|
10602
|
+
*/
|
|
10603
|
+
export interface BetaResponseWebSearchCallInProgressEvent {
|
|
10604
|
+
/**
|
|
10605
|
+
* Unique ID for the output item associated with the web search call.
|
|
10606
|
+
*/
|
|
10607
|
+
item_id: string;
|
|
10608
|
+
|
|
10609
|
+
/**
|
|
10610
|
+
* The index of the output item that the web search call is associated with.
|
|
10611
|
+
*/
|
|
10612
|
+
output_index: number;
|
|
10613
|
+
|
|
10614
|
+
/**
|
|
10615
|
+
* The sequence number of the web search call being processed.
|
|
10616
|
+
*/
|
|
10617
|
+
sequence_number: number;
|
|
10618
|
+
|
|
10619
|
+
/**
|
|
10620
|
+
* The type of the event. Always `response.web_search_call.in_progress`.
|
|
10621
|
+
*/
|
|
10622
|
+
type: 'response.web_search_call.in_progress';
|
|
10623
|
+
|
|
10624
|
+
/**
|
|
10625
|
+
* The agent that owns this multi-agent streaming event.
|
|
10626
|
+
*/
|
|
10627
|
+
agent?: BetaResponseWebSearchCallInProgressEvent.Agent | null;
|
|
10628
|
+
}
|
|
10629
|
+
|
|
10630
|
+
export namespace BetaResponseWebSearchCallInProgressEvent {
|
|
10631
|
+
/**
|
|
10632
|
+
* The agent that owns this multi-agent streaming event.
|
|
10633
|
+
*/
|
|
10634
|
+
export interface Agent {
|
|
10635
|
+
/**
|
|
10636
|
+
* The canonical name of the agent that produced this item.
|
|
10637
|
+
*/
|
|
10638
|
+
agent_name: string;
|
|
10639
|
+
}
|
|
10640
|
+
}
|
|
10641
|
+
|
|
10642
|
+
/**
|
|
10643
|
+
* Emitted when a web search call is executing.
|
|
10644
|
+
*/
|
|
10645
|
+
export interface BetaResponseWebSearchCallSearchingEvent {
|
|
10646
|
+
/**
|
|
10647
|
+
* Unique ID for the output item associated with the web search call.
|
|
10648
|
+
*/
|
|
10649
|
+
item_id: string;
|
|
10650
|
+
|
|
10651
|
+
/**
|
|
10652
|
+
* The index of the output item that the web search call is associated with.
|
|
10653
|
+
*/
|
|
10654
|
+
output_index: number;
|
|
10655
|
+
|
|
10656
|
+
/**
|
|
10657
|
+
* The sequence number of the web search call being processed.
|
|
10658
|
+
*/
|
|
10659
|
+
sequence_number: number;
|
|
10660
|
+
|
|
10661
|
+
/**
|
|
10662
|
+
* The type of the event. Always `response.web_search_call.searching`.
|
|
10663
|
+
*/
|
|
10664
|
+
type: 'response.web_search_call.searching';
|
|
10665
|
+
|
|
10666
|
+
/**
|
|
10667
|
+
* The agent that owns this multi-agent streaming event.
|
|
10668
|
+
*/
|
|
10669
|
+
agent?: BetaResponseWebSearchCallSearchingEvent.Agent | null;
|
|
10670
|
+
}
|
|
10671
|
+
|
|
10672
|
+
export namespace BetaResponseWebSearchCallSearchingEvent {
|
|
10673
|
+
/**
|
|
10674
|
+
* The agent that owns this multi-agent streaming event.
|
|
10675
|
+
*/
|
|
10676
|
+
export interface Agent {
|
|
10677
|
+
/**
|
|
10678
|
+
* The canonical name of the agent that produced this item.
|
|
10679
|
+
*/
|
|
10680
|
+
agent_name: string;
|
|
10681
|
+
}
|
|
10682
|
+
}
|
|
10683
|
+
|
|
10684
|
+
/**
|
|
10685
|
+
* Client events accepted by the Responses WebSocket server.
|
|
10686
|
+
*/
|
|
10687
|
+
export type BetaResponsesClientEvent = BetaResponsesClientEvent.ResponseCreate | BetaResponseInjectEvent;
|
|
10688
|
+
|
|
10689
|
+
export namespace BetaResponsesClientEvent {
|
|
10690
|
+
/**
|
|
10691
|
+
* Client event for creating a response over a persistent WebSocket connection.
|
|
10692
|
+
* This payload uses the same top-level fields as `POST /v1/responses`, plus
|
|
10693
|
+
* WebSocket-only envelope metadata.
|
|
10694
|
+
*
|
|
10695
|
+
* Notes:
|
|
10696
|
+
*
|
|
10697
|
+
* - `stream` is implicit over WebSocket and should not be sent.
|
|
10698
|
+
* - `background` is not supported over WebSocket.
|
|
10699
|
+
* - `stream_id` is WebSocket-only and is not part of `POST /v1/responses`.
|
|
10700
|
+
*/
|
|
10701
|
+
export interface ResponseCreate {
|
|
10702
|
+
/**
|
|
10703
|
+
* The type of the client event. Always `response.create`.
|
|
10704
|
+
*/
|
|
10705
|
+
type: 'response.create';
|
|
10706
|
+
|
|
10707
|
+
/**
|
|
10708
|
+
* Whether to run the model response in the background.
|
|
10709
|
+
* [Learn more](https://platform.openai.com/docs/guides/background).
|
|
10710
|
+
*/
|
|
10711
|
+
background?: boolean | null;
|
|
10712
|
+
|
|
10713
|
+
/**
|
|
10714
|
+
* Context management configuration for this request.
|
|
10715
|
+
*/
|
|
10716
|
+
context_management?: Array<ResponseCreate.ContextManagement> | null;
|
|
10717
|
+
|
|
10718
|
+
/**
|
|
10719
|
+
* The conversation that this response belongs to. Items from this conversation are
|
|
10720
|
+
* prepended to `input_items` for this response request. Input items and output
|
|
10721
|
+
* items from this response are automatically added to this conversation after this
|
|
10722
|
+
* response completes.
|
|
10723
|
+
*/
|
|
10724
|
+
conversation?: string | ResponsesAPI.BetaResponseConversationParam | null;
|
|
10725
|
+
|
|
10726
|
+
/**
|
|
10727
|
+
* Specify additional output data to include in the model response. Currently
|
|
10728
|
+
* supported values are:
|
|
10729
|
+
*
|
|
10730
|
+
* - `web_search_call.action.sources`: Include the sources of the web search tool
|
|
10731
|
+
* call.
|
|
10732
|
+
* - `code_interpreter_call.outputs`: Includes the outputs of python code execution
|
|
10733
|
+
* in code interpreter tool call items.
|
|
10734
|
+
* - `computer_call_output.output.image_url`: Include image urls from the computer
|
|
10735
|
+
* call output.
|
|
10736
|
+
* - `file_search_call.results`: Include the search results of the file search tool
|
|
10737
|
+
* call.
|
|
10738
|
+
* - `message.input_image.image_url`: Include image urls from the input message.
|
|
10739
|
+
* - `message.output_text.logprobs`: Include logprobs with assistant messages.
|
|
10740
|
+
* - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
|
|
10741
|
+
* tokens in reasoning item outputs. This enables reasoning items to be used in
|
|
10742
|
+
* multi-turn conversations when using the Responses API statelessly (like when
|
|
10743
|
+
* the `store` parameter is set to `false`, or when an organization is enrolled
|
|
10744
|
+
* in the zero data retention program).
|
|
10745
|
+
*/
|
|
10746
|
+
include?: Array<ResponsesAPI.BetaResponseIncludable> | null;
|
|
10747
|
+
|
|
10748
|
+
/**
|
|
10749
|
+
* Text, image, or file inputs to the model, used to generate a response.
|
|
10750
|
+
*
|
|
10751
|
+
* Learn more:
|
|
10752
|
+
*
|
|
10753
|
+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
10754
|
+
* - [Image inputs](https://platform.openai.com/docs/guides/images)
|
|
10755
|
+
* - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
|
|
10756
|
+
* - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
|
|
10757
|
+
* - [Function calling](https://platform.openai.com/docs/guides/function-calling)
|
|
10758
|
+
*/
|
|
10759
|
+
input?: string | ResponsesAPI.BetaResponseInput;
|
|
10760
|
+
|
|
10761
|
+
/**
|
|
10762
|
+
* A system (or developer) message inserted into the model's context.
|
|
10763
|
+
*
|
|
10764
|
+
* When using along with `previous_response_id`, the instructions from a previous
|
|
10765
|
+
* response will not be carried over to the next response. This makes it simple to
|
|
10766
|
+
* swap out system (or developer) messages in new responses.
|
|
10767
|
+
*/
|
|
10768
|
+
instructions?: string | null;
|
|
10769
|
+
|
|
10770
|
+
/**
|
|
10771
|
+
* An upper bound for the number of tokens that can be generated for a response,
|
|
10772
|
+
* including visible output tokens and
|
|
10773
|
+
* [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
|
|
10774
|
+
*/
|
|
10775
|
+
max_output_tokens?: number | null;
|
|
10776
|
+
|
|
10777
|
+
/**
|
|
10778
|
+
* The maximum number of total calls to built-in tools that can be processed in a
|
|
10779
|
+
* response. This maximum number applies across all built-in tool calls, not per
|
|
10780
|
+
* individual tool. Any further attempts to call a tool by the model will be
|
|
10781
|
+
* ignored.
|
|
10782
|
+
*/
|
|
10783
|
+
max_tool_calls?: number | null;
|
|
10784
|
+
|
|
10785
|
+
/**
|
|
10786
|
+
* Set of 16 key-value pairs that can be attached to an object. This can be useful
|
|
10787
|
+
* for storing additional information about the object in a structured format, and
|
|
10788
|
+
* querying for objects via API or the dashboard.
|
|
10789
|
+
*
|
|
10790
|
+
* Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
10791
|
+
* a maximum length of 512 characters.
|
|
10792
|
+
*/
|
|
10793
|
+
metadata?: { [key: string]: string } | null;
|
|
10794
|
+
|
|
10795
|
+
/**
|
|
10796
|
+
* Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a
|
|
10797
|
+
* wide range of models with different capabilities, performance characteristics,
|
|
10798
|
+
* and price points. Refer to the
|
|
10799
|
+
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
10800
|
+
* available models.
|
|
10801
|
+
*/
|
|
10802
|
+
model?:
|
|
10803
|
+
| 'gpt-5.6-sol'
|
|
10804
|
+
| 'gpt-5.6-terra'
|
|
10805
|
+
| 'gpt-5.6-luna'
|
|
10806
|
+
| 'gpt-5.5'
|
|
10807
|
+
| 'gpt-5.5-2026-04-23'
|
|
10808
|
+
| 'gpt-5.4'
|
|
10809
|
+
| 'gpt-5.4-mini'
|
|
10810
|
+
| 'gpt-5.4-nano'
|
|
10811
|
+
| 'gpt-5.4-mini-2026-03-17'
|
|
10812
|
+
| 'gpt-5.4-nano-2026-03-17'
|
|
10813
|
+
| 'gpt-5.3-chat-latest'
|
|
10814
|
+
| 'gpt-5.2'
|
|
10815
|
+
| 'gpt-5.2-2025-12-11'
|
|
10816
|
+
| 'gpt-5.2-chat-latest'
|
|
10817
|
+
| 'gpt-5.2-pro'
|
|
10818
|
+
| 'gpt-5.2-pro-2025-12-11'
|
|
10819
|
+
| 'gpt-5.1'
|
|
10820
|
+
| 'gpt-5.1-2025-11-13'
|
|
10821
|
+
| 'gpt-5.1-codex'
|
|
10822
|
+
| 'gpt-5.1-mini'
|
|
10823
|
+
| 'gpt-5.1-chat-latest'
|
|
10824
|
+
| 'gpt-5'
|
|
10825
|
+
| 'gpt-5-mini'
|
|
10826
|
+
| 'gpt-5-nano'
|
|
10827
|
+
| 'gpt-5-2025-08-07'
|
|
10828
|
+
| 'gpt-5-mini-2025-08-07'
|
|
10829
|
+
| 'gpt-5-nano-2025-08-07'
|
|
10830
|
+
| 'gpt-5-chat-latest'
|
|
10831
|
+
| 'gpt-4.1'
|
|
10832
|
+
| 'gpt-4.1-mini'
|
|
10833
|
+
| 'gpt-4.1-nano'
|
|
10834
|
+
| 'gpt-4.1-2025-04-14'
|
|
10835
|
+
| 'gpt-4.1-mini-2025-04-14'
|
|
10836
|
+
| 'gpt-4.1-nano-2025-04-14'
|
|
10837
|
+
| 'o4-mini'
|
|
10838
|
+
| 'o4-mini-2025-04-16'
|
|
10839
|
+
| 'o3'
|
|
10840
|
+
| 'o3-2025-04-16'
|
|
10841
|
+
| 'o3-mini'
|
|
10842
|
+
| 'o3-mini-2025-01-31'
|
|
10843
|
+
| 'o1'
|
|
10844
|
+
| 'o1-2024-12-17'
|
|
10845
|
+
| 'o1-preview'
|
|
10846
|
+
| 'o1-preview-2024-09-12'
|
|
10847
|
+
| 'o1-mini'
|
|
10848
|
+
| 'o1-mini-2024-09-12'
|
|
10849
|
+
| 'gpt-4o'
|
|
10850
|
+
| 'gpt-4o-2024-11-20'
|
|
10851
|
+
| 'gpt-4o-2024-08-06'
|
|
10852
|
+
| 'gpt-4o-2024-05-13'
|
|
10853
|
+
| 'gpt-4o-audio-preview'
|
|
10854
|
+
| 'gpt-4o-audio-preview-2024-10-01'
|
|
10855
|
+
| 'gpt-4o-audio-preview-2024-12-17'
|
|
10856
|
+
| 'gpt-4o-audio-preview-2025-06-03'
|
|
10857
|
+
| 'gpt-4o-mini-audio-preview'
|
|
10858
|
+
| 'gpt-4o-mini-audio-preview-2024-12-17'
|
|
10859
|
+
| 'gpt-4o-search-preview'
|
|
10860
|
+
| 'gpt-4o-mini-search-preview'
|
|
10861
|
+
| 'gpt-4o-search-preview-2025-03-11'
|
|
10862
|
+
| 'gpt-4o-mini-search-preview-2025-03-11'
|
|
10863
|
+
| 'chatgpt-4o-latest'
|
|
10864
|
+
| 'codex-mini-latest'
|
|
10865
|
+
| 'gpt-4o-mini'
|
|
10866
|
+
| 'gpt-4o-mini-2024-07-18'
|
|
10867
|
+
| 'gpt-4-turbo'
|
|
10868
|
+
| 'gpt-4-turbo-2024-04-09'
|
|
10869
|
+
| 'gpt-4-0125-preview'
|
|
10870
|
+
| 'gpt-4-turbo-preview'
|
|
10871
|
+
| 'gpt-4-1106-preview'
|
|
10872
|
+
| 'gpt-4-vision-preview'
|
|
10873
|
+
| 'gpt-4'
|
|
10874
|
+
| 'gpt-4-0314'
|
|
10875
|
+
| 'gpt-4-0613'
|
|
10876
|
+
| 'gpt-4-32k'
|
|
10877
|
+
| 'gpt-4-32k-0314'
|
|
10878
|
+
| 'gpt-4-32k-0613'
|
|
10879
|
+
| 'gpt-3.5-turbo'
|
|
10880
|
+
| 'gpt-3.5-turbo-16k'
|
|
10881
|
+
| 'gpt-3.5-turbo-0301'
|
|
10882
|
+
| 'gpt-3.5-turbo-0613'
|
|
10883
|
+
| 'gpt-3.5-turbo-1106'
|
|
10884
|
+
| 'gpt-3.5-turbo-0125'
|
|
10885
|
+
| 'gpt-3.5-turbo-16k-0613'
|
|
10886
|
+
| 'o1-pro'
|
|
10887
|
+
| 'o1-pro-2025-03-19'
|
|
10888
|
+
| 'o3-pro'
|
|
10889
|
+
| 'o3-pro-2025-06-10'
|
|
10890
|
+
| 'o3-deep-research'
|
|
10891
|
+
| 'o3-deep-research-2025-06-26'
|
|
10892
|
+
| 'o4-mini-deep-research'
|
|
10893
|
+
| 'o4-mini-deep-research-2025-06-26'
|
|
10894
|
+
| 'computer-use-preview'
|
|
10895
|
+
| 'computer-use-preview-2025-03-11'
|
|
10896
|
+
| 'gpt-5.5-pro'
|
|
10897
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
10898
|
+
| 'gpt-5-codex'
|
|
10899
|
+
| 'gpt-5-pro'
|
|
10900
|
+
| 'gpt-5-pro-2025-10-06'
|
|
10901
|
+
| 'gpt-5.1-codex-max'
|
|
10902
|
+
| 'gpt-daybreak-blue-latest'
|
|
10903
|
+
| 'gpt-daybreak-red-latest'
|
|
10904
|
+
| 'gpt-5.6-cyber'
|
|
10905
|
+
| (string & {});
|
|
10906
|
+
|
|
10907
|
+
/**
|
|
10908
|
+
* Configuration for running moderation on the input and output of this response.
|
|
10909
|
+
*/
|
|
10910
|
+
moderation?: ResponseCreate.Moderation | null;
|
|
10911
|
+
|
|
10912
|
+
/**
|
|
10913
|
+
* Configuration for server-hosted multi-agent execution.
|
|
10914
|
+
*/
|
|
10915
|
+
multi_agent?: ResponseCreate.MultiAgent | null;
|
|
10916
|
+
|
|
10917
|
+
/**
|
|
10918
|
+
* Whether to allow the model to run tool calls in parallel.
|
|
10919
|
+
*/
|
|
10920
|
+
parallel_tool_calls?: boolean | null;
|
|
10921
|
+
|
|
10922
|
+
/**
|
|
10923
|
+
* The unique ID of the previous response to the model. Use this to create
|
|
10924
|
+
* multi-turn conversations. Learn more about
|
|
10925
|
+
* [conversation state](https://platform.openai.com/docs/guides/conversation-state).
|
|
10926
|
+
* Cannot be used in conjunction with `conversation`.
|
|
10927
|
+
*/
|
|
10928
|
+
previous_response_id?: string | null;
|
|
10929
|
+
|
|
10930
|
+
/**
|
|
10931
|
+
* Reference to a prompt template and its variables.
|
|
10932
|
+
* [Learn more](https://platform.openai.com/docs/guides/text?api-mode=responses#reusable-prompts).
|
|
10933
|
+
*/
|
|
10934
|
+
prompt?: ResponsesAPI.BetaResponsePrompt | null;
|
|
10935
|
+
|
|
10936
|
+
/**
|
|
10937
|
+
* Used by OpenAI to cache responses for similar requests to optimize your cache
|
|
10938
|
+
* hit rates. Replaces the `user` field.
|
|
10939
|
+
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
|
|
10940
|
+
*/
|
|
10941
|
+
prompt_cache_key?: string | null;
|
|
10942
|
+
|
|
10943
|
+
/**
|
|
10944
|
+
* Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
10945
|
+
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
10946
|
+
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
10947
|
+
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
10948
|
+
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
10949
|
+
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
10950
|
+
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
10951
|
+
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
10952
|
+
* for current details.
|
|
10953
|
+
*/
|
|
10954
|
+
prompt_cache_options?: ResponseCreate.PromptCacheOptions;
|
|
10955
|
+
|
|
10956
|
+
/**
|
|
10957
|
+
* @deprecated Deprecated. Use `prompt_cache_options.ttl` instead.
|
|
10958
|
+
*
|
|
10959
|
+
* The retention policy for the prompt cache. Set to `24h` to enable extended
|
|
10960
|
+
* prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
10961
|
+
* of 24 hours.
|
|
10962
|
+
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
10963
|
+
* This field expresses a maximum retention policy, while
|
|
10964
|
+
* `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
|
|
10965
|
+
* are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
|
|
10966
|
+
* models, only `24h` is supported.
|
|
10967
|
+
*
|
|
10968
|
+
* For older models that support both `in_memory` and `24h`, the default depends on
|
|
10969
|
+
* your organization's data retention policy:
|
|
10970
|
+
*
|
|
10971
|
+
* - Organizations without ZDR enabled default to `24h`.
|
|
10972
|
+
* - Organizations with ZDR enabled default to `in_memory` when
|
|
10973
|
+
* `prompt_cache_retention` is not specified.
|
|
10974
|
+
*/
|
|
10975
|
+
prompt_cache_retention?: 'in_memory' | '24h' | null;
|
|
10976
|
+
|
|
10977
|
+
/**
|
|
10978
|
+
* **gpt-5 and o-series models only**
|
|
10979
|
+
*
|
|
10980
|
+
* Configuration options for
|
|
10981
|
+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
10982
|
+
*/
|
|
10983
|
+
reasoning?: ResponseCreate.Reasoning | null;
|
|
10984
|
+
|
|
10985
|
+
/**
|
|
10986
|
+
* A stable identifier used to help detect users of your application that may be
|
|
10987
|
+
* violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
10988
|
+
* identifies each user, with a maximum length of 64 characters. We recommend
|
|
10989
|
+
* hashing their username or email address, in order to avoid sending us any
|
|
10990
|
+
* identifying information.
|
|
10991
|
+
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
10992
|
+
*/
|
|
10993
|
+
safety_identifier?: string | null;
|
|
10994
|
+
|
|
10995
|
+
/**
|
|
10996
|
+
* Specifies the processing type used for serving the request.
|
|
10997
|
+
*
|
|
10998
|
+
* - If set to 'auto', then the request will be processed with the service tier
|
|
10999
|
+
* configured in the Project settings. Unless otherwise configured, the Project
|
|
11000
|
+
* will use 'default'.
|
|
11001
|
+
* - If set to 'default', then the request will be processed with the standard
|
|
11002
|
+
* pricing and performance for the selected model.
|
|
11003
|
+
* - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
11004
|
+
* then the request will be processed with the Flex Processing service tier.
|
|
11005
|
+
* - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
11006
|
+
* include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
11007
|
+
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
11008
|
+
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
11009
|
+
* request.
|
|
11010
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
11011
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
11012
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
11013
|
+
* `service_tier=ultrafast`.
|
|
11014
|
+
* - When not set, the default behavior is 'auto'.
|
|
11015
|
+
*
|
|
11016
|
+
* When the `service_tier` parameter is set, the response body will include the
|
|
11017
|
+
* `service_tier` value based on the processing mode actually used to serve the
|
|
11018
|
+
* request. This response value may be different from the value set in the
|
|
11019
|
+
* parameter.
|
|
11020
|
+
*/
|
|
11021
|
+
service_tier?: ResponsesAPI.BetaServiceTier | null;
|
|
11022
|
+
|
|
11023
|
+
/**
|
|
11024
|
+
* Whether to store the generated model response for later retrieval via API.
|
|
11025
|
+
*/
|
|
11026
|
+
store?: boolean | null;
|
|
11027
|
+
|
|
11028
|
+
/**
|
|
11029
|
+
* If set to true, the model response data will be streamed to the client as it is
|
|
11030
|
+
* generated using
|
|
11031
|
+
* [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
|
|
11032
|
+
* See the
|
|
11033
|
+
* [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
|
|
11034
|
+
* for more information.
|
|
11035
|
+
*/
|
|
11036
|
+
stream?: boolean | null;
|
|
11037
|
+
|
|
11038
|
+
/**
|
|
11039
|
+
* The WebSocket lane for this response. Requests with the same `stream_id` are
|
|
11040
|
+
* processed FIFO, and events for the response echo the same `stream_id`.
|
|
11041
|
+
*
|
|
11042
|
+
* `stream_id` controls routing; `previous_response_id` controls conversation
|
|
11043
|
+
* lineage, so a new lane can fork from a response created on another lane.
|
|
11044
|
+
*/
|
|
11045
|
+
stream_id?: string;
|
|
11046
|
+
|
|
11047
|
+
/**
|
|
11048
|
+
* Options for streaming responses. Only set this when you set `stream: true`.
|
|
11049
|
+
*/
|
|
11050
|
+
stream_options?: ResponseCreate.StreamOptions | null;
|
|
11051
|
+
|
|
11052
|
+
/**
|
|
11053
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will
|
|
11054
|
+
* make the output more random, while lower values like 0.2 will make it more
|
|
11055
|
+
* focused and deterministic. We generally recommend altering this or `top_p` but
|
|
11056
|
+
* not both.
|
|
11057
|
+
*/
|
|
11058
|
+
temperature?: number | null;
|
|
11059
|
+
|
|
11060
|
+
/**
|
|
11061
|
+
* Configuration options for a text response from the model. Can be plain text or
|
|
11062
|
+
* structured JSON data. Learn more:
|
|
11063
|
+
*
|
|
11064
|
+
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
11065
|
+
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
11066
|
+
*/
|
|
11067
|
+
text?: ResponsesAPI.BetaResponseTextConfig;
|
|
11068
|
+
|
|
11069
|
+
/**
|
|
11070
|
+
* How the model should select which tool (or tools) to use when generating a
|
|
11071
|
+
* response. See the `tools` parameter to see how to specify which tools the model
|
|
11072
|
+
* can call.
|
|
11073
|
+
*/
|
|
11074
|
+
tool_choice?:
|
|
11075
|
+
| ResponsesAPI.BetaToolChoiceOptions
|
|
11076
|
+
| ResponsesAPI.BetaToolChoiceAllowed
|
|
11077
|
+
| ResponsesAPI.BetaToolChoiceTypes
|
|
11078
|
+
| ResponsesAPI.BetaToolChoiceFunction
|
|
11079
|
+
| ResponsesAPI.BetaToolChoiceMcp
|
|
11080
|
+
| ResponsesAPI.BetaToolChoiceCustom
|
|
11081
|
+
| ResponseCreate.BetaSpecificProgrammaticToolCallingParam
|
|
11082
|
+
| ResponsesAPI.BetaToolChoiceApplyPatch
|
|
11083
|
+
| ResponsesAPI.BetaToolChoiceShell;
|
|
11084
|
+
|
|
11085
|
+
/**
|
|
11086
|
+
* An array of tools the model may call while generating a response. You can
|
|
11087
|
+
* specify which tool to use by setting the `tool_choice` parameter.
|
|
11088
|
+
*
|
|
11089
|
+
* We support the following categories of tools:
|
|
11090
|
+
*
|
|
11091
|
+
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
11092
|
+
* capabilities, like
|
|
11093
|
+
* [web search](https://platform.openai.com/docs/guides/tools-web-search) or
|
|
11094
|
+
* [file search](https://platform.openai.com/docs/guides/tools-file-search).
|
|
11095
|
+
* Learn more about
|
|
11096
|
+
* [built-in tools](https://platform.openai.com/docs/guides/tools).
|
|
11097
|
+
* - **MCP Tools**: Integrations with third-party systems via custom MCP servers or
|
|
11098
|
+
* predefined connectors such as Google Drive and SharePoint. Learn more about
|
|
11099
|
+
* [MCP Tools](https://platform.openai.com/docs/guides/tools-connectors-mcp).
|
|
11100
|
+
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
11101
|
+
* the model to call your own code with strongly typed arguments and outputs.
|
|
11102
|
+
* Learn more about
|
|
11103
|
+
* [function calling](https://platform.openai.com/docs/guides/function-calling).
|
|
11104
|
+
* You can also use custom tools to call your own code.
|
|
11105
|
+
*/
|
|
11106
|
+
tools?: Array<ResponsesAPI.BetaTool>;
|
|
11107
|
+
|
|
11108
|
+
/**
|
|
11109
|
+
* An integer between 0 and 20 specifying the maximum number of most likely tokens
|
|
11110
|
+
* to return at each token position, each with an associated log probability. In
|
|
11111
|
+
* some cases, the number of returned tokens may be fewer than requested.
|
|
11112
|
+
*/
|
|
11113
|
+
top_logprobs?: number | null;
|
|
11114
|
+
|
|
11115
|
+
/**
|
|
11116
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the
|
|
11117
|
+
* model considers the results of the tokens with top_p probability mass. So 0.1
|
|
11118
|
+
* means only the tokens comprising the top 10% probability mass are considered.
|
|
11119
|
+
*
|
|
11120
|
+
* We generally recommend altering this or `temperature` but not both.
|
|
11121
|
+
*/
|
|
11122
|
+
top_p?: number | null;
|
|
11123
|
+
|
|
11124
|
+
/**
|
|
11125
|
+
* @deprecated The truncation strategy to use for the model response.
|
|
11126
|
+
*
|
|
11127
|
+
* - `auto`: If the input to this Response exceeds the model's context window size,
|
|
11128
|
+
* the model will truncate the response to fit the context window by dropping
|
|
11129
|
+
* items from the beginning of the conversation.
|
|
11130
|
+
* - `disabled` (default): If the input size will exceed the context window size
|
|
11131
|
+
* for a model, the request will fail with a 400 error.
|
|
11132
|
+
*/
|
|
11133
|
+
truncation?: 'auto' | 'disabled' | null;
|
|
11134
|
+
|
|
11135
|
+
/**
|
|
11136
|
+
* @deprecated This field is being replaced by `safety_identifier` and
|
|
11137
|
+
* `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching
|
|
11138
|
+
* optimizations. A stable identifier for your end-users. Used to boost cache hit
|
|
11139
|
+
* rates by better bucketing similar requests and to help OpenAI detect and prevent
|
|
11140
|
+
* abuse.
|
|
11141
|
+
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
11142
|
+
*/
|
|
11143
|
+
user?: string;
|
|
11144
|
+
}
|
|
11145
|
+
|
|
11146
|
+
export namespace ResponseCreate {
|
|
11147
|
+
export interface ContextManagement {
|
|
11148
|
+
/**
|
|
11149
|
+
* The context management entry type. Currently only 'compaction' is supported.
|
|
11150
|
+
*/
|
|
11151
|
+
type: string;
|
|
11152
|
+
|
|
11153
|
+
/**
|
|
11154
|
+
* Token threshold at which compaction should be triggered for this entry.
|
|
11155
|
+
*/
|
|
11156
|
+
compact_threshold?: number | null;
|
|
11157
|
+
}
|
|
11158
|
+
|
|
11159
|
+
/**
|
|
11160
|
+
* Configuration for running moderation on the input and output of this response.
|
|
11161
|
+
*/
|
|
11162
|
+
export interface Moderation {
|
|
11163
|
+
/**
|
|
11164
|
+
* The moderation model to use for moderated completions, e.g.
|
|
11165
|
+
* 'omni-moderation-latest'.
|
|
11166
|
+
*/
|
|
11167
|
+
model: string;
|
|
11168
|
+
|
|
11169
|
+
/**
|
|
11170
|
+
* The policy to apply to moderated response input and output.
|
|
11171
|
+
*/
|
|
11172
|
+
policy?: Moderation.Policy | null;
|
|
11173
|
+
}
|
|
11174
|
+
|
|
11175
|
+
export namespace Moderation {
|
|
11176
|
+
/**
|
|
11177
|
+
* The policy to apply to moderated response input and output.
|
|
11178
|
+
*/
|
|
11179
|
+
export interface Policy {
|
|
11180
|
+
/**
|
|
11181
|
+
* The moderation policy for the response input.
|
|
11182
|
+
*/
|
|
11183
|
+
input?: Policy.Input | null;
|
|
11184
|
+
|
|
11185
|
+
/**
|
|
11186
|
+
* The moderation policy for the response output.
|
|
11187
|
+
*/
|
|
11188
|
+
output?: Policy.Output | null;
|
|
11189
|
+
}
|
|
11190
|
+
|
|
11191
|
+
export namespace Policy {
|
|
11192
|
+
/**
|
|
11193
|
+
* The moderation policy for the response input.
|
|
11194
|
+
*/
|
|
11195
|
+
export interface Input {
|
|
11196
|
+
mode: 'score' | 'block';
|
|
11197
|
+
}
|
|
11198
|
+
|
|
11199
|
+
/**
|
|
11200
|
+
* The moderation policy for the response output.
|
|
11201
|
+
*/
|
|
11202
|
+
export interface Output {
|
|
11203
|
+
mode: 'score' | 'block';
|
|
11204
|
+
}
|
|
11205
|
+
}
|
|
11206
|
+
}
|
|
11207
|
+
|
|
11208
|
+
/**
|
|
11209
|
+
* Configuration for server-hosted multi-agent execution.
|
|
11210
|
+
*/
|
|
11211
|
+
export interface MultiAgent {
|
|
11212
|
+
/**
|
|
11213
|
+
* Whether to enable server-hosted multi-agent execution for this response.
|
|
11214
|
+
*/
|
|
11215
|
+
enabled: boolean;
|
|
11216
|
+
|
|
11217
|
+
/**
|
|
11218
|
+
* `max_concurrent_subagents` sets the maximum number of subagents that can be
|
|
11219
|
+
* active simultaneously across the entire agent tree. It includes all
|
|
11220
|
+
* descendants—children, grandchildren, and deeper subagents—but excludes the root
|
|
11221
|
+
* agent. The API does not impose a fixed upper bound on this setting. The default
|
|
11222
|
+
* is `3`, which is recommended for most workloads. Multi-agent runs also have no
|
|
11223
|
+
* fixed limit on tree depth or the total number of subagents created during a run.
|
|
11224
|
+
*/
|
|
11225
|
+
max_concurrent_subagents?: number;
|
|
11226
|
+
}
|
|
11227
|
+
|
|
11228
|
+
/**
|
|
11229
|
+
* Options for prompt caching. Supported for `gpt-5.6` and later models. By
|
|
11230
|
+
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
11231
|
+
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
11232
|
+
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
11233
|
+
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
11234
|
+
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
11235
|
+
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
11236
|
+
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
11237
|
+
* for current details.
|
|
11238
|
+
*/
|
|
11239
|
+
export interface PromptCacheOptions {
|
|
11240
|
+
/**
|
|
11241
|
+
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
11242
|
+
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
11243
|
+
* and writes up to the latest three explicit breakpoints in the request. With
|
|
11244
|
+
* `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
11245
|
+
* latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
11246
|
+
* request does not use prompt caching.
|
|
11247
|
+
*/
|
|
11248
|
+
mode?: 'implicit' | 'explicit';
|
|
11249
|
+
|
|
11250
|
+
/**
|
|
11251
|
+
* The minimum lifetime applied to every implicit and explicit cache breakpoint
|
|
11252
|
+
* written by the request. Defaults to `30m`, which is currently the only supported
|
|
11253
|
+
* value. The backend may retain cache entries for longer.
|
|
11254
|
+
*/
|
|
11255
|
+
ttl?: '30m';
|
|
11256
|
+
}
|
|
11257
|
+
|
|
11258
|
+
/**
|
|
11259
|
+
* **gpt-5 and o-series models only**
|
|
11260
|
+
*
|
|
11261
|
+
* Configuration options for
|
|
11262
|
+
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
11263
|
+
*/
|
|
11264
|
+
export interface Reasoning {
|
|
11265
|
+
/**
|
|
11266
|
+
* Controls which reasoning items are rendered back to the model on later turns. If
|
|
11267
|
+
* omitted or set to `auto`, the model determines the context mode. The `gpt-5.6`
|
|
11268
|
+
* model family defaults to `all_turns`; earlier models default to `current_turn`.
|
|
11269
|
+
*
|
|
11270
|
+
* When returned on a response, this is the effective reasoning context mode used
|
|
11271
|
+
* for the response.
|
|
11272
|
+
*/
|
|
11273
|
+
context?: 'auto' | 'current_turn' | 'all_turns' | null;
|
|
11274
|
+
|
|
11275
|
+
/**
|
|
11276
|
+
* Constrains effort on reasoning for reasoning models. Currently supported values
|
|
11277
|
+
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
11278
|
+
* reasoning effort can result in faster responses and fewer tokens used on
|
|
11279
|
+
* reasoning in a response. Not all reasoning models support every value. See the
|
|
11280
|
+
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
11281
|
+
* model-specific support.
|
|
11282
|
+
*/
|
|
11283
|
+
effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
|
|
11284
|
+
|
|
11285
|
+
/**
|
|
11286
|
+
* @deprecated **Deprecated:** use `summary` instead.
|
|
11287
|
+
*
|
|
11288
|
+
* A summary of the reasoning performed by the model. This can be useful for
|
|
11289
|
+
* debugging and understanding the model's reasoning process. One of `auto`,
|
|
11290
|
+
* `concise`, or `detailed`.
|
|
11291
|
+
*/
|
|
11292
|
+
generate_summary?: 'auto' | 'concise' | 'detailed' | null;
|
|
11293
|
+
|
|
11294
|
+
/**
|
|
11295
|
+
* Controls the reasoning execution mode for the request.
|
|
11296
|
+
*
|
|
11297
|
+
* When returned on a response, this is the effective execution mode.
|
|
11298
|
+
*/
|
|
11299
|
+
mode?: (string & {}) | 'standard' | 'pro';
|
|
11300
|
+
|
|
11301
|
+
/**
|
|
11302
|
+
* A summary of the reasoning performed by the model. This can be useful for
|
|
11303
|
+
* debugging and understanding the model's reasoning process. One of `auto`,
|
|
11304
|
+
* `concise`, or `detailed`.
|
|
11305
|
+
*
|
|
11306
|
+
* `concise` is supported for `computer-use-preview` models and all reasoning
|
|
11307
|
+
* models after `gpt-5`.
|
|
11308
|
+
*/
|
|
11309
|
+
summary?: 'auto' | 'concise' | 'detailed' | null;
|
|
11310
|
+
}
|
|
11311
|
+
|
|
11312
|
+
/**
|
|
11313
|
+
* Options for streaming responses. Only set this when you set `stream: true`.
|
|
11314
|
+
*/
|
|
11315
|
+
export interface StreamOptions {
|
|
11316
|
+
/**
|
|
11317
|
+
* When true, stream obfuscation will be enabled. Stream obfuscation adds random
|
|
11318
|
+
* characters to an `obfuscation` field on streaming delta events to normalize
|
|
11319
|
+
* payload sizes as a mitigation to certain side-channel attacks. These obfuscation
|
|
11320
|
+
* fields are included by default, but add a small amount of overhead to the data
|
|
11321
|
+
* stream. You can set `include_obfuscation` to false to optimize for bandwidth if
|
|
11322
|
+
* you trust the network links between your application and the OpenAI API.
|
|
11323
|
+
*/
|
|
11324
|
+
include_obfuscation?: boolean;
|
|
11325
|
+
}
|
|
11326
|
+
|
|
11327
|
+
export interface BetaSpecificProgrammaticToolCallingParam {
|
|
11328
|
+
/**
|
|
11329
|
+
* The tool to call. Always `programmatic_tool_calling`.
|
|
11330
|
+
*/
|
|
11331
|
+
type: 'programmatic_tool_calling';
|
|
11332
|
+
}
|
|
11333
|
+
}
|
|
11334
|
+
}
|
|
11335
|
+
|
|
11336
|
+
/**
|
|
11337
|
+
* Server events emitted by the Responses WebSocket server.
|
|
11338
|
+
*/
|
|
11339
|
+
export type BetaResponsesServerEvent =
|
|
11340
|
+
| BetaResponsesServerEvent.BetaResponseAudioWsDelta
|
|
11341
|
+
| BetaResponsesServerEvent.BetaResponseAudioWsDone
|
|
11342
|
+
| BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDelta
|
|
11343
|
+
| BetaResponsesServerEvent.BetaResponseAudioTranscriptWsDone
|
|
11344
|
+
| BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDelta
|
|
11345
|
+
| BetaResponsesServerEvent.BetaResponseCodeInterpreterCallCodeWsDone
|
|
11346
|
+
| BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsCompleted
|
|
11347
|
+
| BetaResponsesServerEvent.BetaResponseCodeInterpreterCallInWsProgress
|
|
11348
|
+
| BetaResponsesServerEvent.BetaResponseCodeInterpreterCallWsInterpreting
|
|
11349
|
+
| BetaResponsesServerEvent.BetaResponseWsCompleted
|
|
11350
|
+
| BetaResponsesServerEvent.BetaResponseContentPartWsAdded
|
|
11351
|
+
| BetaResponsesServerEvent.BetaResponseContentPartWsDone
|
|
11352
|
+
| BetaResponsesServerEvent.BetaResponseWsCreated
|
|
11353
|
+
| BetaResponsesServerEvent.BetaResponseFileSearchCallWsCompleted
|
|
11354
|
+
| BetaResponsesServerEvent.BetaResponseFileSearchCallInWsProgress
|
|
11355
|
+
| BetaResponsesServerEvent.BetaResponseFileSearchCallWsSearching
|
|
11356
|
+
| BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDelta
|
|
11357
|
+
| BetaResponsesServerEvent.BetaResponseFunctionCallArgumentsWsDone
|
|
11358
|
+
| BetaResponsesServerEvent.BetaResponseShellCallCommandWsAdded
|
|
11359
|
+
| BetaResponsesServerEvent.BetaResponseShellCallCommandWsDelta
|
|
11360
|
+
| BetaResponsesServerEvent.BetaResponseShellCallCommandWsDone
|
|
11361
|
+
| BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDelta
|
|
11362
|
+
| BetaResponsesServerEvent.BetaResponseShellCallOutputContentWsDone
|
|
11363
|
+
| BetaResponsesServerEvent.BetaResponseInWsProgress
|
|
11364
|
+
| BetaResponsesServerEvent.BetaResponseWsFailed
|
|
11365
|
+
| BetaResponsesServerEvent.BetaResponseWsIncomplete
|
|
11366
|
+
| BetaResponsesServerEvent.BetaResponseOutputItemWsAdded
|
|
11367
|
+
| BetaResponsesServerEvent.BetaResponseOutputItemWsDone
|
|
11368
|
+
| BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsAdded
|
|
11369
|
+
| BetaResponsesServerEvent.BetaResponseReasoningSummaryPartWsDone
|
|
11370
|
+
| BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDelta
|
|
11371
|
+
| BetaResponsesServerEvent.BetaResponseReasoningSummaryTextWsDone
|
|
11372
|
+
| BetaResponsesServerEvent.BetaResponseReasoningTextWsDelta
|
|
11373
|
+
| BetaResponsesServerEvent.BetaResponseReasoningTextWsDone
|
|
11374
|
+
| BetaResponsesServerEvent.BetaResponseRefusalWsDelta
|
|
11375
|
+
| BetaResponsesServerEvent.BetaResponseRefusalWsDone
|
|
11376
|
+
| BetaResponsesServerEvent.BetaResponseTextWsDelta
|
|
11377
|
+
| BetaResponsesServerEvent.BetaResponseTextWsDone
|
|
11378
|
+
| BetaResponsesServerEvent.BetaResponseWebSearchCallWsCompleted
|
|
11379
|
+
| BetaResponsesServerEvent.BetaResponseWebSearchCallInWsProgress
|
|
11380
|
+
| BetaResponsesServerEvent.BetaResponseWebSearchCallWsSearching
|
|
11381
|
+
| BetaResponsesServerEvent.BetaResponseImageGenCallWsCompleted
|
|
11382
|
+
| BetaResponsesServerEvent.BetaResponseImageGenCallWsGenerating
|
|
11383
|
+
| BetaResponsesServerEvent.BetaResponseImageGenCallInWsProgress
|
|
11384
|
+
| BetaResponsesServerEvent.BetaResponseImageGenCallPartialWsImage
|
|
11385
|
+
| BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDelta
|
|
11386
|
+
| BetaResponsesServerEvent.BetaResponseMcpCallArgumentsWsDone
|
|
11387
|
+
| BetaResponsesServerEvent.BetaResponseMcpCallWsCompleted
|
|
11388
|
+
| BetaResponsesServerEvent.BetaResponseMcpCallWsFailed
|
|
11389
|
+
| BetaResponsesServerEvent.BetaResponseMcpCallInWsProgress
|
|
11390
|
+
| BetaResponsesServerEvent.BetaResponseMcpListToolsWsCompleted
|
|
11391
|
+
| BetaResponsesServerEvent.BetaResponseMcpListToolsWsFailed
|
|
11392
|
+
| BetaResponsesServerEvent.BetaResponseMcpListToolsInWsProgress
|
|
11393
|
+
| BetaResponsesServerEvent.BetaResponseOutputTextAnnotationWsAdded
|
|
11394
|
+
| BetaResponsesServerEvent.BetaResponseWsQueued
|
|
11395
|
+
| BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDelta
|
|
11396
|
+
| BetaResponsesServerEvent.BetaResponseCustomToolCallInputWsDone
|
|
11397
|
+
| BetaResponsesServerEvent.BetaResponseWsStreamingError
|
|
11398
|
+
| BetaResponsesServerEvent.BetaResponseWsError
|
|
11399
|
+
| BetaResponseInjectCreatedEvent
|
|
11400
|
+
| BetaResponseInjectFailedEvent;
|
|
11401
|
+
|
|
11402
|
+
export namespace BetaResponsesServerEvent {
|
|
11403
|
+
/**
|
|
11404
|
+
* Emitted when there is a partial audio response.
|
|
11405
|
+
*/
|
|
11406
|
+
export interface BetaResponseAudioWsDelta extends BetaResponseAudioDeltaEvent {
|
|
11407
|
+
/**
|
|
11408
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11409
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11410
|
+
*/
|
|
11411
|
+
stream_id?: string;
|
|
11412
|
+
}
|
|
11413
|
+
|
|
11414
|
+
/**
|
|
11415
|
+
* Emitted when the audio response is complete.
|
|
11416
|
+
*/
|
|
11417
|
+
export interface BetaResponseAudioWsDone extends BetaResponseAudioDoneEvent {
|
|
11418
|
+
/**
|
|
11419
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11420
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11421
|
+
*/
|
|
11422
|
+
stream_id?: string;
|
|
11423
|
+
}
|
|
11424
|
+
|
|
11425
|
+
/**
|
|
11426
|
+
* Emitted when there is a partial transcript of audio.
|
|
11427
|
+
*/
|
|
11428
|
+
export interface BetaResponseAudioTranscriptWsDelta extends BetaResponseAudioTranscriptDeltaEvent {
|
|
11429
|
+
/**
|
|
11430
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11431
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11432
|
+
*/
|
|
11433
|
+
stream_id?: string;
|
|
11434
|
+
}
|
|
11435
|
+
|
|
11436
|
+
/**
|
|
11437
|
+
* Emitted when the full audio transcript is completed.
|
|
11438
|
+
*/
|
|
11439
|
+
export interface BetaResponseAudioTranscriptWsDone extends BetaResponseAudioTranscriptDoneEvent {
|
|
11440
|
+
/**
|
|
11441
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11442
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11443
|
+
*/
|
|
11444
|
+
stream_id?: string;
|
|
11445
|
+
}
|
|
11446
|
+
|
|
11447
|
+
/**
|
|
11448
|
+
* Emitted when a partial code snippet is streamed by the code interpreter.
|
|
11449
|
+
*/
|
|
11450
|
+
export interface BetaResponseCodeInterpreterCallCodeWsDelta extends BetaResponseCodeInterpreterCallCodeDeltaEvent {
|
|
11451
|
+
/**
|
|
11452
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11453
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11454
|
+
*/
|
|
11455
|
+
stream_id?: string;
|
|
11456
|
+
}
|
|
11457
|
+
|
|
11458
|
+
/**
|
|
11459
|
+
* Emitted when the code snippet is finalized by the code interpreter.
|
|
11460
|
+
*/
|
|
11461
|
+
export interface BetaResponseCodeInterpreterCallCodeWsDone extends BetaResponseCodeInterpreterCallCodeDoneEvent {
|
|
11462
|
+
/**
|
|
11463
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11464
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11465
|
+
*/
|
|
11466
|
+
stream_id?: string;
|
|
11467
|
+
}
|
|
11468
|
+
|
|
11469
|
+
/**
|
|
11470
|
+
* Emitted when the code interpreter call is completed.
|
|
11471
|
+
*/
|
|
11472
|
+
export interface BetaResponseCodeInterpreterCallWsCompleted extends BetaResponseCodeInterpreterCallCompletedEvent {
|
|
11473
|
+
/**
|
|
11474
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11475
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11476
|
+
*/
|
|
11477
|
+
stream_id?: string;
|
|
11478
|
+
}
|
|
11479
|
+
|
|
11480
|
+
/**
|
|
11481
|
+
* Emitted when a code interpreter call is in progress.
|
|
11482
|
+
*/
|
|
11483
|
+
export interface BetaResponseCodeInterpreterCallInWsProgress extends BetaResponseCodeInterpreterCallInProgressEvent {
|
|
11484
|
+
/**
|
|
11485
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11486
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10172
11487
|
*/
|
|
10173
|
-
|
|
11488
|
+
stream_id?: string;
|
|
10174
11489
|
}
|
|
10175
|
-
}
|
|
10176
11490
|
|
|
10177
|
-
/**
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
export
|
|
11491
|
+
/**
|
|
11492
|
+
* Emitted when the code interpreter is actively interpreting the code snippet.
|
|
11493
|
+
*/
|
|
11494
|
+
export interface BetaResponseCodeInterpreterCallWsInterpreting extends BetaResponseCodeInterpreterCallInterpretingEvent {
|
|
11495
|
+
/**
|
|
11496
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11497
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11498
|
+
*/
|
|
11499
|
+
stream_id?: string;
|
|
11500
|
+
}
|
|
10181
11501
|
|
|
10182
|
-
export namespace BetaResponsesClientEvent {
|
|
10183
11502
|
/**
|
|
10184
|
-
*
|
|
10185
|
-
* This payload uses the same top-level fields as `POST /v1/responses`.
|
|
10186
|
-
*
|
|
10187
|
-
* Notes:
|
|
10188
|
-
*
|
|
10189
|
-
* - `stream` is implicit over WebSocket and should not be sent.
|
|
10190
|
-
* - `background` is not supported over WebSocket.
|
|
11503
|
+
* Emitted when the model response is complete.
|
|
10191
11504
|
*/
|
|
10192
|
-
export interface
|
|
11505
|
+
export interface BetaResponseWsCompleted extends BetaResponseCompletedEvent {
|
|
10193
11506
|
/**
|
|
10194
|
-
* The
|
|
11507
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11508
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10195
11509
|
*/
|
|
10196
|
-
|
|
11510
|
+
stream_id?: string;
|
|
11511
|
+
}
|
|
10197
11512
|
|
|
11513
|
+
/**
|
|
11514
|
+
* Emitted when a new content part is added.
|
|
11515
|
+
*/
|
|
11516
|
+
export interface BetaResponseContentPartWsAdded extends BetaResponseContentPartAddedEvent {
|
|
10198
11517
|
/**
|
|
10199
|
-
*
|
|
10200
|
-
*
|
|
11518
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11519
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10201
11520
|
*/
|
|
10202
|
-
|
|
11521
|
+
stream_id?: string;
|
|
11522
|
+
}
|
|
10203
11523
|
|
|
11524
|
+
/**
|
|
11525
|
+
* Emitted when a content part is done.
|
|
11526
|
+
*/
|
|
11527
|
+
export interface BetaResponseContentPartWsDone extends BetaResponseContentPartDoneEvent {
|
|
10204
11528
|
/**
|
|
10205
|
-
*
|
|
11529
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11530
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10206
11531
|
*/
|
|
10207
|
-
|
|
11532
|
+
stream_id?: string;
|
|
11533
|
+
}
|
|
10208
11534
|
|
|
11535
|
+
/**
|
|
11536
|
+
* An event that is emitted when a response is created.
|
|
11537
|
+
*/
|
|
11538
|
+
export interface BetaResponseWsCreated extends BetaResponseCreatedEvent {
|
|
10209
11539
|
/**
|
|
10210
|
-
* The
|
|
10211
|
-
*
|
|
10212
|
-
* items from this response are automatically added to this conversation after this
|
|
10213
|
-
* response completes.
|
|
11540
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11541
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10214
11542
|
*/
|
|
10215
|
-
|
|
11543
|
+
stream_id?: string;
|
|
11544
|
+
}
|
|
10216
11545
|
|
|
11546
|
+
/**
|
|
11547
|
+
* Emitted when a file search call is completed (results found).
|
|
11548
|
+
*/
|
|
11549
|
+
export interface BetaResponseFileSearchCallWsCompleted extends BetaResponseFileSearchCallCompletedEvent {
|
|
10217
11550
|
/**
|
|
10218
|
-
*
|
|
10219
|
-
*
|
|
10220
|
-
*
|
|
10221
|
-
* - `web_search_call.action.sources`: Include the sources of the web search tool
|
|
10222
|
-
* call.
|
|
10223
|
-
* - `code_interpreter_call.outputs`: Includes the outputs of python code execution
|
|
10224
|
-
* in code interpreter tool call items.
|
|
10225
|
-
* - `computer_call_output.output.image_url`: Include image urls from the computer
|
|
10226
|
-
* call output.
|
|
10227
|
-
* - `file_search_call.results`: Include the search results of the file search tool
|
|
10228
|
-
* call.
|
|
10229
|
-
* - `message.input_image.image_url`: Include image urls from the input message.
|
|
10230
|
-
* - `message.output_text.logprobs`: Include logprobs with assistant messages.
|
|
10231
|
-
* - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
|
|
10232
|
-
* tokens in reasoning item outputs. This enables reasoning items to be used in
|
|
10233
|
-
* multi-turn conversations when using the Responses API statelessly (like when
|
|
10234
|
-
* the `store` parameter is set to `false`, or when an organization is enrolled
|
|
10235
|
-
* in the zero data retention program).
|
|
11551
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11552
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10236
11553
|
*/
|
|
10237
|
-
|
|
11554
|
+
stream_id?: string;
|
|
11555
|
+
}
|
|
10238
11556
|
|
|
11557
|
+
/**
|
|
11558
|
+
* Emitted when a file search call is initiated.
|
|
11559
|
+
*/
|
|
11560
|
+
export interface BetaResponseFileSearchCallInWsProgress extends BetaResponseFileSearchCallInProgressEvent {
|
|
10239
11561
|
/**
|
|
10240
|
-
*
|
|
10241
|
-
*
|
|
10242
|
-
* Learn more:
|
|
10243
|
-
*
|
|
10244
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
10245
|
-
* - [Image inputs](https://platform.openai.com/docs/guides/images)
|
|
10246
|
-
* - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
|
|
10247
|
-
* - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
|
|
10248
|
-
* - [Function calling](https://platform.openai.com/docs/guides/function-calling)
|
|
11562
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11563
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10249
11564
|
*/
|
|
10250
|
-
|
|
11565
|
+
stream_id?: string;
|
|
11566
|
+
}
|
|
10251
11567
|
|
|
11568
|
+
/**
|
|
11569
|
+
* Emitted when a file search is currently searching.
|
|
11570
|
+
*/
|
|
11571
|
+
export interface BetaResponseFileSearchCallWsSearching extends BetaResponseFileSearchCallSearchingEvent {
|
|
10252
11572
|
/**
|
|
10253
|
-
*
|
|
10254
|
-
*
|
|
10255
|
-
* When using along with `previous_response_id`, the instructions from a previous
|
|
10256
|
-
* response will not be carried over to the next response. This makes it simple to
|
|
10257
|
-
* swap out system (or developer) messages in new responses.
|
|
11573
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11574
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10258
11575
|
*/
|
|
10259
|
-
|
|
11576
|
+
stream_id?: string;
|
|
11577
|
+
}
|
|
10260
11578
|
|
|
11579
|
+
/**
|
|
11580
|
+
* Emitted when there is a partial function-call arguments delta.
|
|
11581
|
+
*/
|
|
11582
|
+
export interface BetaResponseFunctionCallArgumentsWsDelta extends BetaResponseFunctionCallArgumentsDeltaEvent {
|
|
10261
11583
|
/**
|
|
10262
|
-
*
|
|
10263
|
-
*
|
|
10264
|
-
* [reasoning tokens](https://platform.openai.com/docs/guides/reasoning).
|
|
11584
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11585
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10265
11586
|
*/
|
|
10266
|
-
|
|
11587
|
+
stream_id?: string;
|
|
11588
|
+
}
|
|
10267
11589
|
|
|
11590
|
+
/**
|
|
11591
|
+
* Emitted when function-call arguments are finalized.
|
|
11592
|
+
*/
|
|
11593
|
+
export interface BetaResponseFunctionCallArgumentsWsDone extends BetaResponseFunctionCallArgumentsDoneEvent {
|
|
10268
11594
|
/**
|
|
10269
|
-
* The
|
|
10270
|
-
* response.
|
|
10271
|
-
* individual tool. Any further attempts to call a tool by the model will be
|
|
10272
|
-
* ignored.
|
|
11595
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11596
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10273
11597
|
*/
|
|
10274
|
-
|
|
11598
|
+
stream_id?: string;
|
|
11599
|
+
}
|
|
10275
11600
|
|
|
11601
|
+
/**
|
|
11602
|
+
* A streaming event that indicated a shell command was added to a tool call.
|
|
11603
|
+
*/
|
|
11604
|
+
export interface BetaResponseShellCallCommandWsAdded extends BetaResponseShellCallCommandAddedEvent {
|
|
10276
11605
|
/**
|
|
10277
|
-
*
|
|
10278
|
-
*
|
|
10279
|
-
* querying for objects via API or the dashboard.
|
|
10280
|
-
*
|
|
10281
|
-
* Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
10282
|
-
* a maximum length of 512 characters.
|
|
11606
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11607
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10283
11608
|
*/
|
|
10284
|
-
|
|
11609
|
+
stream_id?: string;
|
|
11610
|
+
}
|
|
10285
11611
|
|
|
11612
|
+
/**
|
|
11613
|
+
* A streaming event that indicated a shell command was incrementally updated.
|
|
11614
|
+
*/
|
|
11615
|
+
export interface BetaResponseShellCallCommandWsDelta extends BetaResponseShellCallCommandDeltaEvent {
|
|
10286
11616
|
/**
|
|
10287
|
-
*
|
|
10288
|
-
*
|
|
10289
|
-
* and price points. Refer to the
|
|
10290
|
-
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
10291
|
-
* available models.
|
|
11617
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11618
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10292
11619
|
*/
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
| 'gpt-4-1106-preview'
|
|
10362
|
-
| 'gpt-4-vision-preview'
|
|
10363
|
-
| 'gpt-4'
|
|
10364
|
-
| 'gpt-4-0314'
|
|
10365
|
-
| 'gpt-4-0613'
|
|
10366
|
-
| 'gpt-4-32k'
|
|
10367
|
-
| 'gpt-4-32k-0314'
|
|
10368
|
-
| 'gpt-4-32k-0613'
|
|
10369
|
-
| 'gpt-3.5-turbo'
|
|
10370
|
-
| 'gpt-3.5-turbo-16k'
|
|
10371
|
-
| 'gpt-3.5-turbo-0301'
|
|
10372
|
-
| 'gpt-3.5-turbo-0613'
|
|
10373
|
-
| 'gpt-3.5-turbo-1106'
|
|
10374
|
-
| 'gpt-3.5-turbo-0125'
|
|
10375
|
-
| 'gpt-3.5-turbo-16k-0613'
|
|
10376
|
-
| 'o1-pro'
|
|
10377
|
-
| 'o1-pro-2025-03-19'
|
|
10378
|
-
| 'o3-pro'
|
|
10379
|
-
| 'o3-pro-2025-06-10'
|
|
10380
|
-
| 'o3-deep-research'
|
|
10381
|
-
| 'o3-deep-research-2025-06-26'
|
|
10382
|
-
| 'o4-mini-deep-research'
|
|
10383
|
-
| 'o4-mini-deep-research-2025-06-26'
|
|
10384
|
-
| 'computer-use-preview'
|
|
10385
|
-
| 'computer-use-preview-2025-03-11'
|
|
10386
|
-
| 'gpt-5-codex'
|
|
10387
|
-
| 'gpt-5-pro'
|
|
10388
|
-
| 'gpt-5-pro-2025-10-06'
|
|
10389
|
-
| 'gpt-5.1-codex-max'
|
|
10390
|
-
| (string & {});
|
|
11620
|
+
stream_id?: string;
|
|
11621
|
+
}
|
|
11622
|
+
|
|
11623
|
+
/**
|
|
11624
|
+
* A streaming event that indicated a shell command was completed.
|
|
11625
|
+
*/
|
|
11626
|
+
export interface BetaResponseShellCallCommandWsDone extends BetaResponseShellCallCommandDoneEvent {
|
|
11627
|
+
/**
|
|
11628
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11629
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11630
|
+
*/
|
|
11631
|
+
stream_id?: string;
|
|
11632
|
+
}
|
|
11633
|
+
|
|
11634
|
+
/**
|
|
11635
|
+
* A streaming event that indicated shell call output was incrementally added.
|
|
11636
|
+
*/
|
|
11637
|
+
export interface BetaResponseShellCallOutputContentWsDelta extends BetaResponseShellCallOutputContentDeltaEvent {
|
|
11638
|
+
/**
|
|
11639
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11640
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11641
|
+
*/
|
|
11642
|
+
stream_id?: string;
|
|
11643
|
+
}
|
|
11644
|
+
|
|
11645
|
+
/**
|
|
11646
|
+
* A streaming event that indicated shell call output was completed.
|
|
11647
|
+
*/
|
|
11648
|
+
export interface BetaResponseShellCallOutputContentWsDone extends BetaResponseShellCallOutputContentDoneEvent {
|
|
11649
|
+
/**
|
|
11650
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11651
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11652
|
+
*/
|
|
11653
|
+
stream_id?: string;
|
|
11654
|
+
}
|
|
11655
|
+
|
|
11656
|
+
/**
|
|
11657
|
+
* Emitted when the response is in progress.
|
|
11658
|
+
*/
|
|
11659
|
+
export interface BetaResponseInWsProgress extends BetaResponseInProgressEvent {
|
|
11660
|
+
/**
|
|
11661
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11662
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11663
|
+
*/
|
|
11664
|
+
stream_id?: string;
|
|
11665
|
+
}
|
|
11666
|
+
|
|
11667
|
+
/**
|
|
11668
|
+
* An event that is emitted when a response fails.
|
|
11669
|
+
*/
|
|
11670
|
+
export interface BetaResponseWsFailed extends BetaResponseFailedEvent {
|
|
11671
|
+
/**
|
|
11672
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11673
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11674
|
+
*/
|
|
11675
|
+
stream_id?: string;
|
|
11676
|
+
}
|
|
11677
|
+
|
|
11678
|
+
/**
|
|
11679
|
+
* An event that is emitted when a response finishes as incomplete.
|
|
11680
|
+
*/
|
|
11681
|
+
export interface BetaResponseWsIncomplete extends BetaResponseIncompleteEvent {
|
|
11682
|
+
/**
|
|
11683
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11684
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11685
|
+
*/
|
|
11686
|
+
stream_id?: string;
|
|
11687
|
+
}
|
|
10391
11688
|
|
|
11689
|
+
/**
|
|
11690
|
+
* Emitted when a new output item is added.
|
|
11691
|
+
*/
|
|
11692
|
+
export interface BetaResponseOutputItemWsAdded extends BetaResponseOutputItemAddedEvent {
|
|
10392
11693
|
/**
|
|
10393
|
-
*
|
|
11694
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11695
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10394
11696
|
*/
|
|
10395
|
-
|
|
11697
|
+
stream_id?: string;
|
|
11698
|
+
}
|
|
10396
11699
|
|
|
11700
|
+
/**
|
|
11701
|
+
* Emitted when an output item is marked done.
|
|
11702
|
+
*/
|
|
11703
|
+
export interface BetaResponseOutputItemWsDone extends BetaResponseOutputItemDoneEvent {
|
|
10397
11704
|
/**
|
|
10398
|
-
*
|
|
11705
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11706
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10399
11707
|
*/
|
|
10400
|
-
|
|
11708
|
+
stream_id?: string;
|
|
11709
|
+
}
|
|
10401
11710
|
|
|
11711
|
+
/**
|
|
11712
|
+
* Emitted when a new reasoning summary part is added.
|
|
11713
|
+
*/
|
|
11714
|
+
export interface BetaResponseReasoningSummaryPartWsAdded extends BetaResponseReasoningSummaryPartAddedEvent {
|
|
10402
11715
|
/**
|
|
10403
|
-
*
|
|
11716
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11717
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10404
11718
|
*/
|
|
10405
|
-
|
|
11719
|
+
stream_id?: string;
|
|
11720
|
+
}
|
|
10406
11721
|
|
|
11722
|
+
/**
|
|
11723
|
+
* Emitted when a reasoning summary part is completed.
|
|
11724
|
+
*/
|
|
11725
|
+
export interface BetaResponseReasoningSummaryPartWsDone extends BetaResponseReasoningSummaryPartDoneEvent {
|
|
10407
11726
|
/**
|
|
10408
|
-
* The
|
|
10409
|
-
*
|
|
10410
|
-
* [conversation state](https://platform.openai.com/docs/guides/conversation-state).
|
|
10411
|
-
* Cannot be used in conjunction with `conversation`.
|
|
11727
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11728
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10412
11729
|
*/
|
|
10413
|
-
|
|
11730
|
+
stream_id?: string;
|
|
11731
|
+
}
|
|
10414
11732
|
|
|
11733
|
+
/**
|
|
11734
|
+
* Emitted when a delta is added to a reasoning summary text.
|
|
11735
|
+
*/
|
|
11736
|
+
export interface BetaResponseReasoningSummaryTextWsDelta extends BetaResponseReasoningSummaryTextDeltaEvent {
|
|
10415
11737
|
/**
|
|
10416
|
-
*
|
|
10417
|
-
*
|
|
11738
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11739
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10418
11740
|
*/
|
|
10419
|
-
|
|
11741
|
+
stream_id?: string;
|
|
11742
|
+
}
|
|
10420
11743
|
|
|
11744
|
+
/**
|
|
11745
|
+
* Emitted when a reasoning summary text is completed.
|
|
11746
|
+
*/
|
|
11747
|
+
export interface BetaResponseReasoningSummaryTextWsDone extends BetaResponseReasoningSummaryTextDoneEvent {
|
|
10421
11748
|
/**
|
|
10422
|
-
*
|
|
10423
|
-
*
|
|
10424
|
-
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
|
|
11749
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11750
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10425
11751
|
*/
|
|
10426
|
-
|
|
11752
|
+
stream_id?: string;
|
|
11753
|
+
}
|
|
10427
11754
|
|
|
11755
|
+
/**
|
|
11756
|
+
* Emitted when a delta is added to a reasoning text.
|
|
11757
|
+
*/
|
|
11758
|
+
export interface BetaResponseReasoningTextWsDelta extends BetaResponseReasoningTextDeltaEvent {
|
|
10428
11759
|
/**
|
|
10429
|
-
*
|
|
10430
|
-
*
|
|
10431
|
-
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
10432
|
-
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
10433
|
-
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
10434
|
-
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
10435
|
-
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
10436
|
-
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
10437
|
-
* for current details.
|
|
11760
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11761
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10438
11762
|
*/
|
|
10439
|
-
|
|
11763
|
+
stream_id?: string;
|
|
11764
|
+
}
|
|
10440
11765
|
|
|
11766
|
+
/**
|
|
11767
|
+
* Emitted when a reasoning text is completed.
|
|
11768
|
+
*/
|
|
11769
|
+
export interface BetaResponseReasoningTextWsDone extends BetaResponseReasoningTextDoneEvent {
|
|
10441
11770
|
/**
|
|
10442
|
-
*
|
|
10443
|
-
*
|
|
10444
|
-
* The retention policy for the prompt cache. Set to `24h` to enable extended
|
|
10445
|
-
* prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
10446
|
-
* of 24 hours.
|
|
10447
|
-
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
10448
|
-
* This field expresses a maximum retention policy, while
|
|
10449
|
-
* `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
|
|
10450
|
-
* are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
|
|
10451
|
-
* models, only `24h` is supported.
|
|
10452
|
-
*
|
|
10453
|
-
* For older models that support both `in_memory` and `24h`, the default depends on
|
|
10454
|
-
* your organization's data retention policy:
|
|
10455
|
-
*
|
|
10456
|
-
* - Organizations without ZDR enabled default to `24h`.
|
|
10457
|
-
* - Organizations with ZDR enabled default to `in_memory` when
|
|
10458
|
-
* `prompt_cache_retention` is not specified.
|
|
11771
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11772
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10459
11773
|
*/
|
|
10460
|
-
|
|
11774
|
+
stream_id?: string;
|
|
11775
|
+
}
|
|
10461
11776
|
|
|
11777
|
+
/**
|
|
11778
|
+
* Emitted when there is a partial refusal text.
|
|
11779
|
+
*/
|
|
11780
|
+
export interface BetaResponseRefusalWsDelta extends BetaResponseRefusalDeltaEvent {
|
|
10462
11781
|
/**
|
|
10463
|
-
*
|
|
10464
|
-
*
|
|
10465
|
-
* Configuration options for
|
|
10466
|
-
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
11782
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11783
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10467
11784
|
*/
|
|
10468
|
-
|
|
11785
|
+
stream_id?: string;
|
|
11786
|
+
}
|
|
10469
11787
|
|
|
11788
|
+
/**
|
|
11789
|
+
* Emitted when refusal text is finalized.
|
|
11790
|
+
*/
|
|
11791
|
+
export interface BetaResponseRefusalWsDone extends BetaResponseRefusalDoneEvent {
|
|
10470
11792
|
/**
|
|
10471
|
-
*
|
|
10472
|
-
*
|
|
10473
|
-
* identifies each user, with a maximum length of 64 characters. We recommend
|
|
10474
|
-
* hashing their username or email address, in order to avoid sending us any
|
|
10475
|
-
* identifying information.
|
|
10476
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
11793
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11794
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10477
11795
|
*/
|
|
10478
|
-
|
|
11796
|
+
stream_id?: string;
|
|
11797
|
+
}
|
|
10479
11798
|
|
|
11799
|
+
/**
|
|
11800
|
+
* Emitted when there is an additional text delta.
|
|
11801
|
+
*/
|
|
11802
|
+
export interface BetaResponseTextWsDelta extends BetaResponseTextDeltaEvent {
|
|
10480
11803
|
/**
|
|
10481
|
-
*
|
|
10482
|
-
*
|
|
10483
|
-
* - If set to 'auto', then the request will be processed with the service tier
|
|
10484
|
-
* configured in the Project settings. Unless otherwise configured, the Project
|
|
10485
|
-
* will use 'default'.
|
|
10486
|
-
* - If set to 'default', then the request will be processed with the standard
|
|
10487
|
-
* pricing and performance for the selected model.
|
|
10488
|
-
* - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
10489
|
-
* then the request will be processed with the Flex Processing service tier.
|
|
10490
|
-
* - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
10491
|
-
* include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
10492
|
-
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
10493
|
-
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
10494
|
-
* request.
|
|
10495
|
-
* - When not set, the default behavior is 'auto'.
|
|
10496
|
-
*
|
|
10497
|
-
* When the `service_tier` parameter is set, the response body will include the
|
|
10498
|
-
* `service_tier` value based on the processing mode actually used to serve the
|
|
10499
|
-
* request. This response value may be different from the value set in the
|
|
10500
|
-
* parameter.
|
|
11804
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11805
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10501
11806
|
*/
|
|
10502
|
-
|
|
11807
|
+
stream_id?: string;
|
|
11808
|
+
}
|
|
10503
11809
|
|
|
11810
|
+
/**
|
|
11811
|
+
* Emitted when text content is finalized.
|
|
11812
|
+
*/
|
|
11813
|
+
export interface BetaResponseTextWsDone extends BetaResponseTextDoneEvent {
|
|
10504
11814
|
/**
|
|
10505
|
-
*
|
|
11815
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11816
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10506
11817
|
*/
|
|
10507
|
-
|
|
11818
|
+
stream_id?: string;
|
|
11819
|
+
}
|
|
10508
11820
|
|
|
11821
|
+
/**
|
|
11822
|
+
* Emitted when a web search call is completed.
|
|
11823
|
+
*/
|
|
11824
|
+
export interface BetaResponseWebSearchCallWsCompleted extends BetaResponseWebSearchCallCompletedEvent {
|
|
10509
11825
|
/**
|
|
10510
|
-
*
|
|
10511
|
-
*
|
|
10512
|
-
* [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
|
|
10513
|
-
* See the
|
|
10514
|
-
* [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
|
|
10515
|
-
* for more information.
|
|
11826
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11827
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10516
11828
|
*/
|
|
10517
|
-
|
|
11829
|
+
stream_id?: string;
|
|
11830
|
+
}
|
|
11831
|
+
|
|
11832
|
+
/**
|
|
11833
|
+
* Emitted when a web search call is initiated.
|
|
11834
|
+
*/
|
|
11835
|
+
export interface BetaResponseWebSearchCallInWsProgress extends BetaResponseWebSearchCallInProgressEvent {
|
|
11836
|
+
/**
|
|
11837
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11838
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11839
|
+
*/
|
|
11840
|
+
stream_id?: string;
|
|
11841
|
+
}
|
|
10518
11842
|
|
|
11843
|
+
/**
|
|
11844
|
+
* Emitted when a web search call is executing.
|
|
11845
|
+
*/
|
|
11846
|
+
export interface BetaResponseWebSearchCallWsSearching extends BetaResponseWebSearchCallSearchingEvent {
|
|
10519
11847
|
/**
|
|
10520
|
-
*
|
|
11848
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11849
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10521
11850
|
*/
|
|
10522
|
-
|
|
11851
|
+
stream_id?: string;
|
|
11852
|
+
}
|
|
10523
11853
|
|
|
11854
|
+
/**
|
|
11855
|
+
* Emitted when an image generation tool call has completed and the final image is
|
|
11856
|
+
* available.
|
|
11857
|
+
*/
|
|
11858
|
+
export interface BetaResponseImageGenCallWsCompleted extends BetaResponseImageGenCallCompletedEvent {
|
|
10524
11859
|
/**
|
|
10525
|
-
*
|
|
10526
|
-
*
|
|
10527
|
-
* focused and deterministic. We generally recommend altering this or `top_p` but
|
|
10528
|
-
* not both.
|
|
11860
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11861
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10529
11862
|
*/
|
|
10530
|
-
|
|
11863
|
+
stream_id?: string;
|
|
11864
|
+
}
|
|
10531
11865
|
|
|
11866
|
+
/**
|
|
11867
|
+
* Emitted when an image generation tool call is actively generating an image
|
|
11868
|
+
* (intermediate state).
|
|
11869
|
+
*/
|
|
11870
|
+
export interface BetaResponseImageGenCallWsGenerating extends BetaResponseImageGenCallGeneratingEvent {
|
|
10532
11871
|
/**
|
|
10533
|
-
*
|
|
10534
|
-
*
|
|
10535
|
-
*
|
|
10536
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
10537
|
-
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
11872
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11873
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10538
11874
|
*/
|
|
10539
|
-
|
|
11875
|
+
stream_id?: string;
|
|
11876
|
+
}
|
|
10540
11877
|
|
|
11878
|
+
/**
|
|
11879
|
+
* Emitted when an image generation tool call is in progress.
|
|
11880
|
+
*/
|
|
11881
|
+
export interface BetaResponseImageGenCallInWsProgress extends BetaResponseImageGenCallInProgressEvent {
|
|
10541
11882
|
/**
|
|
10542
|
-
*
|
|
10543
|
-
* response.
|
|
10544
|
-
* can call.
|
|
11883
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11884
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10545
11885
|
*/
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
| ResponsesAPI.BetaToolChoiceAllowed
|
|
10549
|
-
| ResponsesAPI.BetaToolChoiceTypes
|
|
10550
|
-
| ResponsesAPI.BetaToolChoiceFunction
|
|
10551
|
-
| ResponsesAPI.BetaToolChoiceMcp
|
|
10552
|
-
| ResponsesAPI.BetaToolChoiceCustom
|
|
10553
|
-
| ResponseCreate.BetaSpecificProgrammaticToolCallingParam
|
|
10554
|
-
| ResponsesAPI.BetaToolChoiceApplyPatch
|
|
10555
|
-
| ResponsesAPI.BetaToolChoiceShell;
|
|
11886
|
+
stream_id?: string;
|
|
11887
|
+
}
|
|
10556
11888
|
|
|
11889
|
+
/**
|
|
11890
|
+
* Emitted when a partial image is available during image generation streaming.
|
|
11891
|
+
*/
|
|
11892
|
+
export interface BetaResponseImageGenCallPartialWsImage extends BetaResponseImageGenCallPartialImageEvent {
|
|
10557
11893
|
/**
|
|
10558
|
-
*
|
|
10559
|
-
*
|
|
10560
|
-
*
|
|
10561
|
-
* We support the following categories of tools:
|
|
10562
|
-
*
|
|
10563
|
-
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
10564
|
-
* capabilities, like
|
|
10565
|
-
* [web search](https://platform.openai.com/docs/guides/tools-web-search) or
|
|
10566
|
-
* [file search](https://platform.openai.com/docs/guides/tools-file-search).
|
|
10567
|
-
* Learn more about
|
|
10568
|
-
* [built-in tools](https://platform.openai.com/docs/guides/tools).
|
|
10569
|
-
* - **MCP Tools**: Integrations with third-party systems via custom MCP servers or
|
|
10570
|
-
* predefined connectors such as Google Drive and SharePoint. Learn more about
|
|
10571
|
-
* [MCP Tools](https://platform.openai.com/docs/guides/tools-connectors-mcp).
|
|
10572
|
-
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
10573
|
-
* the model to call your own code with strongly typed arguments and outputs.
|
|
10574
|
-
* Learn more about
|
|
10575
|
-
* [function calling](https://platform.openai.com/docs/guides/function-calling).
|
|
10576
|
-
* You can also use custom tools to call your own code.
|
|
11894
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11895
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10577
11896
|
*/
|
|
10578
|
-
|
|
11897
|
+
stream_id?: string;
|
|
11898
|
+
}
|
|
10579
11899
|
|
|
11900
|
+
/**
|
|
11901
|
+
* Emitted when there is a delta (partial update) to the arguments of an MCP tool
|
|
11902
|
+
* call.
|
|
11903
|
+
*/
|
|
11904
|
+
export interface BetaResponseMcpCallArgumentsWsDelta extends BetaResponseMcpCallArgumentsDeltaEvent {
|
|
10580
11905
|
/**
|
|
10581
|
-
*
|
|
10582
|
-
*
|
|
10583
|
-
* some cases, the number of returned tokens may be fewer than requested.
|
|
11906
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11907
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10584
11908
|
*/
|
|
10585
|
-
|
|
11909
|
+
stream_id?: string;
|
|
11910
|
+
}
|
|
10586
11911
|
|
|
11912
|
+
/**
|
|
11913
|
+
* Emitted when the arguments for an MCP tool call are finalized.
|
|
11914
|
+
*/
|
|
11915
|
+
export interface BetaResponseMcpCallArgumentsWsDone extends BetaResponseMcpCallArgumentsDoneEvent {
|
|
10587
11916
|
/**
|
|
10588
|
-
*
|
|
10589
|
-
*
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
11917
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11918
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11919
|
+
*/
|
|
11920
|
+
stream_id?: string;
|
|
11921
|
+
}
|
|
11922
|
+
|
|
11923
|
+
/**
|
|
11924
|
+
* Emitted when an MCP tool call has completed successfully.
|
|
11925
|
+
*/
|
|
11926
|
+
export interface BetaResponseMcpCallWsCompleted extends BetaResponseMcpCallCompletedEvent {
|
|
11927
|
+
/**
|
|
11928
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11929
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11930
|
+
*/
|
|
11931
|
+
stream_id?: string;
|
|
11932
|
+
}
|
|
11933
|
+
|
|
11934
|
+
/**
|
|
11935
|
+
* Emitted when an MCP tool call has failed.
|
|
11936
|
+
*/
|
|
11937
|
+
export interface BetaResponseMcpCallWsFailed extends BetaResponseMcpCallFailedEvent {
|
|
11938
|
+
/**
|
|
11939
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11940
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11941
|
+
*/
|
|
11942
|
+
stream_id?: string;
|
|
11943
|
+
}
|
|
11944
|
+
|
|
11945
|
+
/**
|
|
11946
|
+
* Emitted when an MCP tool call is in progress.
|
|
11947
|
+
*/
|
|
11948
|
+
export interface BetaResponseMcpCallInWsProgress extends BetaResponseMcpCallInProgressEvent {
|
|
11949
|
+
/**
|
|
11950
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11951
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11952
|
+
*/
|
|
11953
|
+
stream_id?: string;
|
|
11954
|
+
}
|
|
11955
|
+
|
|
11956
|
+
/**
|
|
11957
|
+
* Emitted when the list of available MCP tools has been successfully retrieved.
|
|
11958
|
+
*/
|
|
11959
|
+
export interface BetaResponseMcpListToolsWsCompleted extends BetaResponseMcpListToolsCompletedEvent {
|
|
11960
|
+
/**
|
|
11961
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11962
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11963
|
+
*/
|
|
11964
|
+
stream_id?: string;
|
|
11965
|
+
}
|
|
11966
|
+
|
|
11967
|
+
/**
|
|
11968
|
+
* Emitted when the attempt to list available MCP tools has failed.
|
|
11969
|
+
*/
|
|
11970
|
+
export interface BetaResponseMcpListToolsWsFailed extends BetaResponseMcpListToolsFailedEvent {
|
|
11971
|
+
/**
|
|
11972
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11973
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11974
|
+
*/
|
|
11975
|
+
stream_id?: string;
|
|
11976
|
+
}
|
|
11977
|
+
|
|
11978
|
+
/**
|
|
11979
|
+
* Emitted when the system is in the process of retrieving the list of available
|
|
11980
|
+
* MCP tools.
|
|
11981
|
+
*/
|
|
11982
|
+
export interface BetaResponseMcpListToolsInWsProgress extends BetaResponseMcpListToolsInProgressEvent {
|
|
11983
|
+
/**
|
|
11984
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11985
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11986
|
+
*/
|
|
11987
|
+
stream_id?: string;
|
|
11988
|
+
}
|
|
11989
|
+
|
|
11990
|
+
/**
|
|
11991
|
+
* Emitted when an annotation is added to output text content.
|
|
11992
|
+
*/
|
|
11993
|
+
export interface BetaResponseOutputTextAnnotationWsAdded extends BetaResponseOutputTextAnnotationAddedEvent {
|
|
11994
|
+
/**
|
|
11995
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11996
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11997
|
+
*/
|
|
11998
|
+
stream_id?: string;
|
|
11999
|
+
}
|
|
12000
|
+
|
|
12001
|
+
/**
|
|
12002
|
+
* Emitted when a response is queued and waiting to be processed.
|
|
12003
|
+
*/
|
|
12004
|
+
export interface BetaResponseWsQueued extends BetaResponseQueuedEvent {
|
|
12005
|
+
/**
|
|
12006
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12007
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10593
12008
|
*/
|
|
10594
|
-
|
|
12009
|
+
stream_id?: string;
|
|
12010
|
+
}
|
|
10595
12011
|
|
|
12012
|
+
/**
|
|
12013
|
+
* Event representing a delta (partial update) to the input of a custom tool call.
|
|
12014
|
+
*/
|
|
12015
|
+
export interface BetaResponseCustomToolCallInputWsDelta extends BetaResponseCustomToolCallInputDeltaEvent {
|
|
10596
12016
|
/**
|
|
10597
|
-
*
|
|
10598
|
-
*
|
|
10599
|
-
* - `auto`: If the input to this Response exceeds the model's context window size,
|
|
10600
|
-
* the model will truncate the response to fit the context window by dropping
|
|
10601
|
-
* items from the beginning of the conversation.
|
|
10602
|
-
* - `disabled` (default): If the input size will exceed the context window size
|
|
10603
|
-
* for a model, the request will fail with a 400 error.
|
|
12017
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12018
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10604
12019
|
*/
|
|
10605
|
-
|
|
12020
|
+
stream_id?: string;
|
|
12021
|
+
}
|
|
10606
12022
|
|
|
12023
|
+
/**
|
|
12024
|
+
* Event indicating that input for a custom tool call is complete.
|
|
12025
|
+
*/
|
|
12026
|
+
export interface BetaResponseCustomToolCallInputWsDone extends BetaResponseCustomToolCallInputDoneEvent {
|
|
10607
12027
|
/**
|
|
10608
|
-
*
|
|
10609
|
-
*
|
|
10610
|
-
* optimizations. A stable identifier for your end-users. Used to boost cache hit
|
|
10611
|
-
* rates by better bucketing similar requests and to help OpenAI detect and prevent
|
|
10612
|
-
* abuse.
|
|
10613
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
12028
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12029
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10614
12030
|
*/
|
|
10615
|
-
|
|
12031
|
+
stream_id?: string;
|
|
10616
12032
|
}
|
|
10617
12033
|
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
*/
|
|
10623
|
-
type: string;
|
|
10624
|
-
|
|
10625
|
-
/**
|
|
10626
|
-
* Token threshold at which compaction should be triggered for this entry.
|
|
10627
|
-
*/
|
|
10628
|
-
compact_threshold?: number | null;
|
|
10629
|
-
}
|
|
10630
|
-
|
|
12034
|
+
/**
|
|
12035
|
+
* Emitted when an error occurs while streaming a response over the WebSocket.
|
|
12036
|
+
*/
|
|
12037
|
+
export interface BetaResponseWsStreamingError extends BetaResponseErrorEvent {
|
|
10631
12038
|
/**
|
|
10632
|
-
*
|
|
12039
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12040
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10633
12041
|
*/
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
* The moderation model to use for moderated completions, e.g.
|
|
10637
|
-
* 'omni-moderation-latest'.
|
|
10638
|
-
*/
|
|
10639
|
-
model: string;
|
|
10640
|
-
|
|
10641
|
-
/**
|
|
10642
|
-
* The policy to apply to moderated response input and output.
|
|
10643
|
-
*/
|
|
10644
|
-
policy?: Moderation.Policy | null;
|
|
10645
|
-
}
|
|
10646
|
-
|
|
10647
|
-
export namespace Moderation {
|
|
10648
|
-
/**
|
|
10649
|
-
* The policy to apply to moderated response input and output.
|
|
10650
|
-
*/
|
|
10651
|
-
export interface Policy {
|
|
10652
|
-
/**
|
|
10653
|
-
* The moderation policy for the response input.
|
|
10654
|
-
*/
|
|
10655
|
-
input?: Policy.Input | null;
|
|
10656
|
-
|
|
10657
|
-
/**
|
|
10658
|
-
* The moderation policy for the response output.
|
|
10659
|
-
*/
|
|
10660
|
-
output?: Policy.Output | null;
|
|
10661
|
-
}
|
|
12042
|
+
stream_id?: string;
|
|
12043
|
+
}
|
|
10662
12044
|
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
12045
|
+
/**
|
|
12046
|
+
* Emitted when an error occurs while processing a Responses WebSocket request.
|
|
12047
|
+
*/
|
|
12048
|
+
export interface BetaResponseWsError {
|
|
12049
|
+
/**
|
|
12050
|
+
* Details about the error.
|
|
12051
|
+
*/
|
|
12052
|
+
error: BetaResponseWsError.Error;
|
|
10670
12053
|
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
mode: 'score' | 'block';
|
|
10676
|
-
}
|
|
10677
|
-
}
|
|
10678
|
-
}
|
|
12054
|
+
/**
|
|
12055
|
+
* The type of the event. Always `error`.
|
|
12056
|
+
*/
|
|
12057
|
+
type: 'error';
|
|
10679
12058
|
|
|
10680
12059
|
/**
|
|
10681
|
-
*
|
|
12060
|
+
* The agent that owns this multi-agent streaming event.
|
|
10682
12061
|
*/
|
|
10683
|
-
|
|
10684
|
-
/**
|
|
10685
|
-
* Whether to enable server-hosted multi-agent execution for this response.
|
|
10686
|
-
*/
|
|
10687
|
-
enabled: boolean;
|
|
12062
|
+
agent?: BetaResponseWsError.Agent | null;
|
|
10688
12063
|
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
* agent. The API does not impose a fixed upper bound on this setting. The default
|
|
10694
|
-
* is `3`, which is recommended for most workloads. Multi-agent runs also have no
|
|
10695
|
-
* fixed limit on tree depth or the total number of subagents created during a run.
|
|
10696
|
-
*/
|
|
10697
|
-
max_concurrent_subagents?: number;
|
|
10698
|
-
}
|
|
12064
|
+
/**
|
|
12065
|
+
* The sequence number of an error emitted by the response stream.
|
|
12066
|
+
*/
|
|
12067
|
+
sequence_number?: number;
|
|
10699
12068
|
|
|
10700
12069
|
/**
|
|
10701
|
-
*
|
|
10702
|
-
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
10703
|
-
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
10704
|
-
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
10705
|
-
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
10706
|
-
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
10707
|
-
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
10708
|
-
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
10709
|
-
* for current details.
|
|
12070
|
+
* The HTTP status code associated with a WebSocket protocol error.
|
|
10710
12071
|
*/
|
|
10711
|
-
|
|
10712
|
-
/**
|
|
10713
|
-
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
10714
|
-
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
10715
|
-
* and writes up to the latest three explicit breakpoints in the request. With
|
|
10716
|
-
* `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
10717
|
-
* latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
10718
|
-
* request does not use prompt caching.
|
|
10719
|
-
*/
|
|
10720
|
-
mode?: 'implicit' | 'explicit';
|
|
12072
|
+
status?: number;
|
|
10721
12073
|
|
|
10722
|
-
|
|
10723
|
-
|
|
10724
|
-
|
|
10725
|
-
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
}
|
|
12074
|
+
/**
|
|
12075
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12076
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
12077
|
+
*/
|
|
12078
|
+
stream_id?: string;
|
|
12079
|
+
}
|
|
10729
12080
|
|
|
12081
|
+
export namespace BetaResponseWsError {
|
|
10730
12082
|
/**
|
|
10731
|
-
*
|
|
10732
|
-
*
|
|
10733
|
-
* Configuration options for
|
|
10734
|
-
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
12083
|
+
* Details about the error.
|
|
10735
12084
|
*/
|
|
10736
|
-
export interface
|
|
12085
|
+
export interface Error {
|
|
10737
12086
|
/**
|
|
10738
|
-
*
|
|
10739
|
-
* omitted or set to `auto`, the model determines the context mode. The `gpt-5.6`
|
|
10740
|
-
* model family defaults to `all_turns`; earlier models default to `current_turn`.
|
|
10741
|
-
*
|
|
10742
|
-
* When returned on a response, this is the effective reasoning context mode used
|
|
10743
|
-
* for the response.
|
|
12087
|
+
* The error code that was emitted, if any.
|
|
10744
12088
|
*/
|
|
10745
|
-
|
|
12089
|
+
code: string | null;
|
|
10746
12090
|
|
|
10747
12091
|
/**
|
|
10748
|
-
*
|
|
10749
|
-
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
10750
|
-
* reasoning effort can result in faster responses and fewer tokens used on
|
|
10751
|
-
* reasoning in a response. Not all reasoning models support every value. See the
|
|
10752
|
-
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
10753
|
-
* model-specific support.
|
|
12092
|
+
* The human-readable error message that was emitted.
|
|
10754
12093
|
*/
|
|
10755
|
-
|
|
12094
|
+
message: string;
|
|
10756
12095
|
|
|
10757
12096
|
/**
|
|
10758
|
-
*
|
|
10759
|
-
*
|
|
10760
|
-
* A summary of the reasoning performed by the model. This can be useful for
|
|
10761
|
-
* debugging and understanding the model's reasoning process. One of `auto`,
|
|
10762
|
-
* `concise`, or `detailed`.
|
|
12097
|
+
* The parameter name that was associated with the error, if any.
|
|
10763
12098
|
*/
|
|
10764
|
-
|
|
12099
|
+
param: string | null;
|
|
10765
12100
|
|
|
10766
12101
|
/**
|
|
10767
|
-
*
|
|
10768
|
-
*
|
|
10769
|
-
* When returned on a response, this is the effective execution mode.
|
|
12102
|
+
* The error type that was emitted.
|
|
10770
12103
|
*/
|
|
10771
|
-
|
|
12104
|
+
type: string;
|
|
10772
12105
|
|
|
10773
12106
|
/**
|
|
10774
|
-
*
|
|
10775
|
-
* debugging and understanding the model's reasoning process. One of `auto`,
|
|
10776
|
-
* `concise`, or `detailed`.
|
|
10777
|
-
*
|
|
10778
|
-
* `concise` is supported for `computer-use-preview` models and all reasoning
|
|
10779
|
-
* models after `gpt-5`.
|
|
12107
|
+
* The response headers that were emitted with the error, if any.
|
|
10780
12108
|
*/
|
|
10781
|
-
|
|
12109
|
+
headers?: { [key: string]: string };
|
|
10782
12110
|
}
|
|
10783
12111
|
|
|
10784
12112
|
/**
|
|
10785
|
-
*
|
|
12113
|
+
* The agent that owns this multi-agent streaming event.
|
|
10786
12114
|
*/
|
|
10787
|
-
export interface
|
|
10788
|
-
/**
|
|
10789
|
-
* When true, stream obfuscation will be enabled. Stream obfuscation adds random
|
|
10790
|
-
* characters to an `obfuscation` field on streaming delta events to normalize
|
|
10791
|
-
* payload sizes as a mitigation to certain side-channel attacks. These obfuscation
|
|
10792
|
-
* fields are included by default, but add a small amount of overhead to the data
|
|
10793
|
-
* stream. You can set `include_obfuscation` to false to optimize for bandwidth if
|
|
10794
|
-
* you trust the network links between your application and the OpenAI API.
|
|
10795
|
-
*/
|
|
10796
|
-
include_obfuscation?: boolean;
|
|
10797
|
-
}
|
|
10798
|
-
|
|
10799
|
-
export interface BetaSpecificProgrammaticToolCallingParam {
|
|
12115
|
+
export interface Agent {
|
|
10800
12116
|
/**
|
|
10801
|
-
* The
|
|
12117
|
+
* The canonical name of the agent that produced this item.
|
|
10802
12118
|
*/
|
|
10803
|
-
|
|
12119
|
+
agent_name: string;
|
|
10804
12120
|
}
|
|
10805
12121
|
}
|
|
10806
12122
|
}
|
|
10807
12123
|
|
|
10808
12124
|
/**
|
|
10809
|
-
*
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
10814
|
-
|
|
10815
|
-
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
|
|
10820
|
-
|
|
10821
|
-
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
|
|
10827
|
-
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
|
10836
|
-
|
|
|
10837
|
-
|
|
|
10838
|
-
|
|
|
10839
|
-
|
|
|
10840
|
-
|
|
|
10841
|
-
|
|
|
10842
|
-
|
|
|
10843
|
-
| BetaResponseRefusalDoneEvent
|
|
10844
|
-
| BetaResponseTextDeltaEvent
|
|
10845
|
-
| BetaResponseTextDoneEvent
|
|
10846
|
-
| BetaResponseWebSearchCallCompletedEvent
|
|
10847
|
-
| BetaResponseWebSearchCallInProgressEvent
|
|
10848
|
-
| BetaResponseWebSearchCallSearchingEvent
|
|
10849
|
-
| BetaResponseImageGenCallCompletedEvent
|
|
10850
|
-
| BetaResponseImageGenCallGeneratingEvent
|
|
10851
|
-
| BetaResponseImageGenCallInProgressEvent
|
|
10852
|
-
| BetaResponseImageGenCallPartialImageEvent
|
|
10853
|
-
| BetaResponseMcpCallArgumentsDeltaEvent
|
|
10854
|
-
| BetaResponseMcpCallArgumentsDoneEvent
|
|
10855
|
-
| BetaResponseMcpCallCompletedEvent
|
|
10856
|
-
| BetaResponseMcpCallFailedEvent
|
|
10857
|
-
| BetaResponseMcpCallInProgressEvent
|
|
10858
|
-
| BetaResponseMcpListToolsCompletedEvent
|
|
10859
|
-
| BetaResponseMcpListToolsFailedEvent
|
|
10860
|
-
| BetaResponseMcpListToolsInProgressEvent
|
|
10861
|
-
| BetaResponseOutputTextAnnotationAddedEvent
|
|
10862
|
-
| BetaResponseQueuedEvent
|
|
10863
|
-
| BetaResponseCustomToolCallInputDeltaEvent
|
|
10864
|
-
| BetaResponseCustomToolCallInputDoneEvent
|
|
10865
|
-
| BetaResponseInjectCreatedEvent
|
|
10866
|
-
| BetaResponseInjectFailedEvent;
|
|
12125
|
+
* Specifies the processing type used for serving the request.
|
|
12126
|
+
*
|
|
12127
|
+
* - If set to 'auto', then the request will be processed with the service tier
|
|
12128
|
+
* configured in the Project settings. Unless otherwise configured, the Project
|
|
12129
|
+
* will use 'default'.
|
|
12130
|
+
* - If set to 'default', then the request will be processed with the standard
|
|
12131
|
+
* pricing and performance for the selected model.
|
|
12132
|
+
* - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
12133
|
+
* then the request will be processed with the Flex Processing service tier.
|
|
12134
|
+
* - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
12135
|
+
* include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
12136
|
+
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
12137
|
+
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
12138
|
+
* request.
|
|
12139
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
12140
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
12141
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
12142
|
+
* `service_tier=ultrafast`.
|
|
12143
|
+
* - When not set, the default behavior is 'auto'.
|
|
12144
|
+
*
|
|
12145
|
+
* When the `service_tier` parameter is set, the response body will include the
|
|
12146
|
+
* `service_tier` value based on the processing mode actually used to serve the
|
|
12147
|
+
* request. This response value may be different from the value set in the
|
|
12148
|
+
* parameter.
|
|
12149
|
+
*/
|
|
12150
|
+
export type BetaServiceTier =
|
|
12151
|
+
| 'auto'
|
|
12152
|
+
| 'default'
|
|
12153
|
+
| 'flex'
|
|
12154
|
+
| 'scale'
|
|
12155
|
+
| 'priority'
|
|
12156
|
+
| 'fast'
|
|
12157
|
+
| 'ultrafast'
|
|
12158
|
+
| null;
|
|
10867
12159
|
|
|
10868
12160
|
export interface BetaSkillReference {
|
|
10869
12161
|
/**
|
|
@@ -11146,18 +12438,13 @@ export namespace BetaTool {
|
|
|
11146
12438
|
action?: 'generate' | 'edit' | 'auto';
|
|
11147
12439
|
|
|
11148
12440
|
/**
|
|
11149
|
-
* Allows to set transparency for the background of the generated image(s).
|
|
11150
|
-
*
|
|
11151
|
-
*
|
|
11152
|
-
* When `auto` is used, the model will automatically determine the best background
|
|
11153
|
-
* for the image.
|
|
12441
|
+
* Allows to set transparency for the background of the generated image(s). Must be
|
|
12442
|
+
* one of `transparent`, `opaque`, or `auto` (default value). When `auto` is used,
|
|
12443
|
+
* the model will automatically determine the best background for the image.
|
|
11154
12444
|
*
|
|
11155
|
-
*
|
|
11156
|
-
*
|
|
11157
|
-
*
|
|
11158
|
-
*
|
|
11159
|
-
* If `transparent`, the output format needs to support transparency, so it should
|
|
11160
|
-
* be set to either `png` (default value) or `webp`.
|
|
12445
|
+
* Transparent backgrounds are available for supported GPT Image models. For
|
|
12446
|
+
* `gpt-image-2` and `gpt-image-2-2026-04-21`, this support is in preview. When
|
|
12447
|
+
* using `transparent`, set the output format to `png` or `webp`.
|
|
11161
12448
|
*/
|
|
11162
12449
|
background?: 'transparent' | 'opaque' | 'auto';
|
|
11163
12450
|
|
|
@@ -11176,7 +12463,9 @@ export namespace BetaTool {
|
|
|
11176
12463
|
input_image_mask?: ImageGeneration.InputImageMask;
|
|
11177
12464
|
|
|
11178
12465
|
/**
|
|
11179
|
-
* The image generation model to use.
|
|
12466
|
+
* The image generation model to use. One of `gpt-image-1`, `gpt-image-1-mini`,
|
|
12467
|
+
* `gpt-image-1.5`, `gpt-image-2`, `gpt-image-2-2026-04-21`, or
|
|
12468
|
+
* `chatgpt-image-latest`. Default: `gpt-image-1`.
|
|
11180
12469
|
*/
|
|
11181
12470
|
model?:
|
|
11182
12471
|
| (string & {})
|
|
@@ -11503,6 +12792,13 @@ export interface BetaWebSearchTool {
|
|
|
11503
12792
|
*/
|
|
11504
12793
|
type: 'web_search' | 'web_search_2025_08_26';
|
|
11505
12794
|
|
|
12795
|
+
/**
|
|
12796
|
+
* Allow live internet access for web search. Defaults to true when omitted. When
|
|
12797
|
+
* false, the web search tool runs in offline/cache-only mode and will not fetch
|
|
12798
|
+
* new external content.
|
|
12799
|
+
*/
|
|
12800
|
+
external_web_access?: boolean;
|
|
12801
|
+
|
|
11506
12802
|
/**
|
|
11507
12803
|
* Filters for the search.
|
|
11508
12804
|
*/
|
|
@@ -11671,6 +12967,7 @@ export interface ResponseCreateParamsBase {
|
|
|
11671
12967
|
| 'gpt-5.6-terra'
|
|
11672
12968
|
| 'gpt-5.6-luna'
|
|
11673
12969
|
| 'gpt-5.5'
|
|
12970
|
+
| 'gpt-5.5-2026-04-23'
|
|
11674
12971
|
| 'gpt-5.4'
|
|
11675
12972
|
| 'gpt-5.4-mini'
|
|
11676
12973
|
| 'gpt-5.4-nano'
|
|
@@ -11759,10 +13056,15 @@ export interface ResponseCreateParamsBase {
|
|
|
11759
13056
|
| 'o4-mini-deep-research-2025-06-26'
|
|
11760
13057
|
| 'computer-use-preview'
|
|
11761
13058
|
| 'computer-use-preview-2025-03-11'
|
|
13059
|
+
| 'gpt-5.5-pro'
|
|
13060
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
11762
13061
|
| 'gpt-5-codex'
|
|
11763
13062
|
| 'gpt-5-pro'
|
|
11764
13063
|
| 'gpt-5-pro-2025-10-06'
|
|
11765
13064
|
| 'gpt-5.1-codex-max'
|
|
13065
|
+
| 'gpt-daybreak-blue-latest'
|
|
13066
|
+
| 'gpt-daybreak-red-latest'
|
|
13067
|
+
| 'gpt-5.6-cyber'
|
|
11766
13068
|
| (string & {});
|
|
11767
13069
|
|
|
11768
13070
|
/**
|
|
@@ -11870,6 +13172,10 @@ export interface ResponseCreateParamsBase {
|
|
|
11870
13172
|
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
11871
13173
|
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
11872
13174
|
* request.
|
|
13175
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
13176
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
13177
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
13178
|
+
* `service_tier=ultrafast`.
|
|
11873
13179
|
* - When not set, the default behavior is 'auto'.
|
|
11874
13180
|
*
|
|
11875
13181
|
* When the `service_tier` parameter is set, the response body will include the
|
|
@@ -11877,7 +13183,7 @@ export interface ResponseCreateParamsBase {
|
|
|
11877
13183
|
* request. This response value may be different from the value set in the
|
|
11878
13184
|
* parameter.
|
|
11879
13185
|
*/
|
|
11880
|
-
service_tier?:
|
|
13186
|
+
service_tier?: BetaServiceTier | null;
|
|
11881
13187
|
|
|
11882
13188
|
/**
|
|
11883
13189
|
* Body param: Whether to store the generated model response for later retrieval
|
|
@@ -12315,6 +13621,7 @@ export interface ResponseCompactParams {
|
|
|
12315
13621
|
| 'gpt-5.6-terra'
|
|
12316
13622
|
| 'gpt-5.6-luna'
|
|
12317
13623
|
| 'gpt-5.5'
|
|
13624
|
+
| 'gpt-5.5-2026-04-23'
|
|
12318
13625
|
| 'gpt-5.4'
|
|
12319
13626
|
| 'gpt-5.4-mini'
|
|
12320
13627
|
| 'gpt-5.4-nano'
|
|
@@ -12403,10 +13710,15 @@ export interface ResponseCompactParams {
|
|
|
12403
13710
|
| 'o4-mini-deep-research-2025-06-26'
|
|
12404
13711
|
| 'computer-use-preview'
|
|
12405
13712
|
| 'computer-use-preview-2025-03-11'
|
|
13713
|
+
| 'gpt-5.5-pro'
|
|
13714
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
12406
13715
|
| 'gpt-5-codex'
|
|
12407
13716
|
| 'gpt-5-pro'
|
|
12408
13717
|
| 'gpt-5-pro-2025-10-06'
|
|
12409
13718
|
| 'gpt-5.1-codex-max'
|
|
13719
|
+
| 'gpt-daybreak-blue-latest'
|
|
13720
|
+
| 'gpt-daybreak-red-latest'
|
|
13721
|
+
| 'gpt-5.6-cyber'
|
|
12410
13722
|
| (string & {})
|
|
12411
13723
|
| null;
|
|
12412
13724
|
|
|
@@ -12535,10 +13847,12 @@ export declare namespace Responses {
|
|
|
12535
13847
|
type BetaFileSearchTool as BetaFileSearchTool,
|
|
12536
13848
|
type BetaFunctionShellTool as BetaFunctionShellTool,
|
|
12537
13849
|
type BetaFunctionTool as BetaFunctionTool,
|
|
13850
|
+
type BetaImageDetail as BetaImageDetail,
|
|
12538
13851
|
type BetaInlineSkill as BetaInlineSkill,
|
|
12539
13852
|
type BetaInlineSkillSource as BetaInlineSkillSource,
|
|
12540
13853
|
type BetaLocalEnvironment as BetaLocalEnvironment,
|
|
12541
13854
|
type BetaLocalSkill as BetaLocalSkill,
|
|
13855
|
+
type BetaMcpToolCallError as BetaMcpToolCallError,
|
|
12542
13856
|
type BetaNamespaceTool as BetaNamespaceTool,
|
|
12543
13857
|
type BetaResponse as BetaResponse,
|
|
12544
13858
|
type BetaResponseApplyPatchToolCall as BetaResponseApplyPatchToolCall,
|
|
@@ -12642,6 +13956,11 @@ export declare namespace Responses {
|
|
|
12642
13956
|
type BetaResponseReasoningTextDoneEvent as BetaResponseReasoningTextDoneEvent,
|
|
12643
13957
|
type BetaResponseRefusalDeltaEvent as BetaResponseRefusalDeltaEvent,
|
|
12644
13958
|
type BetaResponseRefusalDoneEvent as BetaResponseRefusalDoneEvent,
|
|
13959
|
+
type BetaResponseShellCallCommandAddedEvent as BetaResponseShellCallCommandAddedEvent,
|
|
13960
|
+
type BetaResponseShellCallCommandDeltaEvent as BetaResponseShellCallCommandDeltaEvent,
|
|
13961
|
+
type BetaResponseShellCallCommandDoneEvent as BetaResponseShellCallCommandDoneEvent,
|
|
13962
|
+
type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent,
|
|
13963
|
+
type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent,
|
|
12645
13964
|
type BetaResponseStatus as BetaResponseStatus,
|
|
12646
13965
|
type BetaResponseStreamEvent as BetaResponseStreamEvent,
|
|
12647
13966
|
type BetaResponseTextConfig as BetaResponseTextConfig,
|
|
@@ -12656,6 +13975,7 @@ export declare namespace Responses {
|
|
|
12656
13975
|
type BetaResponseWebSearchCallSearchingEvent as BetaResponseWebSearchCallSearchingEvent,
|
|
12657
13976
|
type BetaResponsesClientEvent as BetaResponsesClientEvent,
|
|
12658
13977
|
type BetaResponsesServerEvent as BetaResponsesServerEvent,
|
|
13978
|
+
type BetaServiceTier as BetaServiceTier,
|
|
12659
13979
|
type BetaSkillReference as BetaSkillReference,
|
|
12660
13980
|
type BetaTool as BetaTool,
|
|
12661
13981
|
type BetaToolChoiceAllowed as BetaToolChoiceAllowed,
|