openai 7.3.0 → 7.5.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 +347 -0
- package/README.md +45 -10
- 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/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 +46 -3
- package/auth/subject-token-providers.js.map +1 -1
- package/auth/subject-token-providers.mjs +46 -3
- package/auth/subject-token-providers.mjs.map +1 -1
- package/auth/types.d.mts +14 -5
- package/auth/types.d.mts.map +1 -1
- package/auth/types.d.ts +14 -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 +59 -15
- package/auth/workload-identity-auth.js.map +1 -1
- package/auth/workload-identity-auth.mjs +59 -15
- package/auth/workload-identity-auth.mjs.map +1 -1
- package/azure.d.mts +27 -14
- package/azure.d.mts.map +1 -1
- package/azure.d.ts +27 -14
- package/azure.d.ts.map +1 -1
- package/azure.js +29 -18
- package/azure.js.map +1 -1
- package/azure.mjs +29 -18
- package/azure.mjs.map +1 -1
- package/bedrock.d.mts +17 -3
- package/bedrock.d.mts.map +1 -1
- package/bedrock.d.ts +17 -3
- package/bedrock.d.ts.map +1 -1
- package/bedrock.js +35 -4
- package/bedrock.js.map +1 -1
- package/bedrock.mjs +35 -4
- package/bedrock.mjs.map +1 -1
- package/beta/realtime/internal-base.d.mts +45 -4
- package/beta/realtime/internal-base.d.mts.map +1 -1
- package/beta/realtime/internal-base.d.ts +45 -4
- package/beta/realtime/internal-base.d.ts.map +1 -1
- package/beta/realtime/internal-base.js +38 -10
- package/beta/realtime/internal-base.js.map +1 -1
- package/beta/realtime/internal-base.mjs +38 -10
- package/beta/realtime/internal-base.mjs.map +1 -1
- package/beta/realtime/websocket.d.mts +57 -4
- package/beta/realtime/websocket.d.mts.map +1 -1
- package/beta/realtime/websocket.d.ts +57 -4
- package/beta/realtime/websocket.d.ts.map +1 -1
- package/beta/realtime/websocket.js +69 -9
- package/beta/realtime/websocket.js.map +1 -1
- package/beta/realtime/websocket.mjs +70 -10
- package/beta/realtime/websocket.mjs.map +1 -1
- package/beta/realtime/ws.d.mts +53 -3
- package/beta/realtime/ws.d.mts.map +1 -1
- package/beta/realtime/ws.d.ts +53 -3
- package/beta/realtime/ws.d.ts.map +1 -1
- package/beta/realtime/ws.js +63 -9
- package/beta/realtime/ws.js.map +1 -1
- package/beta/realtime/ws.mjs +64 -10
- package/beta/realtime/ws.mjs.map +1 -1
- package/client.d.mts +23 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -0
- package/client.d.ts.map +1 -1
- package/client.js +197 -27
- package/client.js.map +1 -1
- package/client.mjs +197 -27
- 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 +35 -11
- package/core/EventEmitter.js.map +1 -1
- package/core/EventEmitter.mjs +35 -11
- 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 +28 -2
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts +28 -2
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +125 -62
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +124 -61
- 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 +92 -28
- package/helpers/audio.js.map +1 -1
- package/helpers/audio.mjs +92 -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 +58 -15
- package/helpers/standard-schema.js.map +1 -1
- package/helpers/standard-schema.mjs +59 -16
- package/helpers/standard-schema.mjs.map +1 -1
- 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 +73 -20
- package/helpers/zod.js.map +1 -1
- package/helpers/zod.mjs +75 -22
- package/helpers/zod.mjs.map +1 -1
- package/index.d.mts +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -1
- 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 +289 -0
- package/internal/assistant-stream-delta.js.map +1 -0
- package/internal/assistant-stream-delta.mjs +281 -0
- package/internal/assistant-stream-delta.mjs.map +1 -0
- package/internal/bedrock.d.mts +80 -5
- package/internal/bedrock.d.mts.map +1 -1
- package/internal/bedrock.d.ts +80 -5
- package/internal/bedrock.d.ts.map +1 -1
- package/internal/bedrock.js +143 -8
- package/internal/bedrock.js.map +1 -1
- package/internal/bedrock.mjs +139 -8
- 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/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/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 +56 -47
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +56 -47
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js +0 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs +0 -1
- 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 +619 -0
- package/internal/responses/response-accumulator.js.map +1 -0
- package/internal/responses/response-accumulator.mjs +615 -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/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 +80 -14
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +80 -14
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +162 -66
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +162 -66
- 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 +0 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +0 -1
- 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 +94 -47
- package/internal/ws.js.map +1 -1
- package/internal/ws.mjs +93 -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 +60 -35
- package/lib/AbstractChatCompletionRunner.js.map +1 -1
- package/lib/AbstractChatCompletionRunner.mjs +61 -36
- 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 +180 -207
- package/lib/AssistantStream.js.map +1 -1
- package/lib/AssistantStream.mjs +181 -208
- 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 +158 -119
- package/lib/ChatCompletionStream.js.map +1 -1
- package/lib/ChatCompletionStream.mjs +160 -121
- 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 +24 -13
- package/lib/EventEmitter.js.map +1 -1
- package/lib/EventEmitter.mjs +24 -13
- package/lib/EventEmitter.mjs.map +1 -1
- package/lib/EventStream.d.mts +45 -9
- package/lib/EventStream.d.mts.map +1 -1
- package/lib/EventStream.d.ts +45 -9
- package/lib/EventStream.d.ts.map +1 -1
- package/lib/EventStream.js +169 -48
- package/lib/EventStream.js.map +1 -1
- package/lib/EventStream.mjs +169 -48
- 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/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/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 +114 -39
- package/lib/parser.js.map +1 -1
- package/lib/parser.mjs +112 -39
- package/lib/parser.mjs.map +1 -1
- 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 +37 -61
- package/lib/responses/ResponseStream.js.map +1 -1
- package/lib/responses/ResponseStream.mjs +38 -62
- 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/package.json +11 -5
- 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 +97 -10
- package/realtime/internal-base.d.mts.map +1 -1
- package/realtime/internal-base.d.ts +97 -10
- package/realtime/internal-base.d.ts.map +1 -1
- package/realtime/internal-base.js +79 -29
- package/realtime/internal-base.js.map +1 -1
- package/realtime/internal-base.mjs +79 -29
- package/realtime/internal-base.mjs.map +1 -1
- package/realtime/websocket.d.mts +62 -4
- package/realtime/websocket.d.mts.map +1 -1
- package/realtime/websocket.d.ts +62 -4
- package/realtime/websocket.d.ts.map +1 -1
- package/realtime/websocket.js +69 -8
- package/realtime/websocket.js.map +1 -1
- package/realtime/websocket.mjs +69 -8
- 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 +63 -7
- package/realtime/ws.js.map +1 -1
- package/realtime/ws.mjs +63 -7
- 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.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.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.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.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.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 +3 -2
- package/resources/beta/responses/internal-base.js.map +1 -1
- package/resources/beta/responses/internal-base.mjs +3 -2
- package/resources/beta/responses/internal-base.mjs.map +1 -1
- package/resources/beta/responses/responses.d.mts +1571 -441
- package/resources/beta/responses/responses.d.mts.map +1 -1
- package/resources/beta/responses/responses.d.ts +1571 -441
- 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.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.js +1 -1
- package/resources/beta/threads/runs/runs.js.map +1 -1
- package/resources/beta/threads/runs/runs.mjs +1 -1
- 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 +30 -3
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +30 -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 +4 -14
- package/resources/embeddings.js.map +1 -1
- package/resources/embeddings.mjs +4 -14
- 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.ts +1 -1
- package/resources/files.js +2 -2
- package/resources/files.js.map +1 -1
- package/resources/files.mjs +2 -2
- 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.map +1 -1
- 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.js +1 -1
- package/resources/realtime/calls.js.map +1 -1
- package/resources/realtime/calls.mjs +1 -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.js +1 -1
- package/resources/realtime/index.js.map +1 -1
- package/resources/realtime/index.mjs +1 -1
- package/resources/realtime/index.mjs.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 +3 -2
- package/resources/responses/internal-base.js.map +1 -1
- package/resources/responses/internal-base.mjs +3 -2
- package/resources/responses/internal-base.mjs.map +1 -1
- package/resources/responses/responses.d.mts +1196 -150
- package/resources/responses/responses.d.mts.map +1 -1
- package/resources/responses/responses.d.ts +1196 -150
- 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 +3 -3
- package/resources/vector-stores/file-batches.js.map +1 -1
- package/resources/vector-stores/file-batches.mjs +3 -3
- package/resources/vector-stores/file-batches.mjs.map +1 -1
- package/resources/vector-stores/files.js +1 -1
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +1 -1
- 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 +7 -6
- package/resources/webhooks/webhooks.js.map +1 -1
- package/resources/webhooks/webhooks.mjs +7 -6
- 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/subject-token-providers.ts +72 -9
- package/src/auth/types.ts +18 -5
- package/src/auth/workload-identity-auth.ts +60 -15
- package/src/azure.ts +59 -25
- package/src/bedrock.ts +46 -6
- package/src/beta/realtime/internal-base.ts +79 -15
- package/src/beta/realtime/websocket.ts +111 -26
- package/src/beta/realtime/ws.ts +105 -22
- package/src/client.ts +248 -36
- package/src/core/EventEmitter.ts +49 -21
- 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 +154 -72
- package/src/helpers/audio.ts +107 -32
- package/src/helpers/standard-schema.ts +250 -47
- package/src/helpers/zod.ts +140 -43
- package/src/index.ts +1 -3
- package/src/internal/assistant-stream-delta.ts +411 -0
- package/src/internal/bedrock.ts +228 -13
- package/src/internal/builtin-types.ts +0 -2
- 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/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 +65 -49
- package/src/internal/request-options.ts +0 -2
- 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 +845 -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 +259 -77
- package/src/internal/utils/base64.ts +0 -2
- package/src/internal/utils/bytes.ts +5 -0
- package/src/internal/utils/env.ts +0 -2
- 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 +132 -50
- package/src/lib/.keep +2 -2
- package/src/lib/AbstractChatCompletionRunner.ts +109 -58
- package/src/lib/AssistantStream.ts +239 -220
- package/src/lib/ChatCompletionRunner.ts +24 -16
- package/src/lib/ChatCompletionStream.ts +347 -177
- package/src/lib/ChatCompletionStreamingRunner.ts +54 -94
- package/src/lib/EventEmitter.ts +39 -23
- package/src/lib/EventStream.ts +228 -59
- package/src/lib/ResponsesParser.ts +92 -40
- package/src/lib/RunnableFunction.ts +62 -32
- package/src/lib/chatCompletionUtils.ts +9 -10
- package/src/lib/jsonschema.ts +74 -34
- package/src/lib/parser.ts +180 -59
- 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 +83 -81
- package/src/lib/transform.ts +160 -108
- package/src/providers/bedrock/aws.ts +114 -41
- package/src/providers/bedrock.ts +22 -4
- package/src/realtime/internal-base.ts +191 -41
- package/src/realtime/websocket.ts +103 -21
- package/src/realtime/ws.ts +97 -16
- 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 +1 -1
- package/src/resources/admin/organization/invites.ts +1 -1
- package/src/resources/admin/organization/organization.ts +1 -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 +1 -1
- package/src/resources/admin/organization/projects/model-permissions.ts +1 -1
- package/src/resources/admin/organization/projects/projects.ts +1 -1
- 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 +1 -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 +9 -10
- package/src/resources/beta/responses/responses.ts +2291 -944
- 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 +1 -1
- package/src/resources/beta/threads/runs/runs.ts +1 -1
- 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 +39 -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 +17 -4
- 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 +2 -2
- 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 +8 -2
- 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/calls.ts +1 -1
- package/src/resources/realtime/client-secrets.ts +1 -1
- package/src/resources/realtime/index.ts +1 -1
- package/src/resources/realtime/realtime.ts +1 -1
- 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 +9 -10
- package/src/resources/responses/responses.ts +1574 -352
- 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 +15 -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 +9 -5
- package/src/resources/vector-stores/files.ts +1 -1
- 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 +9 -12
- 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
|
*/
|
|
@@ -1101,6 +1132,8 @@ export interface BetaResponse {
|
|
|
1101
1132
|
| 'gpt-5.6-sol'
|
|
1102
1133
|
| 'gpt-5.6-terra'
|
|
1103
1134
|
| 'gpt-5.6-luna'
|
|
1135
|
+
| 'gpt-5.5'
|
|
1136
|
+
| 'gpt-5.5-2026-04-23'
|
|
1104
1137
|
| 'gpt-5.4'
|
|
1105
1138
|
| 'gpt-5.4-mini'
|
|
1106
1139
|
| 'gpt-5.4-nano'
|
|
@@ -1189,10 +1222,15 @@ export interface BetaResponse {
|
|
|
1189
1222
|
| 'o4-mini-deep-research-2025-06-26'
|
|
1190
1223
|
| 'computer-use-preview'
|
|
1191
1224
|
| 'computer-use-preview-2025-03-11'
|
|
1225
|
+
| 'gpt-5.5-pro'
|
|
1226
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
1192
1227
|
| 'gpt-5-codex'
|
|
1193
1228
|
| 'gpt-5-pro'
|
|
1194
1229
|
| 'gpt-5-pro-2025-10-06'
|
|
1195
1230
|
| 'gpt-5.1-codex-max'
|
|
1231
|
+
| 'gpt-daybreak-blue-latest'
|
|
1232
|
+
| 'gpt-daybreak-red-latest'
|
|
1233
|
+
| 'gpt-5.6-cyber'
|
|
1196
1234
|
| (string & {});
|
|
1197
1235
|
|
|
1198
1236
|
/**
|
|
@@ -1392,6 +1430,10 @@ export interface BetaResponse {
|
|
|
1392
1430
|
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
1393
1431
|
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
1394
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`.
|
|
1395
1437
|
* - When not set, the default behavior is 'auto'.
|
|
1396
1438
|
*
|
|
1397
1439
|
* When the `service_tier` parameter is set, the response body will include the
|
|
@@ -1399,7 +1441,7 @@ export interface BetaResponse {
|
|
|
1399
1441
|
* request. This response value may be different from the value set in the
|
|
1400
1442
|
* parameter.
|
|
1401
1443
|
*/
|
|
1402
|
-
service_tier?:
|
|
1444
|
+
service_tier?: BetaServiceTier | null;
|
|
1403
1445
|
|
|
1404
1446
|
/**
|
|
1405
1447
|
* The status of the response generation. One of `completed`, `failed`,
|
|
@@ -4061,6 +4103,16 @@ export interface BetaResponseFunctionToolCallOutputItem {
|
|
|
4061
4103
|
* The identifier of the actor that created the item.
|
|
4062
4104
|
*/
|
|
4063
4105
|
created_by?: string;
|
|
4106
|
+
|
|
4107
|
+
/**
|
|
4108
|
+
* The name of the tool that produced the output.
|
|
4109
|
+
*/
|
|
4110
|
+
name?: string;
|
|
4111
|
+
|
|
4112
|
+
/**
|
|
4113
|
+
* The namespace of the tool that produced the output.
|
|
4114
|
+
*/
|
|
4115
|
+
namespace?: string;
|
|
4064
4116
|
}
|
|
4065
4117
|
|
|
4066
4118
|
export namespace BetaResponseFunctionToolCallOutputItem {
|
|
@@ -4386,6 +4438,26 @@ export interface BetaResponseImageGenCallPartialImageEvent {
|
|
|
4386
4438
|
* The agent that owns this multi-agent streaming event.
|
|
4387
4439
|
*/
|
|
4388
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;
|
|
4389
4461
|
}
|
|
4390
4462
|
|
|
4391
4463
|
export namespace BetaResponseImageGenCallPartialImageEvent {
|
|
@@ -4776,7 +4848,7 @@ export interface BetaResponseInputImage {
|
|
|
4776
4848
|
* The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
4777
4849
|
* `auto`, or `original`. Defaults to `auto`.
|
|
4778
4850
|
*/
|
|
4779
|
-
detail:
|
|
4851
|
+
detail: BetaImageDetail;
|
|
4780
4852
|
|
|
4781
4853
|
/**
|
|
4782
4854
|
* The type of the input item. Always `input_image`.
|
|
@@ -4830,7 +4902,7 @@ export interface BetaResponseInputImageContent {
|
|
|
4830
4902
|
* The detail level of the image to be sent to the model. One of `high`, `low`,
|
|
4831
4903
|
* `auto`, or `original`. Defaults to `auto`.
|
|
4832
4904
|
*/
|
|
4833
|
-
detail?:
|
|
4905
|
+
detail?: BetaImageDetail | null;
|
|
4834
4906
|
|
|
4835
4907
|
/**
|
|
4836
4908
|
* The ID of the file to be sent to the model.
|
|
@@ -5065,6 +5137,16 @@ export namespace BetaResponseInputItem {
|
|
|
5065
5137
|
*/
|
|
5066
5138
|
caller?: FunctionCallOutput.Direct | FunctionCallOutput.Program | null;
|
|
5067
5139
|
|
|
5140
|
+
/**
|
|
5141
|
+
* The name of the tool that produced the output.
|
|
5142
|
+
*/
|
|
5143
|
+
name?: string | null;
|
|
5144
|
+
|
|
5145
|
+
/**
|
|
5146
|
+
* The namespace of the tool that produced the output.
|
|
5147
|
+
*/
|
|
5148
|
+
namespace?: string | null;
|
|
5149
|
+
|
|
5068
5150
|
/**
|
|
5069
5151
|
* The status of the item. One of `in_progress`, `completed`, or `incomplete`.
|
|
5070
5152
|
* Populated when items are returned via API.
|
|
@@ -6214,7 +6296,7 @@ export namespace BetaResponseInputItem {
|
|
|
6214
6296
|
/**
|
|
6215
6297
|
* The error from the tool call, if any.
|
|
6216
6298
|
*/
|
|
6217
|
-
error?:
|
|
6299
|
+
error?: ResponsesAPI.BetaMcpToolCallError | null;
|
|
6218
6300
|
|
|
6219
6301
|
/**
|
|
6220
6302
|
* The output from the tool call.
|
|
@@ -6641,7 +6723,7 @@ export namespace BetaResponseItem {
|
|
|
6641
6723
|
* The detail level of the screenshot image to be sent to the model. One of `high`,
|
|
6642
6724
|
* `low`, `auto`, or `original`. Defaults to `auto`.
|
|
6643
6725
|
*/
|
|
6644
|
-
detail:
|
|
6726
|
+
detail: ResponsesAPI.BetaImageDetail;
|
|
6645
6727
|
|
|
6646
6728
|
/**
|
|
6647
6729
|
* The identifier of an uploaded file that contains the screenshot.
|
|
@@ -7311,7 +7393,7 @@ export namespace BetaResponseItem {
|
|
|
7311
7393
|
/**
|
|
7312
7394
|
* The error from the tool call, if any.
|
|
7313
7395
|
*/
|
|
7314
|
-
error?:
|
|
7396
|
+
error?: ResponsesAPI.BetaMcpToolCallError | null;
|
|
7315
7397
|
|
|
7316
7398
|
/**
|
|
7317
7399
|
* The output from the tool call.
|
|
@@ -7845,7 +7927,7 @@ export namespace BetaResponseOutputItem {
|
|
|
7845
7927
|
* The detail level of the screenshot image to be sent to the model. One of `high`,
|
|
7846
7928
|
* `low`, `auto`, or `original`. Defaults to `auto`.
|
|
7847
7929
|
*/
|
|
7848
|
-
detail:
|
|
7930
|
+
detail: ResponsesAPI.BetaImageDetail;
|
|
7849
7931
|
|
|
7850
7932
|
/**
|
|
7851
7933
|
* The identifier of an uploaded file that contains the screenshot.
|
|
@@ -8349,7 +8431,7 @@ export namespace BetaResponseOutputItem {
|
|
|
8349
8431
|
/**
|
|
8350
8432
|
* The error from the tool call, if any.
|
|
8351
8433
|
*/
|
|
8352
|
-
error?:
|
|
8434
|
+
error?: ResponsesAPI.BetaMcpToolCallError | null;
|
|
8353
8435
|
|
|
8354
8436
|
/**
|
|
8355
8437
|
* The output from the tool call.
|
|
@@ -8547,7 +8629,10 @@ export namespace BetaResponseOutputItem {
|
|
|
8547
8629
|
*/
|
|
8548
8630
|
export interface BetaResponseOutputItemAddedEvent {
|
|
8549
8631
|
/**
|
|
8550
|
-
* 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.
|
|
8551
8636
|
*/
|
|
8552
8637
|
item: BetaResponseOutputItem;
|
|
8553
8638
|
|
|
@@ -8867,9 +8952,14 @@ export namespace BetaResponseOutputText {
|
|
|
8867
8952
|
*/
|
|
8868
8953
|
export interface BetaResponseOutputTextAnnotationAddedEvent {
|
|
8869
8954
|
/**
|
|
8870
|
-
*
|
|
8955
|
+
* An annotation that applies to a span of output text.
|
|
8871
8956
|
*/
|
|
8872
|
-
annotation:
|
|
8957
|
+
annotation:
|
|
8958
|
+
| BetaResponseOutputTextAnnotationAddedEvent.FileCitation
|
|
8959
|
+
| BetaResponseOutputTextAnnotationAddedEvent.URLCitation
|
|
8960
|
+
| BetaResponseOutputTextAnnotationAddedEvent.ContainerFileCitation
|
|
8961
|
+
| BetaResponseOutputTextAnnotationAddedEvent.FilePath
|
|
8962
|
+
| null;
|
|
8873
8963
|
|
|
8874
8964
|
/**
|
|
8875
8965
|
* The index of the annotation within the content part.
|
|
@@ -8908,6 +8998,116 @@ export interface BetaResponseOutputTextAnnotationAddedEvent {
|
|
|
8908
8998
|
}
|
|
8909
8999
|
|
|
8910
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
|
+
|
|
8911
9111
|
/**
|
|
8912
9112
|
* The agent that owns this multi-agent streaming event.
|
|
8913
9113
|
*/
|
|
@@ -9017,6 +9217,11 @@ export interface BetaResponseReasoningItem {
|
|
|
9017
9217
|
* The encrypted content of the reasoning item. This is populated by default for
|
|
9018
9218
|
* reasoning items returned by `POST /v1/responses` and WebSocket `response.create`
|
|
9019
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.
|
|
9020
9225
|
*/
|
|
9021
9226
|
encrypted_content?: string | null;
|
|
9022
9227
|
|
|
@@ -9522,191 +9727,41 @@ export namespace BetaResponseRefusalDoneEvent {
|
|
|
9522
9727
|
}
|
|
9523
9728
|
|
|
9524
9729
|
/**
|
|
9525
|
-
*
|
|
9526
|
-
* `in_progress`, `cancelled`, `queued`, or `incomplete`.
|
|
9730
|
+
* A streaming event that indicated a shell command was added to a tool call.
|
|
9527
9731
|
*/
|
|
9528
|
-
export
|
|
9529
|
-
|
|
9530
|
-
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
| 'queued'
|
|
9534
|
-
| 'incomplete';
|
|
9732
|
+
export interface BetaResponseShellCallCommandAddedEvent {
|
|
9733
|
+
/**
|
|
9734
|
+
* The shell command that was added.
|
|
9735
|
+
*/
|
|
9736
|
+
command: string;
|
|
9535
9737
|
|
|
9536
|
-
/**
|
|
9537
|
-
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
| BetaResponseAudioDeltaEvent
|
|
9541
|
-
| BetaResponseAudioDoneEvent
|
|
9542
|
-
| BetaResponseAudioTranscriptDeltaEvent
|
|
9543
|
-
| BetaResponseAudioTranscriptDoneEvent
|
|
9544
|
-
| BetaResponseCodeInterpreterCallCodeDeltaEvent
|
|
9545
|
-
| BetaResponseCodeInterpreterCallCodeDoneEvent
|
|
9546
|
-
| BetaResponseCodeInterpreterCallCompletedEvent
|
|
9547
|
-
| BetaResponseCodeInterpreterCallInProgressEvent
|
|
9548
|
-
| BetaResponseCodeInterpreterCallInterpretingEvent
|
|
9549
|
-
| BetaResponseCompletedEvent
|
|
9550
|
-
| BetaResponseContentPartAddedEvent
|
|
9551
|
-
| BetaResponseContentPartDoneEvent
|
|
9552
|
-
| BetaResponseCreatedEvent
|
|
9553
|
-
| BetaResponseErrorEvent
|
|
9554
|
-
| BetaResponseFileSearchCallCompletedEvent
|
|
9555
|
-
| BetaResponseFileSearchCallInProgressEvent
|
|
9556
|
-
| BetaResponseFileSearchCallSearchingEvent
|
|
9557
|
-
| BetaResponseFunctionCallArgumentsDeltaEvent
|
|
9558
|
-
| BetaResponseFunctionCallArgumentsDoneEvent
|
|
9559
|
-
| BetaResponseInProgressEvent
|
|
9560
|
-
| BetaResponseFailedEvent
|
|
9561
|
-
| BetaResponseIncompleteEvent
|
|
9562
|
-
| BetaResponseOutputItemAddedEvent
|
|
9563
|
-
| BetaResponseOutputItemDoneEvent
|
|
9564
|
-
| BetaResponseReasoningSummaryPartAddedEvent
|
|
9565
|
-
| BetaResponseReasoningSummaryPartDoneEvent
|
|
9566
|
-
| BetaResponseReasoningSummaryTextDeltaEvent
|
|
9567
|
-
| BetaResponseReasoningSummaryTextDoneEvent
|
|
9568
|
-
| BetaResponseReasoningTextDeltaEvent
|
|
9569
|
-
| BetaResponseReasoningTextDoneEvent
|
|
9570
|
-
| BetaResponseRefusalDeltaEvent
|
|
9571
|
-
| BetaResponseRefusalDoneEvent
|
|
9572
|
-
| BetaResponseTextDeltaEvent
|
|
9573
|
-
| BetaResponseTextDoneEvent
|
|
9574
|
-
| BetaResponseWebSearchCallCompletedEvent
|
|
9575
|
-
| BetaResponseWebSearchCallInProgressEvent
|
|
9576
|
-
| BetaResponseWebSearchCallSearchingEvent
|
|
9577
|
-
| BetaResponseImageGenCallCompletedEvent
|
|
9578
|
-
| BetaResponseImageGenCallGeneratingEvent
|
|
9579
|
-
| BetaResponseImageGenCallInProgressEvent
|
|
9580
|
-
| BetaResponseImageGenCallPartialImageEvent
|
|
9581
|
-
| BetaResponseMcpCallArgumentsDeltaEvent
|
|
9582
|
-
| BetaResponseMcpCallArgumentsDoneEvent
|
|
9583
|
-
| BetaResponseMcpCallCompletedEvent
|
|
9584
|
-
| BetaResponseMcpCallFailedEvent
|
|
9585
|
-
| BetaResponseMcpCallInProgressEvent
|
|
9586
|
-
| BetaResponseMcpListToolsCompletedEvent
|
|
9587
|
-
| BetaResponseMcpListToolsFailedEvent
|
|
9588
|
-
| BetaResponseMcpListToolsInProgressEvent
|
|
9589
|
-
| BetaResponseOutputTextAnnotationAddedEvent
|
|
9590
|
-
| BetaResponseQueuedEvent
|
|
9591
|
-
| BetaResponseCustomToolCallInputDeltaEvent
|
|
9592
|
-
| BetaResponseCustomToolCallInputDoneEvent;
|
|
9738
|
+
/**
|
|
9739
|
+
* The index of the shell command that was added.
|
|
9740
|
+
*/
|
|
9741
|
+
command_index: number;
|
|
9593
9742
|
|
|
9594
|
-
/**
|
|
9595
|
-
* Configuration options for a text response from the model. Can be plain text or
|
|
9596
|
-
* structured JSON data. Learn more:
|
|
9597
|
-
*
|
|
9598
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
9599
|
-
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
9600
|
-
*/
|
|
9601
|
-
export interface BetaResponseTextConfig {
|
|
9602
9743
|
/**
|
|
9603
|
-
*
|
|
9604
|
-
*
|
|
9605
|
-
* Configuring `{ "type": "json_schema" }` enables Structured Outputs, which
|
|
9606
|
-
* ensures the model will match your supplied JSON schema. Learn more in the
|
|
9607
|
-
* [Structured Outputs guide](https://platform.openai.com/docs/guides/structured-outputs).
|
|
9608
|
-
*
|
|
9609
|
-
* The default format is `{ "type": "text" }` with no additional options.
|
|
9610
|
-
*
|
|
9611
|
-
* **Not recommended for gpt-4o and newer models:**
|
|
9612
|
-
*
|
|
9613
|
-
* Setting to `{ "type": "json_object" }` enables the older JSON mode, which
|
|
9614
|
-
* ensures the message the model generates is valid JSON. Using `json_schema` is
|
|
9615
|
-
* preferred for models that support it.
|
|
9744
|
+
* The index of the output item that was updated.
|
|
9616
9745
|
*/
|
|
9617
|
-
|
|
9746
|
+
output_index: number;
|
|
9618
9747
|
|
|
9619
9748
|
/**
|
|
9620
|
-
*
|
|
9621
|
-
* more concise responses, while higher values will result in more verbose
|
|
9622
|
-
* responses. Currently supported values are `low`, `medium`, and `high`. The
|
|
9623
|
-
* default is `medium`.
|
|
9749
|
+
* The sequence number of the event that was emitted.
|
|
9624
9750
|
*/
|
|
9625
|
-
|
|
9626
|
-
}
|
|
9627
|
-
|
|
9628
|
-
/**
|
|
9629
|
-
* Emitted when there is an additional text delta.
|
|
9630
|
-
*/
|
|
9631
|
-
export interface BetaResponseTextDeltaEvent {
|
|
9632
|
-
/**
|
|
9633
|
-
* The index of the content part that the text delta was added to.
|
|
9634
|
-
*/
|
|
9635
|
-
content_index: number;
|
|
9636
|
-
|
|
9637
|
-
/**
|
|
9638
|
-
* The text delta that was added.
|
|
9639
|
-
*/
|
|
9640
|
-
delta: string;
|
|
9641
|
-
|
|
9642
|
-
/**
|
|
9643
|
-
* The ID of the output item that the text delta was added to.
|
|
9644
|
-
*/
|
|
9645
|
-
item_id: string;
|
|
9646
|
-
|
|
9647
|
-
/**
|
|
9648
|
-
* The log probabilities of the tokens in the delta.
|
|
9649
|
-
*/
|
|
9650
|
-
logprobs: Array<BetaResponseTextDeltaEvent.Logprob>;
|
|
9651
|
-
|
|
9652
|
-
/**
|
|
9653
|
-
* The index of the output item that the text delta was added to.
|
|
9654
|
-
*/
|
|
9655
|
-
output_index: number;
|
|
9656
|
-
|
|
9657
|
-
/**
|
|
9658
|
-
* The sequence number for this event.
|
|
9659
|
-
*/
|
|
9660
|
-
sequence_number: number;
|
|
9751
|
+
sequence_number: number;
|
|
9661
9752
|
|
|
9662
9753
|
/**
|
|
9663
|
-
* The type of the event
|
|
9754
|
+
* The type of the event, always `response.shell_call_command.added`.
|
|
9664
9755
|
*/
|
|
9665
|
-
type: 'response.
|
|
9756
|
+
type: 'response.shell_call_command.added';
|
|
9666
9757
|
|
|
9667
9758
|
/**
|
|
9668
9759
|
* The agent that owns this multi-agent streaming event.
|
|
9669
9760
|
*/
|
|
9670
|
-
agent?:
|
|
9761
|
+
agent?: BetaResponseShellCallCommandAddedEvent.Agent;
|
|
9671
9762
|
}
|
|
9672
9763
|
|
|
9673
|
-
export namespace
|
|
9674
|
-
/**
|
|
9675
|
-
* A logprob is the logarithmic probability that the model assigns to producing a
|
|
9676
|
-
* particular token at a given position in the sequence. Less-negative (higher)
|
|
9677
|
-
* logprob values indicate greater model confidence in that token choice.
|
|
9678
|
-
*/
|
|
9679
|
-
export interface Logprob {
|
|
9680
|
-
/**
|
|
9681
|
-
* A possible text token.
|
|
9682
|
-
*/
|
|
9683
|
-
token: string;
|
|
9684
|
-
|
|
9685
|
-
/**
|
|
9686
|
-
* The log probability of this token.
|
|
9687
|
-
*/
|
|
9688
|
-
logprob: number;
|
|
9689
|
-
|
|
9690
|
-
/**
|
|
9691
|
-
* The log probabilities of up to 20 of the most likely tokens.
|
|
9692
|
-
*/
|
|
9693
|
-
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
9694
|
-
}
|
|
9695
|
-
|
|
9696
|
-
export namespace Logprob {
|
|
9697
|
-
export interface TopLogprob {
|
|
9698
|
-
/**
|
|
9699
|
-
* A possible text token.
|
|
9700
|
-
*/
|
|
9701
|
-
token?: string;
|
|
9702
|
-
|
|
9703
|
-
/**
|
|
9704
|
-
* The log probability of this token.
|
|
9705
|
-
*/
|
|
9706
|
-
logprob?: number;
|
|
9707
|
-
}
|
|
9708
|
-
}
|
|
9709
|
-
|
|
9764
|
+
export namespace BetaResponseShellCallCommandAddedEvent {
|
|
9710
9765
|
/**
|
|
9711
9766
|
* The agent that owns this multi-agent streaming event.
|
|
9712
9767
|
*/
|
|
@@ -9719,87 +9774,46 @@ export namespace BetaResponseTextDeltaEvent {
|
|
|
9719
9774
|
}
|
|
9720
9775
|
|
|
9721
9776
|
/**
|
|
9722
|
-
*
|
|
9777
|
+
* A streaming event that indicated a shell command was incrementally updated.
|
|
9723
9778
|
*/
|
|
9724
|
-
export interface
|
|
9725
|
-
/**
|
|
9726
|
-
* The index of the content part that the text content is finalized.
|
|
9727
|
-
*/
|
|
9728
|
-
content_index: number;
|
|
9729
|
-
|
|
9779
|
+
export interface BetaResponseShellCallCommandDeltaEvent {
|
|
9730
9780
|
/**
|
|
9731
|
-
* The
|
|
9781
|
+
* The index of the shell command that was updated.
|
|
9732
9782
|
*/
|
|
9733
|
-
|
|
9783
|
+
command_index: number;
|
|
9734
9784
|
|
|
9735
9785
|
/**
|
|
9736
|
-
* The
|
|
9786
|
+
* The shell command delta that was appended.
|
|
9737
9787
|
*/
|
|
9738
|
-
|
|
9788
|
+
delta: string;
|
|
9739
9789
|
|
|
9740
9790
|
/**
|
|
9741
|
-
* The index of the output item that
|
|
9791
|
+
* The index of the output item that was updated.
|
|
9742
9792
|
*/
|
|
9743
9793
|
output_index: number;
|
|
9744
9794
|
|
|
9745
9795
|
/**
|
|
9746
|
-
* The sequence number
|
|
9796
|
+
* The sequence number of the event that was emitted.
|
|
9747
9797
|
*/
|
|
9748
9798
|
sequence_number: number;
|
|
9749
9799
|
|
|
9750
9800
|
/**
|
|
9751
|
-
* The
|
|
9752
|
-
*/
|
|
9753
|
-
text: string;
|
|
9754
|
-
|
|
9755
|
-
/**
|
|
9756
|
-
* The type of the event. Always `response.output_text.done`.
|
|
9801
|
+
* The type of the event, always `response.shell_call_command.delta`.
|
|
9757
9802
|
*/
|
|
9758
|
-
type: 'response.
|
|
9803
|
+
type: 'response.shell_call_command.delta';
|
|
9759
9804
|
|
|
9760
9805
|
/**
|
|
9761
9806
|
* The agent that owns this multi-agent streaming event.
|
|
9762
9807
|
*/
|
|
9763
|
-
agent?:
|
|
9764
|
-
}
|
|
9808
|
+
agent?: BetaResponseShellCallCommandDeltaEvent.Agent;
|
|
9765
9809
|
|
|
9766
|
-
export namespace BetaResponseTextDoneEvent {
|
|
9767
9810
|
/**
|
|
9768
|
-
*
|
|
9769
|
-
* particular token at a given position in the sequence. Less-negative (higher)
|
|
9770
|
-
* logprob values indicate greater model confidence in that token choice.
|
|
9811
|
+
* An obfuscation string that was added to pad the event payload.
|
|
9771
9812
|
*/
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
* A possible text token.
|
|
9775
|
-
*/
|
|
9776
|
-
token: string;
|
|
9777
|
-
|
|
9778
|
-
/**
|
|
9779
|
-
* The log probability of this token.
|
|
9780
|
-
*/
|
|
9781
|
-
logprob: number;
|
|
9782
|
-
|
|
9783
|
-
/**
|
|
9784
|
-
* The log probabilities of up to 20 of the most likely tokens.
|
|
9785
|
-
*/
|
|
9786
|
-
top_logprobs?: Array<Logprob.TopLogprob>;
|
|
9787
|
-
}
|
|
9788
|
-
|
|
9789
|
-
export namespace Logprob {
|
|
9790
|
-
export interface TopLogprob {
|
|
9791
|
-
/**
|
|
9792
|
-
* A possible text token.
|
|
9793
|
-
*/
|
|
9794
|
-
token?: string;
|
|
9795
|
-
|
|
9796
|
-
/**
|
|
9797
|
-
* The log probability of this token.
|
|
9798
|
-
*/
|
|
9799
|
-
logprob?: number;
|
|
9800
|
-
}
|
|
9801
|
-
}
|
|
9813
|
+
obfuscation?: string;
|
|
9814
|
+
}
|
|
9802
9815
|
|
|
9816
|
+
export namespace BetaResponseShellCallCommandDeltaEvent {
|
|
9803
9817
|
/**
|
|
9804
9818
|
* The agent that owns this multi-agent streaming event.
|
|
9805
9819
|
*/
|
|
@@ -9811,51 +9825,44 @@ export namespace BetaResponseTextDoneEvent {
|
|
|
9811
9825
|
}
|
|
9812
9826
|
}
|
|
9813
9827
|
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9818
|
-
id: string;
|
|
9819
|
-
|
|
9820
|
-
/**
|
|
9821
|
-
* Arguments used for the tool search call.
|
|
9822
|
-
*/
|
|
9823
|
-
arguments: unknown;
|
|
9824
|
-
|
|
9828
|
+
/**
|
|
9829
|
+
* A streaming event that indicated a shell command was completed.
|
|
9830
|
+
*/
|
|
9831
|
+
export interface BetaResponseShellCallCommandDoneEvent {
|
|
9825
9832
|
/**
|
|
9826
|
-
* The
|
|
9833
|
+
* The final shell command that was emitted.
|
|
9827
9834
|
*/
|
|
9828
|
-
|
|
9835
|
+
command: string;
|
|
9829
9836
|
|
|
9830
9837
|
/**
|
|
9831
|
-
*
|
|
9838
|
+
* The index of the shell command that was completed.
|
|
9832
9839
|
*/
|
|
9833
|
-
|
|
9840
|
+
command_index: number;
|
|
9834
9841
|
|
|
9835
9842
|
/**
|
|
9836
|
-
* The
|
|
9843
|
+
* The index of the output item that was updated.
|
|
9837
9844
|
*/
|
|
9838
|
-
|
|
9845
|
+
output_index: number;
|
|
9839
9846
|
|
|
9840
9847
|
/**
|
|
9841
|
-
* The
|
|
9848
|
+
* The sequence number of the event that was emitted.
|
|
9842
9849
|
*/
|
|
9843
|
-
|
|
9850
|
+
sequence_number: number;
|
|
9844
9851
|
|
|
9845
9852
|
/**
|
|
9846
|
-
* The
|
|
9853
|
+
* The type of the event, always `response.shell_call_command.done`.
|
|
9847
9854
|
*/
|
|
9848
|
-
|
|
9855
|
+
type: 'response.shell_call_command.done';
|
|
9849
9856
|
|
|
9850
9857
|
/**
|
|
9851
|
-
* The
|
|
9858
|
+
* The agent that owns this multi-agent streaming event.
|
|
9852
9859
|
*/
|
|
9853
|
-
|
|
9860
|
+
agent?: BetaResponseShellCallCommandDoneEvent.Agent;
|
|
9854
9861
|
}
|
|
9855
9862
|
|
|
9856
|
-
export namespace
|
|
9863
|
+
export namespace BetaResponseShellCallCommandDoneEvent {
|
|
9857
9864
|
/**
|
|
9858
|
-
* The agent that
|
|
9865
|
+
* The agent that owns this multi-agent streaming event.
|
|
9859
9866
|
*/
|
|
9860
9867
|
export interface Agent {
|
|
9861
9868
|
/**
|
|
@@ -9865,51 +9872,64 @@ export namespace BetaResponseToolSearchCall {
|
|
|
9865
9872
|
}
|
|
9866
9873
|
}
|
|
9867
9874
|
|
|
9868
|
-
|
|
9875
|
+
/**
|
|
9876
|
+
* A streaming event that indicated shell call output was incrementally added.
|
|
9877
|
+
*/
|
|
9878
|
+
export interface BetaResponseShellCallOutputContentDeltaEvent {
|
|
9869
9879
|
/**
|
|
9870
|
-
* The
|
|
9880
|
+
* The index of the shell command that produced output.
|
|
9871
9881
|
*/
|
|
9872
|
-
|
|
9882
|
+
command_index: number;
|
|
9873
9883
|
|
|
9874
9884
|
/**
|
|
9875
|
-
* The
|
|
9885
|
+
* The stdout/stderr delta that was emitted.
|
|
9876
9886
|
*/
|
|
9877
|
-
|
|
9887
|
+
delta: BetaResponseShellCallOutputContentDeltaEvent.Delta;
|
|
9878
9888
|
|
|
9879
9889
|
/**
|
|
9880
|
-
*
|
|
9890
|
+
* The ID of the output item that was updated.
|
|
9881
9891
|
*/
|
|
9882
|
-
|
|
9892
|
+
item_id: string;
|
|
9883
9893
|
|
|
9884
9894
|
/**
|
|
9885
|
-
* The
|
|
9895
|
+
* The index of the output item that was updated.
|
|
9886
9896
|
*/
|
|
9887
|
-
|
|
9897
|
+
output_index: number;
|
|
9888
9898
|
|
|
9889
9899
|
/**
|
|
9890
|
-
* The
|
|
9900
|
+
* The sequence number of the event that was emitted.
|
|
9891
9901
|
*/
|
|
9892
|
-
|
|
9902
|
+
sequence_number: number;
|
|
9893
9903
|
|
|
9894
9904
|
/**
|
|
9895
|
-
* The type of the
|
|
9905
|
+
* The type of the event, always `response.shell_call_output_content.delta`.
|
|
9896
9906
|
*/
|
|
9897
|
-
type: '
|
|
9907
|
+
type: 'response.shell_call_output_content.delta';
|
|
9898
9908
|
|
|
9899
9909
|
/**
|
|
9900
|
-
* The agent that
|
|
9910
|
+
* The agent that owns this multi-agent streaming event.
|
|
9901
9911
|
*/
|
|
9902
|
-
agent?:
|
|
9912
|
+
agent?: BetaResponseShellCallOutputContentDeltaEvent.Agent;
|
|
9913
|
+
}
|
|
9903
9914
|
|
|
9915
|
+
export namespace BetaResponseShellCallOutputContentDeltaEvent {
|
|
9904
9916
|
/**
|
|
9905
|
-
* The
|
|
9917
|
+
* The stdout/stderr delta that was emitted.
|
|
9906
9918
|
*/
|
|
9907
|
-
|
|
9908
|
-
|
|
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
|
+
}
|
|
9909
9930
|
|
|
9910
|
-
export namespace BetaResponseToolSearchOutputItem {
|
|
9911
9931
|
/**
|
|
9912
|
-
* The agent that
|
|
9932
|
+
* The agent that owns this multi-agent streaming event.
|
|
9913
9933
|
*/
|
|
9914
9934
|
export interface Agent {
|
|
9915
9935
|
/**
|
|
@@ -9919,187 +9939,302 @@ export namespace BetaResponseToolSearchOutputItem {
|
|
|
9919
9939
|
}
|
|
9920
9940
|
}
|
|
9921
9941
|
|
|
9922
|
-
|
|
9942
|
+
/**
|
|
9943
|
+
* A streaming event that indicated shell call output was completed.
|
|
9944
|
+
*/
|
|
9945
|
+
export interface BetaResponseShellCallOutputContentDoneEvent {
|
|
9923
9946
|
/**
|
|
9924
|
-
* The
|
|
9947
|
+
* The index of the shell command that produced output.
|
|
9925
9948
|
*/
|
|
9926
|
-
|
|
9949
|
+
command_index: number;
|
|
9927
9950
|
|
|
9928
9951
|
/**
|
|
9929
|
-
* The item
|
|
9952
|
+
* The ID of the output item that was updated.
|
|
9930
9953
|
*/
|
|
9931
|
-
|
|
9954
|
+
item_id: string;
|
|
9932
9955
|
|
|
9933
9956
|
/**
|
|
9934
|
-
* The
|
|
9957
|
+
* The output contents emitted for the shell command.
|
|
9935
9958
|
*/
|
|
9936
|
-
|
|
9959
|
+
output: Array<BetaResponseShellCallOutputContentDoneEvent.Output>;
|
|
9937
9960
|
|
|
9938
9961
|
/**
|
|
9939
|
-
* The
|
|
9962
|
+
* The index of the output item that was updated.
|
|
9940
9963
|
*/
|
|
9941
|
-
|
|
9964
|
+
output_index: number;
|
|
9942
9965
|
|
|
9943
9966
|
/**
|
|
9944
|
-
* The
|
|
9967
|
+
* The sequence number of the event that was emitted.
|
|
9945
9968
|
*/
|
|
9946
|
-
|
|
9969
|
+
sequence_number: number;
|
|
9947
9970
|
|
|
9948
9971
|
/**
|
|
9949
|
-
*
|
|
9972
|
+
* The type of the event, always `response.shell_call_output_content.done`.
|
|
9950
9973
|
*/
|
|
9951
|
-
|
|
9974
|
+
type: 'response.shell_call_output_content.done';
|
|
9952
9975
|
|
|
9953
9976
|
/**
|
|
9954
|
-
* The
|
|
9977
|
+
* The agent that owns this multi-agent streaming event.
|
|
9955
9978
|
*/
|
|
9956
|
-
|
|
9979
|
+
agent?: BetaResponseShellCallOutputContentDoneEvent.Agent;
|
|
9957
9980
|
}
|
|
9958
9981
|
|
|
9959
|
-
export namespace
|
|
9982
|
+
export namespace BetaResponseShellCallOutputContentDoneEvent {
|
|
9960
9983
|
/**
|
|
9961
|
-
* The
|
|
9984
|
+
* The content of a shell tool call output that was emitted.
|
|
9962
9985
|
*/
|
|
9963
|
-
export interface
|
|
9986
|
+
export interface Output {
|
|
9964
9987
|
/**
|
|
9965
|
-
*
|
|
9988
|
+
* Represents either an exit outcome (with an exit code) or a timeout outcome for a
|
|
9989
|
+
* shell call output chunk.
|
|
9966
9990
|
*/
|
|
9967
|
-
|
|
9968
|
-
}
|
|
9969
|
-
}
|
|
9970
|
-
|
|
9971
|
-
/**
|
|
9972
|
-
* Represents token usage details including input tokens, output tokens, a
|
|
9973
|
-
* breakdown of output tokens, and the total tokens used.
|
|
9974
|
-
*/
|
|
9975
|
-
export interface BetaResponseUsage {
|
|
9976
|
-
/**
|
|
9977
|
-
* The number of input tokens.
|
|
9978
|
-
*/
|
|
9979
|
-
input_tokens: number;
|
|
9991
|
+
outcome: Output.Timeout | Output.Exit;
|
|
9980
9992
|
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9993
|
+
/**
|
|
9994
|
+
* The standard error output that was captured.
|
|
9995
|
+
*/
|
|
9996
|
+
stderr: string;
|
|
9985
9997
|
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9998
|
+
/**
|
|
9999
|
+
* The standard output that was captured.
|
|
10000
|
+
*/
|
|
10001
|
+
stdout: string;
|
|
9990
10002
|
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
/**
|
|
9997
|
-
* The total number of tokens used.
|
|
9998
|
-
*/
|
|
9999
|
-
total_tokens: number;
|
|
10000
|
-
}
|
|
10003
|
+
/**
|
|
10004
|
+
* The identifier of the actor that created the item.
|
|
10005
|
+
*/
|
|
10006
|
+
created_by?: string;
|
|
10007
|
+
}
|
|
10001
10008
|
|
|
10002
|
-
export namespace
|
|
10003
|
-
/**
|
|
10004
|
-
* A detailed breakdown of the input tokens.
|
|
10005
|
-
*/
|
|
10006
|
-
export interface InputTokensDetails {
|
|
10009
|
+
export namespace Output {
|
|
10007
10010
|
/**
|
|
10008
|
-
*
|
|
10011
|
+
* Indicates that the shell call exceeded its configured time limit.
|
|
10009
10012
|
*/
|
|
10010
|
-
|
|
10013
|
+
export interface Timeout {
|
|
10014
|
+
/**
|
|
10015
|
+
* The outcome type. Always `timeout`.
|
|
10016
|
+
*/
|
|
10017
|
+
type: 'timeout';
|
|
10018
|
+
}
|
|
10011
10019
|
|
|
10012
10020
|
/**
|
|
10013
|
-
*
|
|
10014
|
-
* [More on prompt caching](https://platform.openai.com/docs/guides/prompt-caching).
|
|
10021
|
+
* Indicates that the shell commands finished and returned an exit code.
|
|
10015
10022
|
*/
|
|
10016
|
-
|
|
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
|
+
}
|
|
10017
10034
|
}
|
|
10018
10035
|
|
|
10019
10036
|
/**
|
|
10020
|
-
*
|
|
10037
|
+
* The agent that owns this multi-agent streaming event.
|
|
10021
10038
|
*/
|
|
10022
|
-
export interface
|
|
10039
|
+
export interface Agent {
|
|
10023
10040
|
/**
|
|
10024
|
-
* The
|
|
10041
|
+
* The canonical name of the agent that produced this item.
|
|
10025
10042
|
*/
|
|
10026
|
-
|
|
10043
|
+
agent_name: string;
|
|
10027
10044
|
}
|
|
10028
10045
|
}
|
|
10029
10046
|
|
|
10030
10047
|
/**
|
|
10031
|
-
*
|
|
10048
|
+
* The status of the response generation. One of `completed`, `failed`,
|
|
10049
|
+
* `in_progress`, `cancelled`, `queued`, or `incomplete`.
|
|
10032
10050
|
*/
|
|
10033
|
-
export
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
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;
|
|
10038
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 {
|
|
10039
10130
|
/**
|
|
10040
|
-
*
|
|
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.
|
|
10041
10144
|
*/
|
|
10042
|
-
|
|
10145
|
+
format?: BetaResponseFormatTextConfig;
|
|
10043
10146
|
|
|
10044
10147
|
/**
|
|
10045
|
-
*
|
|
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`.
|
|
10046
10152
|
*/
|
|
10047
|
-
|
|
10153
|
+
verbosity?: 'low' | 'medium' | 'high' | null;
|
|
10154
|
+
}
|
|
10048
10155
|
|
|
10156
|
+
/**
|
|
10157
|
+
* Emitted when there is an additional text delta.
|
|
10158
|
+
*/
|
|
10159
|
+
export interface BetaResponseTextDeltaEvent {
|
|
10049
10160
|
/**
|
|
10050
|
-
* The
|
|
10161
|
+
* The index of the content part that the text delta was added to.
|
|
10051
10162
|
*/
|
|
10052
|
-
|
|
10163
|
+
content_index: number;
|
|
10053
10164
|
|
|
10054
10165
|
/**
|
|
10055
|
-
* The
|
|
10166
|
+
* The text delta that was added.
|
|
10056
10167
|
*/
|
|
10057
|
-
|
|
10058
|
-
}
|
|
10168
|
+
delta: string;
|
|
10059
10169
|
|
|
10060
|
-
export namespace BetaResponseWebSearchCallCompletedEvent {
|
|
10061
10170
|
/**
|
|
10062
|
-
* The
|
|
10171
|
+
* The ID of the output item that the text delta was added to.
|
|
10063
10172
|
*/
|
|
10064
|
-
|
|
10065
|
-
/**
|
|
10066
|
-
* The canonical name of the agent that produced this item.
|
|
10067
|
-
*/
|
|
10068
|
-
agent_name: string;
|
|
10069
|
-
}
|
|
10070
|
-
}
|
|
10173
|
+
item_id: string;
|
|
10071
10174
|
|
|
10072
|
-
/**
|
|
10073
|
-
* Emitted when a web search call is initiated.
|
|
10074
|
-
*/
|
|
10075
|
-
export interface BetaResponseWebSearchCallInProgressEvent {
|
|
10076
10175
|
/**
|
|
10077
|
-
*
|
|
10176
|
+
* The log probabilities of the tokens in the delta.
|
|
10078
10177
|
*/
|
|
10079
|
-
|
|
10178
|
+
logprobs: Array<BetaResponseTextDeltaEvent.Logprob>;
|
|
10080
10179
|
|
|
10081
10180
|
/**
|
|
10082
|
-
* The index of the output item that the
|
|
10181
|
+
* The index of the output item that the text delta was added to.
|
|
10083
10182
|
*/
|
|
10084
10183
|
output_index: number;
|
|
10085
10184
|
|
|
10086
10185
|
/**
|
|
10087
|
-
* The sequence number
|
|
10186
|
+
* The sequence number for this event.
|
|
10088
10187
|
*/
|
|
10089
10188
|
sequence_number: number;
|
|
10090
10189
|
|
|
10091
10190
|
/**
|
|
10092
|
-
* The type of the event. Always `response.
|
|
10191
|
+
* The type of the event. Always `response.output_text.delta`.
|
|
10093
10192
|
*/
|
|
10094
|
-
type: 'response.
|
|
10193
|
+
type: 'response.output_text.delta';
|
|
10095
10194
|
|
|
10096
10195
|
/**
|
|
10097
10196
|
* The agent that owns this multi-agent streaming event.
|
|
10098
10197
|
*/
|
|
10099
|
-
agent?:
|
|
10198
|
+
agent?: BetaResponseTextDeltaEvent.Agent | null;
|
|
10100
10199
|
}
|
|
10101
10200
|
|
|
10102
|
-
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
|
+
|
|
10103
10238
|
/**
|
|
10104
10239
|
* The agent that owns this multi-agent streaming event.
|
|
10105
10240
|
*/
|
|
@@ -10112,736 +10247,1915 @@ export namespace BetaResponseWebSearchCallInProgressEvent {
|
|
|
10112
10247
|
}
|
|
10113
10248
|
|
|
10114
10249
|
/**
|
|
10115
|
-
* Emitted when
|
|
10250
|
+
* Emitted when text content is finalized.
|
|
10116
10251
|
*/
|
|
10117
|
-
export interface
|
|
10252
|
+
export interface BetaResponseTextDoneEvent {
|
|
10118
10253
|
/**
|
|
10119
|
-
*
|
|
10254
|
+
* The index of the content part that the text content is finalized.
|
|
10120
10255
|
*/
|
|
10121
|
-
|
|
10256
|
+
content_index: number;
|
|
10122
10257
|
|
|
10123
10258
|
/**
|
|
10124
|
-
* The
|
|
10259
|
+
* The ID of the output item that the text content is finalized.
|
|
10125
10260
|
*/
|
|
10126
|
-
|
|
10261
|
+
item_id: string;
|
|
10127
10262
|
|
|
10128
10263
|
/**
|
|
10129
|
-
* The
|
|
10264
|
+
* The log probabilities of the tokens in the delta.
|
|
10130
10265
|
*/
|
|
10131
|
-
|
|
10266
|
+
logprobs: Array<BetaResponseTextDoneEvent.Logprob>;
|
|
10132
10267
|
|
|
10133
10268
|
/**
|
|
10134
|
-
* The
|
|
10269
|
+
* The index of the output item that the text content is finalized.
|
|
10135
10270
|
*/
|
|
10136
|
-
|
|
10271
|
+
output_index: number;
|
|
10272
|
+
|
|
10273
|
+
/**
|
|
10274
|
+
* The sequence number for this event.
|
|
10275
|
+
*/
|
|
10276
|
+
sequence_number: number;
|
|
10277
|
+
|
|
10278
|
+
/**
|
|
10279
|
+
* The text content that is finalized.
|
|
10280
|
+
*/
|
|
10281
|
+
text: string;
|
|
10282
|
+
|
|
10283
|
+
/**
|
|
10284
|
+
* The type of the event. Always `response.output_text.done`.
|
|
10285
|
+
*/
|
|
10286
|
+
type: 'response.output_text.done';
|
|
10287
|
+
|
|
10288
|
+
/**
|
|
10289
|
+
* The agent that owns this multi-agent streaming event.
|
|
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
|
+
*/
|
|
10491
|
+
export interface Agent {
|
|
10492
|
+
/**
|
|
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
|
+
}
|
|
10137
11468
|
|
|
10138
11469
|
/**
|
|
10139
|
-
*
|
|
11470
|
+
* Emitted when the code interpreter call is completed.
|
|
10140
11471
|
*/
|
|
10141
|
-
|
|
10142
|
-
|
|
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
|
+
}
|
|
10143
11479
|
|
|
10144
|
-
export namespace BetaResponseWebSearchCallSearchingEvent {
|
|
10145
11480
|
/**
|
|
10146
|
-
*
|
|
11481
|
+
* Emitted when a code interpreter call is in progress.
|
|
10147
11482
|
*/
|
|
10148
|
-
export interface
|
|
11483
|
+
export interface BetaResponseCodeInterpreterCallInWsProgress extends BetaResponseCodeInterpreterCallInProgressEvent {
|
|
10149
11484
|
/**
|
|
10150
|
-
* The
|
|
11485
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11486
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10151
11487
|
*/
|
|
10152
|
-
|
|
11488
|
+
stream_id?: string;
|
|
10153
11489
|
}
|
|
10154
|
-
}
|
|
10155
11490
|
|
|
10156
|
-
/**
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
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
|
+
}
|
|
10160
11501
|
|
|
10161
|
-
export namespace BetaResponsesClientEvent {
|
|
10162
11502
|
/**
|
|
10163
|
-
*
|
|
10164
|
-
* This payload uses the same top-level fields as `POST /v1/responses`.
|
|
10165
|
-
*
|
|
10166
|
-
* Notes:
|
|
10167
|
-
*
|
|
10168
|
-
* - `stream` is implicit over WebSocket and should not be sent.
|
|
10169
|
-
* - `background` is not supported over WebSocket.
|
|
11503
|
+
* Emitted when the model response is complete.
|
|
10170
11504
|
*/
|
|
10171
|
-
export interface
|
|
11505
|
+
export interface BetaResponseWsCompleted extends BetaResponseCompletedEvent {
|
|
10172
11506
|
/**
|
|
10173
|
-
* The
|
|
11507
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11508
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10174
11509
|
*/
|
|
10175
|
-
|
|
11510
|
+
stream_id?: string;
|
|
11511
|
+
}
|
|
10176
11512
|
|
|
11513
|
+
/**
|
|
11514
|
+
* Emitted when a new content part is added.
|
|
11515
|
+
*/
|
|
11516
|
+
export interface BetaResponseContentPartWsAdded extends BetaResponseContentPartAddedEvent {
|
|
10177
11517
|
/**
|
|
10178
|
-
*
|
|
10179
|
-
*
|
|
11518
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11519
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10180
11520
|
*/
|
|
10181
|
-
|
|
11521
|
+
stream_id?: string;
|
|
11522
|
+
}
|
|
10182
11523
|
|
|
11524
|
+
/**
|
|
11525
|
+
* Emitted when a content part is done.
|
|
11526
|
+
*/
|
|
11527
|
+
export interface BetaResponseContentPartWsDone extends BetaResponseContentPartDoneEvent {
|
|
10183
11528
|
/**
|
|
10184
|
-
*
|
|
11529
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11530
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10185
11531
|
*/
|
|
10186
|
-
|
|
11532
|
+
stream_id?: string;
|
|
11533
|
+
}
|
|
10187
11534
|
|
|
11535
|
+
/**
|
|
11536
|
+
* An event that is emitted when a response is created.
|
|
11537
|
+
*/
|
|
11538
|
+
export interface BetaResponseWsCreated extends BetaResponseCreatedEvent {
|
|
10188
11539
|
/**
|
|
10189
|
-
* The
|
|
10190
|
-
*
|
|
10191
|
-
* items from this response are automatically added to this conversation after this
|
|
10192
|
-
* 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`.
|
|
10193
11542
|
*/
|
|
10194
|
-
|
|
11543
|
+
stream_id?: string;
|
|
11544
|
+
}
|
|
10195
11545
|
|
|
11546
|
+
/**
|
|
11547
|
+
* Emitted when a file search call is completed (results found).
|
|
11548
|
+
*/
|
|
11549
|
+
export interface BetaResponseFileSearchCallWsCompleted extends BetaResponseFileSearchCallCompletedEvent {
|
|
10196
11550
|
/**
|
|
10197
|
-
*
|
|
10198
|
-
*
|
|
10199
|
-
*
|
|
10200
|
-
* - `web_search_call.action.sources`: Include the sources of the web search tool
|
|
10201
|
-
* call.
|
|
10202
|
-
* - `code_interpreter_call.outputs`: Includes the outputs of python code execution
|
|
10203
|
-
* in code interpreter tool call items.
|
|
10204
|
-
* - `computer_call_output.output.image_url`: Include image urls from the computer
|
|
10205
|
-
* call output.
|
|
10206
|
-
* - `file_search_call.results`: Include the search results of the file search tool
|
|
10207
|
-
* call.
|
|
10208
|
-
* - `message.input_image.image_url`: Include image urls from the input message.
|
|
10209
|
-
* - `message.output_text.logprobs`: Include logprobs with assistant messages.
|
|
10210
|
-
* - `reasoning.encrypted_content`: Includes an encrypted version of reasoning
|
|
10211
|
-
* tokens in reasoning item outputs. This enables reasoning items to be used in
|
|
10212
|
-
* multi-turn conversations when using the Responses API statelessly (like when
|
|
10213
|
-
* the `store` parameter is set to `false`, or when an organization is enrolled
|
|
10214
|
-
* 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`.
|
|
10215
11553
|
*/
|
|
10216
|
-
|
|
11554
|
+
stream_id?: string;
|
|
11555
|
+
}
|
|
10217
11556
|
|
|
11557
|
+
/**
|
|
11558
|
+
* Emitted when a file search call is initiated.
|
|
11559
|
+
*/
|
|
11560
|
+
export interface BetaResponseFileSearchCallInWsProgress extends BetaResponseFileSearchCallInProgressEvent {
|
|
10218
11561
|
/**
|
|
10219
|
-
*
|
|
10220
|
-
*
|
|
10221
|
-
* Learn more:
|
|
10222
|
-
*
|
|
10223
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
10224
|
-
* - [Image inputs](https://platform.openai.com/docs/guides/images)
|
|
10225
|
-
* - [File inputs](https://platform.openai.com/docs/guides/pdf-files)
|
|
10226
|
-
* - [Conversation state](https://platform.openai.com/docs/guides/conversation-state)
|
|
10227
|
-
* - [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`.
|
|
10228
11564
|
*/
|
|
10229
|
-
|
|
11565
|
+
stream_id?: string;
|
|
11566
|
+
}
|
|
10230
11567
|
|
|
11568
|
+
/**
|
|
11569
|
+
* Emitted when a file search is currently searching.
|
|
11570
|
+
*/
|
|
11571
|
+
export interface BetaResponseFileSearchCallWsSearching extends BetaResponseFileSearchCallSearchingEvent {
|
|
10231
11572
|
/**
|
|
10232
|
-
*
|
|
10233
|
-
*
|
|
10234
|
-
* When using along with `previous_response_id`, the instructions from a previous
|
|
10235
|
-
* response will not be carried over to the next response. This makes it simple to
|
|
10236
|
-
* 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`.
|
|
10237
11575
|
*/
|
|
10238
|
-
|
|
11576
|
+
stream_id?: string;
|
|
11577
|
+
}
|
|
10239
11578
|
|
|
11579
|
+
/**
|
|
11580
|
+
* Emitted when there is a partial function-call arguments delta.
|
|
11581
|
+
*/
|
|
11582
|
+
export interface BetaResponseFunctionCallArgumentsWsDelta extends BetaResponseFunctionCallArgumentsDeltaEvent {
|
|
10240
11583
|
/**
|
|
10241
|
-
*
|
|
10242
|
-
*
|
|
10243
|
-
* [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`.
|
|
10244
11586
|
*/
|
|
10245
|
-
|
|
11587
|
+
stream_id?: string;
|
|
11588
|
+
}
|
|
10246
11589
|
|
|
11590
|
+
/**
|
|
11591
|
+
* Emitted when function-call arguments are finalized.
|
|
11592
|
+
*/
|
|
11593
|
+
export interface BetaResponseFunctionCallArgumentsWsDone extends BetaResponseFunctionCallArgumentsDoneEvent {
|
|
10247
11594
|
/**
|
|
10248
|
-
* The
|
|
10249
|
-
* response.
|
|
10250
|
-
* individual tool. Any further attempts to call a tool by the model will be
|
|
10251
|
-
* ignored.
|
|
11595
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11596
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10252
11597
|
*/
|
|
10253
|
-
|
|
11598
|
+
stream_id?: string;
|
|
11599
|
+
}
|
|
10254
11600
|
|
|
11601
|
+
/**
|
|
11602
|
+
* A streaming event that indicated a shell command was added to a tool call.
|
|
11603
|
+
*/
|
|
11604
|
+
export interface BetaResponseShellCallCommandWsAdded extends BetaResponseShellCallCommandAddedEvent {
|
|
10255
11605
|
/**
|
|
10256
|
-
*
|
|
10257
|
-
*
|
|
10258
|
-
* querying for objects via API or the dashboard.
|
|
10259
|
-
*
|
|
10260
|
-
* Keys are strings with a maximum length of 64 characters. Values are strings with
|
|
10261
|
-
* 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`.
|
|
10262
11608
|
*/
|
|
10263
|
-
|
|
11609
|
+
stream_id?: string;
|
|
11610
|
+
}
|
|
10264
11611
|
|
|
11612
|
+
/**
|
|
11613
|
+
* A streaming event that indicated a shell command was incrementally updated.
|
|
11614
|
+
*/
|
|
11615
|
+
export interface BetaResponseShellCallCommandWsDelta extends BetaResponseShellCallCommandDeltaEvent {
|
|
10265
11616
|
/**
|
|
10266
|
-
*
|
|
10267
|
-
*
|
|
10268
|
-
* and price points. Refer to the
|
|
10269
|
-
* [model guide](https://platform.openai.com/docs/models) to browse and compare
|
|
10270
|
-
* 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`.
|
|
10271
11619
|
*/
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
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
|
-
| 'gpt-4o-search-preview-2025-03-11'
|
|
10330
|
-
| 'gpt-4o-mini-search-preview-2025-03-11'
|
|
10331
|
-
| 'chatgpt-4o-latest'
|
|
10332
|
-
| 'codex-mini-latest'
|
|
10333
|
-
| 'gpt-4o-mini'
|
|
10334
|
-
| 'gpt-4o-mini-2024-07-18'
|
|
10335
|
-
| 'gpt-4-turbo'
|
|
10336
|
-
| 'gpt-4-turbo-2024-04-09'
|
|
10337
|
-
| 'gpt-4-0125-preview'
|
|
10338
|
-
| 'gpt-4-turbo-preview'
|
|
10339
|
-
| 'gpt-4-1106-preview'
|
|
10340
|
-
| 'gpt-4-vision-preview'
|
|
10341
|
-
| 'gpt-4'
|
|
10342
|
-
| 'gpt-4-0314'
|
|
10343
|
-
| 'gpt-4-0613'
|
|
10344
|
-
| 'gpt-4-32k'
|
|
10345
|
-
| 'gpt-4-32k-0314'
|
|
10346
|
-
| 'gpt-4-32k-0613'
|
|
10347
|
-
| 'gpt-3.5-turbo'
|
|
10348
|
-
| 'gpt-3.5-turbo-16k'
|
|
10349
|
-
| 'gpt-3.5-turbo-0301'
|
|
10350
|
-
| 'gpt-3.5-turbo-0613'
|
|
10351
|
-
| 'gpt-3.5-turbo-1106'
|
|
10352
|
-
| 'gpt-3.5-turbo-0125'
|
|
10353
|
-
| 'gpt-3.5-turbo-16k-0613'
|
|
10354
|
-
| 'o1-pro'
|
|
10355
|
-
| 'o1-pro-2025-03-19'
|
|
10356
|
-
| 'o3-pro'
|
|
10357
|
-
| 'o3-pro-2025-06-10'
|
|
10358
|
-
| 'o3-deep-research'
|
|
10359
|
-
| 'o3-deep-research-2025-06-26'
|
|
10360
|
-
| 'o4-mini-deep-research'
|
|
10361
|
-
| 'o4-mini-deep-research-2025-06-26'
|
|
10362
|
-
| 'computer-use-preview'
|
|
10363
|
-
| 'computer-use-preview-2025-03-11'
|
|
10364
|
-
| 'gpt-5-codex'
|
|
10365
|
-
| 'gpt-5-pro'
|
|
10366
|
-
| 'gpt-5-pro-2025-10-06'
|
|
10367
|
-
| 'gpt-5.1-codex-max'
|
|
10368
|
-
| (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
|
+
}
|
|
10369
11677
|
|
|
11678
|
+
/**
|
|
11679
|
+
* An event that is emitted when a response finishes as incomplete.
|
|
11680
|
+
*/
|
|
11681
|
+
export interface BetaResponseWsIncomplete extends BetaResponseIncompleteEvent {
|
|
10370
11682
|
/**
|
|
10371
|
-
*
|
|
11683
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11684
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10372
11685
|
*/
|
|
10373
|
-
|
|
11686
|
+
stream_id?: string;
|
|
11687
|
+
}
|
|
10374
11688
|
|
|
11689
|
+
/**
|
|
11690
|
+
* Emitted when a new output item is added.
|
|
11691
|
+
*/
|
|
11692
|
+
export interface BetaResponseOutputItemWsAdded extends BetaResponseOutputItemAddedEvent {
|
|
10375
11693
|
/**
|
|
10376
|
-
*
|
|
11694
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11695
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10377
11696
|
*/
|
|
10378
|
-
|
|
11697
|
+
stream_id?: string;
|
|
11698
|
+
}
|
|
10379
11699
|
|
|
11700
|
+
/**
|
|
11701
|
+
* Emitted when an output item is marked done.
|
|
11702
|
+
*/
|
|
11703
|
+
export interface BetaResponseOutputItemWsDone extends BetaResponseOutputItemDoneEvent {
|
|
10380
11704
|
/**
|
|
10381
|
-
*
|
|
11705
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11706
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10382
11707
|
*/
|
|
10383
|
-
|
|
11708
|
+
stream_id?: string;
|
|
11709
|
+
}
|
|
10384
11710
|
|
|
11711
|
+
/**
|
|
11712
|
+
* Emitted when a new reasoning summary part is added.
|
|
11713
|
+
*/
|
|
11714
|
+
export interface BetaResponseReasoningSummaryPartWsAdded extends BetaResponseReasoningSummaryPartAddedEvent {
|
|
10385
11715
|
/**
|
|
10386
|
-
* The
|
|
10387
|
-
*
|
|
10388
|
-
* [conversation state](https://platform.openai.com/docs/guides/conversation-state).
|
|
10389
|
-
* Cannot be used in conjunction with `conversation`.
|
|
11716
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11717
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10390
11718
|
*/
|
|
10391
|
-
|
|
11719
|
+
stream_id?: string;
|
|
11720
|
+
}
|
|
10392
11721
|
|
|
11722
|
+
/**
|
|
11723
|
+
* Emitted when a reasoning summary part is completed.
|
|
11724
|
+
*/
|
|
11725
|
+
export interface BetaResponseReasoningSummaryPartWsDone extends BetaResponseReasoningSummaryPartDoneEvent {
|
|
10393
11726
|
/**
|
|
10394
|
-
*
|
|
10395
|
-
*
|
|
11727
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11728
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10396
11729
|
*/
|
|
10397
|
-
|
|
11730
|
+
stream_id?: string;
|
|
11731
|
+
}
|
|
10398
11732
|
|
|
11733
|
+
/**
|
|
11734
|
+
* Emitted when a delta is added to a reasoning summary text.
|
|
11735
|
+
*/
|
|
11736
|
+
export interface BetaResponseReasoningSummaryTextWsDelta extends BetaResponseReasoningSummaryTextDeltaEvent {
|
|
10399
11737
|
/**
|
|
10400
|
-
*
|
|
10401
|
-
*
|
|
10402
|
-
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching).
|
|
11738
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11739
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10403
11740
|
*/
|
|
10404
|
-
|
|
11741
|
+
stream_id?: string;
|
|
11742
|
+
}
|
|
10405
11743
|
|
|
11744
|
+
/**
|
|
11745
|
+
* Emitted when a reasoning summary text is completed.
|
|
11746
|
+
*/
|
|
11747
|
+
export interface BetaResponseReasoningSummaryTextWsDone extends BetaResponseReasoningSummaryTextDoneEvent {
|
|
10406
11748
|
/**
|
|
10407
|
-
*
|
|
10408
|
-
*
|
|
10409
|
-
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
10410
|
-
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
10411
|
-
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
10412
|
-
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
10413
|
-
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
10414
|
-
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
10415
|
-
* for current details.
|
|
11749
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11750
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10416
11751
|
*/
|
|
10417
|
-
|
|
11752
|
+
stream_id?: string;
|
|
11753
|
+
}
|
|
10418
11754
|
|
|
11755
|
+
/**
|
|
11756
|
+
* Emitted when a delta is added to a reasoning text.
|
|
11757
|
+
*/
|
|
11758
|
+
export interface BetaResponseReasoningTextWsDelta extends BetaResponseReasoningTextDeltaEvent {
|
|
10419
11759
|
/**
|
|
10420
|
-
*
|
|
10421
|
-
*
|
|
10422
|
-
* The retention policy for the prompt cache. Set to `24h` to enable extended
|
|
10423
|
-
* prompt caching, which keeps cached prefixes active for longer, up to a maximum
|
|
10424
|
-
* of 24 hours.
|
|
10425
|
-
* [Learn more](https://platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
|
|
10426
|
-
* This field expresses a maximum retention policy, while
|
|
10427
|
-
* `prompt_cache_options.ttl` expresses a minimum cache lifetime. The two fields
|
|
10428
|
-
* are independent and do not interact. For `gpt-5.5`, `gpt-5.5-pro`, and future
|
|
10429
|
-
* models, only `24h` is supported.
|
|
10430
|
-
*
|
|
10431
|
-
* For older models that support both `in_memory` and `24h`, the default depends on
|
|
10432
|
-
* your organization's data retention policy:
|
|
10433
|
-
*
|
|
10434
|
-
* - Organizations without ZDR enabled default to `24h`.
|
|
10435
|
-
* - Organizations with ZDR enabled default to `in_memory` when
|
|
10436
|
-
* `prompt_cache_retention` is not specified.
|
|
11760
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11761
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10437
11762
|
*/
|
|
10438
|
-
|
|
11763
|
+
stream_id?: string;
|
|
11764
|
+
}
|
|
10439
11765
|
|
|
11766
|
+
/**
|
|
11767
|
+
* Emitted when a reasoning text is completed.
|
|
11768
|
+
*/
|
|
11769
|
+
export interface BetaResponseReasoningTextWsDone extends BetaResponseReasoningTextDoneEvent {
|
|
10440
11770
|
/**
|
|
10441
|
-
*
|
|
10442
|
-
*
|
|
10443
|
-
* Configuration options for
|
|
10444
|
-
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
11771
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11772
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10445
11773
|
*/
|
|
10446
|
-
|
|
11774
|
+
stream_id?: string;
|
|
11775
|
+
}
|
|
10447
11776
|
|
|
11777
|
+
/**
|
|
11778
|
+
* Emitted when there is a partial refusal text.
|
|
11779
|
+
*/
|
|
11780
|
+
export interface BetaResponseRefusalWsDelta extends BetaResponseRefusalDeltaEvent {
|
|
10448
11781
|
/**
|
|
10449
|
-
*
|
|
10450
|
-
*
|
|
10451
|
-
* identifies each user, with a maximum length of 64 characters. We recommend
|
|
10452
|
-
* hashing their username or email address, in order to avoid sending us any
|
|
10453
|
-
* identifying information.
|
|
10454
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
11782
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11783
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10455
11784
|
*/
|
|
10456
|
-
|
|
11785
|
+
stream_id?: string;
|
|
11786
|
+
}
|
|
10457
11787
|
|
|
11788
|
+
/**
|
|
11789
|
+
* Emitted when refusal text is finalized.
|
|
11790
|
+
*/
|
|
11791
|
+
export interface BetaResponseRefusalWsDone extends BetaResponseRefusalDoneEvent {
|
|
10458
11792
|
/**
|
|
10459
|
-
*
|
|
10460
|
-
*
|
|
10461
|
-
* - If set to 'auto', then the request will be processed with the service tier
|
|
10462
|
-
* configured in the Project settings. Unless otherwise configured, the Project
|
|
10463
|
-
* will use 'default'.
|
|
10464
|
-
* - If set to 'default', then the request will be processed with the standard
|
|
10465
|
-
* pricing and performance for the selected model.
|
|
10466
|
-
* - If set to '[flex](https://platform.openai.com/docs/guides/flex-processing)',
|
|
10467
|
-
* then the request will be processed with the Flex Processing service tier.
|
|
10468
|
-
* - To opt-in to [Fast mode](/api/docs/guides/fast-mode) at the request level,
|
|
10469
|
-
* include the `service_tier=fast` or `service_tier=priority` parameter for
|
|
10470
|
-
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
10471
|
-
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
10472
|
-
* request.
|
|
10473
|
-
* - When not set, the default behavior is 'auto'.
|
|
10474
|
-
*
|
|
10475
|
-
* When the `service_tier` parameter is set, the response body will include the
|
|
10476
|
-
* `service_tier` value based on the processing mode actually used to serve the
|
|
10477
|
-
* request. This response value may be different from the value set in the
|
|
10478
|
-
* parameter.
|
|
11793
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11794
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10479
11795
|
*/
|
|
10480
|
-
|
|
11796
|
+
stream_id?: string;
|
|
11797
|
+
}
|
|
10481
11798
|
|
|
11799
|
+
/**
|
|
11800
|
+
* Emitted when there is an additional text delta.
|
|
11801
|
+
*/
|
|
11802
|
+
export interface BetaResponseTextWsDelta extends BetaResponseTextDeltaEvent {
|
|
10482
11803
|
/**
|
|
10483
|
-
*
|
|
11804
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11805
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10484
11806
|
*/
|
|
10485
|
-
|
|
11807
|
+
stream_id?: string;
|
|
11808
|
+
}
|
|
10486
11809
|
|
|
11810
|
+
/**
|
|
11811
|
+
* Emitted when text content is finalized.
|
|
11812
|
+
*/
|
|
11813
|
+
export interface BetaResponseTextWsDone extends BetaResponseTextDoneEvent {
|
|
10487
11814
|
/**
|
|
10488
|
-
*
|
|
10489
|
-
*
|
|
10490
|
-
* [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format).
|
|
10491
|
-
* See the
|
|
10492
|
-
* [Streaming section below](https://platform.openai.com/docs/api-reference/responses-streaming)
|
|
10493
|
-
* for more information.
|
|
11815
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11816
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10494
11817
|
*/
|
|
10495
|
-
|
|
11818
|
+
stream_id?: string;
|
|
11819
|
+
}
|
|
11820
|
+
|
|
11821
|
+
/**
|
|
11822
|
+
* Emitted when a web search call is completed.
|
|
11823
|
+
*/
|
|
11824
|
+
export interface BetaResponseWebSearchCallWsCompleted extends BetaResponseWebSearchCallCompletedEvent {
|
|
11825
|
+
/**
|
|
11826
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11827
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
11828
|
+
*/
|
|
11829
|
+
stream_id?: string;
|
|
11830
|
+
}
|
|
10496
11831
|
|
|
11832
|
+
/**
|
|
11833
|
+
* Emitted when a web search call is initiated.
|
|
11834
|
+
*/
|
|
11835
|
+
export interface BetaResponseWebSearchCallInWsProgress extends BetaResponseWebSearchCallInProgressEvent {
|
|
10497
11836
|
/**
|
|
10498
|
-
*
|
|
11837
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11838
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10499
11839
|
*/
|
|
10500
|
-
|
|
11840
|
+
stream_id?: string;
|
|
11841
|
+
}
|
|
10501
11842
|
|
|
11843
|
+
/**
|
|
11844
|
+
* Emitted when a web search call is executing.
|
|
11845
|
+
*/
|
|
11846
|
+
export interface BetaResponseWebSearchCallWsSearching extends BetaResponseWebSearchCallSearchingEvent {
|
|
10502
11847
|
/**
|
|
10503
|
-
*
|
|
10504
|
-
*
|
|
10505
|
-
* focused and deterministic. We generally recommend altering this or `top_p` but
|
|
10506
|
-
* not both.
|
|
11848
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11849
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10507
11850
|
*/
|
|
10508
|
-
|
|
11851
|
+
stream_id?: string;
|
|
11852
|
+
}
|
|
10509
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 {
|
|
10510
11859
|
/**
|
|
10511
|
-
*
|
|
10512
|
-
*
|
|
10513
|
-
*
|
|
10514
|
-
* - [Text inputs and outputs](https://platform.openai.com/docs/guides/text)
|
|
10515
|
-
* - [Structured Outputs](https://platform.openai.com/docs/guides/structured-outputs)
|
|
11860
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11861
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10516
11862
|
*/
|
|
10517
|
-
|
|
11863
|
+
stream_id?: string;
|
|
11864
|
+
}
|
|
10518
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 {
|
|
10519
11871
|
/**
|
|
10520
|
-
*
|
|
10521
|
-
* response.
|
|
10522
|
-
* can call.
|
|
11872
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11873
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10523
11874
|
*/
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
| ResponsesAPI.BetaToolChoiceAllowed
|
|
10527
|
-
| ResponsesAPI.BetaToolChoiceTypes
|
|
10528
|
-
| ResponsesAPI.BetaToolChoiceFunction
|
|
10529
|
-
| ResponsesAPI.BetaToolChoiceMcp
|
|
10530
|
-
| ResponsesAPI.BetaToolChoiceCustom
|
|
10531
|
-
| ResponseCreate.BetaSpecificProgrammaticToolCallingParam
|
|
10532
|
-
| ResponsesAPI.BetaToolChoiceApplyPatch
|
|
10533
|
-
| ResponsesAPI.BetaToolChoiceShell;
|
|
11875
|
+
stream_id?: string;
|
|
11876
|
+
}
|
|
10534
11877
|
|
|
11878
|
+
/**
|
|
11879
|
+
* Emitted when an image generation tool call is in progress.
|
|
11880
|
+
*/
|
|
11881
|
+
export interface BetaResponseImageGenCallInWsProgress extends BetaResponseImageGenCallInProgressEvent {
|
|
10535
11882
|
/**
|
|
10536
|
-
*
|
|
10537
|
-
*
|
|
10538
|
-
*
|
|
10539
|
-
* We support the following categories of tools:
|
|
10540
|
-
*
|
|
10541
|
-
* - **Built-in tools**: Tools that are provided by OpenAI that extend the model's
|
|
10542
|
-
* capabilities, like
|
|
10543
|
-
* [web search](https://platform.openai.com/docs/guides/tools-web-search) or
|
|
10544
|
-
* [file search](https://platform.openai.com/docs/guides/tools-file-search).
|
|
10545
|
-
* Learn more about
|
|
10546
|
-
* [built-in tools](https://platform.openai.com/docs/guides/tools).
|
|
10547
|
-
* - **MCP Tools**: Integrations with third-party systems via custom MCP servers or
|
|
10548
|
-
* predefined connectors such as Google Drive and SharePoint. Learn more about
|
|
10549
|
-
* [MCP Tools](https://platform.openai.com/docs/guides/tools-connectors-mcp).
|
|
10550
|
-
* - **Function calls (custom tools)**: Functions that are defined by you, enabling
|
|
10551
|
-
* the model to call your own code with strongly typed arguments and outputs.
|
|
10552
|
-
* Learn more about
|
|
10553
|
-
* [function calling](https://platform.openai.com/docs/guides/function-calling).
|
|
10554
|
-
* You can also use custom tools to call your own code.
|
|
11883
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11884
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10555
11885
|
*/
|
|
10556
|
-
|
|
11886
|
+
stream_id?: string;
|
|
11887
|
+
}
|
|
10557
11888
|
|
|
11889
|
+
/**
|
|
11890
|
+
* Emitted when a partial image is available during image generation streaming.
|
|
11891
|
+
*/
|
|
11892
|
+
export interface BetaResponseImageGenCallPartialWsImage extends BetaResponseImageGenCallPartialImageEvent {
|
|
10558
11893
|
/**
|
|
10559
|
-
*
|
|
10560
|
-
*
|
|
10561
|
-
* some cases, the number of returned tokens may be fewer than requested.
|
|
11894
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11895
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10562
11896
|
*/
|
|
10563
|
-
|
|
11897
|
+
stream_id?: string;
|
|
11898
|
+
}
|
|
10564
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 {
|
|
10565
11905
|
/**
|
|
10566
|
-
*
|
|
10567
|
-
*
|
|
10568
|
-
* means only the tokens comprising the top 10% probability mass are considered.
|
|
10569
|
-
*
|
|
10570
|
-
* We generally recommend altering this or `temperature` but not both.
|
|
11906
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11907
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10571
11908
|
*/
|
|
10572
|
-
|
|
11909
|
+
stream_id?: string;
|
|
11910
|
+
}
|
|
10573
11911
|
|
|
11912
|
+
/**
|
|
11913
|
+
* Emitted when the arguments for an MCP tool call are finalized.
|
|
11914
|
+
*/
|
|
11915
|
+
export interface BetaResponseMcpCallArgumentsWsDone extends BetaResponseMcpCallArgumentsDoneEvent {
|
|
10574
11916
|
/**
|
|
10575
|
-
*
|
|
10576
|
-
*
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
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`.
|
|
10582
11986
|
*/
|
|
10583
|
-
|
|
11987
|
+
stream_id?: string;
|
|
11988
|
+
}
|
|
10584
11989
|
|
|
11990
|
+
/**
|
|
11991
|
+
* Emitted when an annotation is added to output text content.
|
|
11992
|
+
*/
|
|
11993
|
+
export interface BetaResponseOutputTextAnnotationWsAdded extends BetaResponseOutputTextAnnotationAddedEvent {
|
|
10585
11994
|
/**
|
|
10586
|
-
*
|
|
10587
|
-
*
|
|
10588
|
-
* optimizations. A stable identifier for your end-users. Used to boost cache hit
|
|
10589
|
-
* rates by better bucketing similar requests and to help OpenAI detect and prevent
|
|
10590
|
-
* abuse.
|
|
10591
|
-
* [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
11995
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
11996
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10592
11997
|
*/
|
|
10593
|
-
|
|
11998
|
+
stream_id?: string;
|
|
10594
11999
|
}
|
|
10595
12000
|
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
*/
|
|
10601
|
-
type: string;
|
|
10602
|
-
|
|
10603
|
-
/**
|
|
10604
|
-
* Token threshold at which compaction should be triggered for this entry.
|
|
10605
|
-
*/
|
|
10606
|
-
compact_threshold?: number | null;
|
|
10607
|
-
}
|
|
10608
|
-
|
|
12001
|
+
/**
|
|
12002
|
+
* Emitted when a response is queued and waiting to be processed.
|
|
12003
|
+
*/
|
|
12004
|
+
export interface BetaResponseWsQueued extends BetaResponseQueuedEvent {
|
|
10609
12005
|
/**
|
|
10610
|
-
*
|
|
12006
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12007
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
10611
12008
|
*/
|
|
10612
|
-
|
|
10613
|
-
|
|
10614
|
-
* The moderation model to use for moderated completions, e.g.
|
|
10615
|
-
* 'omni-moderation-latest'.
|
|
10616
|
-
*/
|
|
10617
|
-
model: string;
|
|
12009
|
+
stream_id?: string;
|
|
12010
|
+
}
|
|
10618
12011
|
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
12012
|
+
/**
|
|
12013
|
+
* Event representing a delta (partial update) to the input of a custom tool call.
|
|
12014
|
+
*/
|
|
12015
|
+
export interface BetaResponseCustomToolCallInputWsDelta extends BetaResponseCustomToolCallInputDeltaEvent {
|
|
12016
|
+
/**
|
|
12017
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12018
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
12019
|
+
*/
|
|
12020
|
+
stream_id?: string;
|
|
12021
|
+
}
|
|
10624
12022
|
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
12023
|
+
/**
|
|
12024
|
+
* Event indicating that input for a custom tool call is complete.
|
|
12025
|
+
*/
|
|
12026
|
+
export interface BetaResponseCustomToolCallInputWsDone extends BetaResponseCustomToolCallInputDoneEvent {
|
|
12027
|
+
/**
|
|
12028
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12029
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
12030
|
+
*/
|
|
12031
|
+
stream_id?: string;
|
|
12032
|
+
}
|
|
10634
12033
|
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
12034
|
+
/**
|
|
12035
|
+
* Emitted when an error occurs while streaming a response over the WebSocket.
|
|
12036
|
+
*/
|
|
12037
|
+
export interface BetaResponseWsStreamingError extends BetaResponseErrorEvent {
|
|
12038
|
+
/**
|
|
12039
|
+
* The WebSocket lane that emitted this event. This field is present when the
|
|
12040
|
+
* originating `response.create` event supplied a `stream_id`.
|
|
12041
|
+
*/
|
|
12042
|
+
stream_id?: string;
|
|
12043
|
+
}
|
|
10640
12044
|
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
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;
|
|
10648
12053
|
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
mode: 'score' | 'block';
|
|
10654
|
-
}
|
|
10655
|
-
}
|
|
10656
|
-
}
|
|
12054
|
+
/**
|
|
12055
|
+
* The type of the event. Always `error`.
|
|
12056
|
+
*/
|
|
12057
|
+
type: 'error';
|
|
10657
12058
|
|
|
10658
12059
|
/**
|
|
10659
|
-
*
|
|
12060
|
+
* The agent that owns this multi-agent streaming event.
|
|
10660
12061
|
*/
|
|
10661
|
-
|
|
10662
|
-
/**
|
|
10663
|
-
* Whether to enable server-hosted multi-agent execution for this response.
|
|
10664
|
-
*/
|
|
10665
|
-
enabled: boolean;
|
|
12062
|
+
agent?: BetaResponseWsError.Agent | null;
|
|
10666
12063
|
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
* agent. The API does not impose a fixed upper bound on this setting. The default
|
|
10672
|
-
* is `3`, which is recommended for most workloads. Multi-agent runs also have no
|
|
10673
|
-
* fixed limit on tree depth or the total number of subagents created during a run.
|
|
10674
|
-
*/
|
|
10675
|
-
max_concurrent_subagents?: number;
|
|
10676
|
-
}
|
|
12064
|
+
/**
|
|
12065
|
+
* The sequence number of an error emitted by the response stream.
|
|
12066
|
+
*/
|
|
12067
|
+
sequence_number?: number;
|
|
10677
12068
|
|
|
10678
12069
|
/**
|
|
10679
|
-
*
|
|
10680
|
-
* default, OpenAI automatically chooses one implicit cache breakpoint. You can add
|
|
10681
|
-
* explicit breakpoints to content blocks with `prompt_cache_breakpoint`. Each
|
|
10682
|
-
* request can write up to four breakpoints. For cache matching, OpenAI considers
|
|
10683
|
-
* up to the latest 80 breakpoints in the conversation, without a content-block
|
|
10684
|
-
* lookback limit. Set `mode` to `explicit` to disable the implicit breakpoint. The
|
|
10685
|
-
* `ttl` defaults to `30m`, which is currently the only supported value. See the
|
|
10686
|
-
* [prompt caching guide](https://platform.openai.com/docs/guides/prompt-caching)
|
|
10687
|
-
* for current details.
|
|
12070
|
+
* The HTTP status code associated with a WebSocket protocol error.
|
|
10688
12071
|
*/
|
|
10689
|
-
|
|
10690
|
-
/**
|
|
10691
|
-
* Controls whether OpenAI automatically creates an implicit cache breakpoint.
|
|
10692
|
-
* Defaults to `implicit`. With `implicit`, OpenAI creates one implicit breakpoint
|
|
10693
|
-
* and writes up to the latest three explicit breakpoints in the request. With
|
|
10694
|
-
* `explicit`, OpenAI does not create an implicit breakpoint and writes up to the
|
|
10695
|
-
* latest four explicit breakpoints. If there are no explicit breakpoints, the
|
|
10696
|
-
* request does not use prompt caching.
|
|
10697
|
-
*/
|
|
10698
|
-
mode?: 'implicit' | 'explicit';
|
|
12072
|
+
status?: number;
|
|
10699
12073
|
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10706
|
-
}
|
|
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
|
+
}
|
|
10707
12080
|
|
|
12081
|
+
export namespace BetaResponseWsError {
|
|
10708
12082
|
/**
|
|
10709
|
-
*
|
|
10710
|
-
*
|
|
10711
|
-
* Configuration options for
|
|
10712
|
-
* [reasoning models](https://platform.openai.com/docs/guides/reasoning).
|
|
12083
|
+
* Details about the error.
|
|
10713
12084
|
*/
|
|
10714
|
-
export interface
|
|
12085
|
+
export interface Error {
|
|
10715
12086
|
/**
|
|
10716
|
-
*
|
|
10717
|
-
* omitted or set to `auto`, the model determines the context mode. The `gpt-5.6`
|
|
10718
|
-
* model family defaults to `all_turns`; earlier models default to `current_turn`.
|
|
10719
|
-
*
|
|
10720
|
-
* When returned on a response, this is the effective reasoning context mode used
|
|
10721
|
-
* for the response.
|
|
12087
|
+
* The error code that was emitted, if any.
|
|
10722
12088
|
*/
|
|
10723
|
-
|
|
12089
|
+
code: string | null;
|
|
10724
12090
|
|
|
10725
12091
|
/**
|
|
10726
|
-
*
|
|
10727
|
-
* are `none`, `minimal`, `low`, `medium`, `high`, `xhigh`, and `max`. Reducing
|
|
10728
|
-
* reasoning effort can result in faster responses and fewer tokens used on
|
|
10729
|
-
* reasoning in a response. Not all reasoning models support every value. See the
|
|
10730
|
-
* [reasoning guide](https://platform.openai.com/docs/guides/reasoning) for
|
|
10731
|
-
* model-specific support.
|
|
12092
|
+
* The human-readable error message that was emitted.
|
|
10732
12093
|
*/
|
|
10733
|
-
|
|
12094
|
+
message: string;
|
|
10734
12095
|
|
|
10735
12096
|
/**
|
|
10736
|
-
*
|
|
10737
|
-
*
|
|
10738
|
-
* A summary of the reasoning performed by the model. This can be useful for
|
|
10739
|
-
* debugging and understanding the model's reasoning process. One of `auto`,
|
|
10740
|
-
* `concise`, or `detailed`.
|
|
12097
|
+
* The parameter name that was associated with the error, if any.
|
|
10741
12098
|
*/
|
|
10742
|
-
|
|
12099
|
+
param: string | null;
|
|
10743
12100
|
|
|
10744
12101
|
/**
|
|
10745
|
-
*
|
|
10746
|
-
*
|
|
10747
|
-
* When returned on a response, this is the effective execution mode.
|
|
12102
|
+
* The error type that was emitted.
|
|
10748
12103
|
*/
|
|
10749
|
-
|
|
12104
|
+
type: string;
|
|
10750
12105
|
|
|
10751
12106
|
/**
|
|
10752
|
-
*
|
|
10753
|
-
* debugging and understanding the model's reasoning process. One of `auto`,
|
|
10754
|
-
* `concise`, or `detailed`.
|
|
10755
|
-
*
|
|
10756
|
-
* `concise` is supported for `computer-use-preview` models and all reasoning
|
|
10757
|
-
* models after `gpt-5`.
|
|
12107
|
+
* The response headers that were emitted with the error, if any.
|
|
10758
12108
|
*/
|
|
10759
|
-
|
|
12109
|
+
headers?: { [key: string]: string };
|
|
10760
12110
|
}
|
|
10761
12111
|
|
|
10762
12112
|
/**
|
|
10763
|
-
*
|
|
12113
|
+
* The agent that owns this multi-agent streaming event.
|
|
10764
12114
|
*/
|
|
10765
|
-
export interface
|
|
10766
|
-
/**
|
|
10767
|
-
* When true, stream obfuscation will be enabled. Stream obfuscation adds random
|
|
10768
|
-
* characters to an `obfuscation` field on streaming delta events to normalize
|
|
10769
|
-
* payload sizes as a mitigation to certain side-channel attacks. These obfuscation
|
|
10770
|
-
* fields are included by default, but add a small amount of overhead to the data
|
|
10771
|
-
* stream. You can set `include_obfuscation` to false to optimize for bandwidth if
|
|
10772
|
-
* you trust the network links between your application and the OpenAI API.
|
|
10773
|
-
*/
|
|
10774
|
-
include_obfuscation?: boolean;
|
|
10775
|
-
}
|
|
10776
|
-
|
|
10777
|
-
export interface BetaSpecificProgrammaticToolCallingParam {
|
|
12115
|
+
export interface Agent {
|
|
10778
12116
|
/**
|
|
10779
|
-
* The
|
|
12117
|
+
* The canonical name of the agent that produced this item.
|
|
10780
12118
|
*/
|
|
10781
|
-
|
|
12119
|
+
agent_name: string;
|
|
10782
12120
|
}
|
|
10783
12121
|
}
|
|
10784
12122
|
}
|
|
10785
12123
|
|
|
10786
12124
|
/**
|
|
10787
|
-
*
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
|
|
10795
|
-
|
|
10796
|
-
|
|
10797
|
-
|
|
10798
|
-
|
|
10799
|
-
|
|
10800
|
-
|
|
10801
|
-
|
|
10802
|
-
|
|
10803
|
-
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
|
|
10808
|
-
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
|
|
10813
|
-
|
|
|
10814
|
-
|
|
|
10815
|
-
|
|
|
10816
|
-
|
|
|
10817
|
-
|
|
|
10818
|
-
|
|
|
10819
|
-
|
|
|
10820
|
-
|
|
|
10821
|
-
| BetaResponseRefusalDoneEvent
|
|
10822
|
-
| BetaResponseTextDeltaEvent
|
|
10823
|
-
| BetaResponseTextDoneEvent
|
|
10824
|
-
| BetaResponseWebSearchCallCompletedEvent
|
|
10825
|
-
| BetaResponseWebSearchCallInProgressEvent
|
|
10826
|
-
| BetaResponseWebSearchCallSearchingEvent
|
|
10827
|
-
| BetaResponseImageGenCallCompletedEvent
|
|
10828
|
-
| BetaResponseImageGenCallGeneratingEvent
|
|
10829
|
-
| BetaResponseImageGenCallInProgressEvent
|
|
10830
|
-
| BetaResponseImageGenCallPartialImageEvent
|
|
10831
|
-
| BetaResponseMcpCallArgumentsDeltaEvent
|
|
10832
|
-
| BetaResponseMcpCallArgumentsDoneEvent
|
|
10833
|
-
| BetaResponseMcpCallCompletedEvent
|
|
10834
|
-
| BetaResponseMcpCallFailedEvent
|
|
10835
|
-
| BetaResponseMcpCallInProgressEvent
|
|
10836
|
-
| BetaResponseMcpListToolsCompletedEvent
|
|
10837
|
-
| BetaResponseMcpListToolsFailedEvent
|
|
10838
|
-
| BetaResponseMcpListToolsInProgressEvent
|
|
10839
|
-
| BetaResponseOutputTextAnnotationAddedEvent
|
|
10840
|
-
| BetaResponseQueuedEvent
|
|
10841
|
-
| BetaResponseCustomToolCallInputDeltaEvent
|
|
10842
|
-
| BetaResponseCustomToolCallInputDoneEvent
|
|
10843
|
-
| BetaResponseInjectCreatedEvent
|
|
10844
|
-
| 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;
|
|
10845
12159
|
|
|
10846
12160
|
export interface BetaSkillReference {
|
|
10847
12161
|
/**
|
|
@@ -11481,6 +12795,13 @@ export interface BetaWebSearchTool {
|
|
|
11481
12795
|
*/
|
|
11482
12796
|
type: 'web_search' | 'web_search_2025_08_26';
|
|
11483
12797
|
|
|
12798
|
+
/**
|
|
12799
|
+
* Allow live internet access for web search. Defaults to true when omitted. When
|
|
12800
|
+
* false, the web search tool runs in offline/cache-only mode and will not fetch
|
|
12801
|
+
* new external content.
|
|
12802
|
+
*/
|
|
12803
|
+
external_web_access?: boolean;
|
|
12804
|
+
|
|
11484
12805
|
/**
|
|
11485
12806
|
* Filters for the search.
|
|
11486
12807
|
*/
|
|
@@ -11648,6 +12969,8 @@ export interface ResponseCreateParamsBase {
|
|
|
11648
12969
|
| 'gpt-5.6-sol'
|
|
11649
12970
|
| 'gpt-5.6-terra'
|
|
11650
12971
|
| 'gpt-5.6-luna'
|
|
12972
|
+
| 'gpt-5.5'
|
|
12973
|
+
| 'gpt-5.5-2026-04-23'
|
|
11651
12974
|
| 'gpt-5.4'
|
|
11652
12975
|
| 'gpt-5.4-mini'
|
|
11653
12976
|
| 'gpt-5.4-nano'
|
|
@@ -11736,10 +13059,15 @@ export interface ResponseCreateParamsBase {
|
|
|
11736
13059
|
| 'o4-mini-deep-research-2025-06-26'
|
|
11737
13060
|
| 'computer-use-preview'
|
|
11738
13061
|
| 'computer-use-preview-2025-03-11'
|
|
13062
|
+
| 'gpt-5.5-pro'
|
|
13063
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
11739
13064
|
| 'gpt-5-codex'
|
|
11740
13065
|
| 'gpt-5-pro'
|
|
11741
13066
|
| 'gpt-5-pro-2025-10-06'
|
|
11742
13067
|
| 'gpt-5.1-codex-max'
|
|
13068
|
+
| 'gpt-daybreak-blue-latest'
|
|
13069
|
+
| 'gpt-daybreak-red-latest'
|
|
13070
|
+
| 'gpt-5.6-cyber'
|
|
11743
13071
|
| (string & {});
|
|
11744
13072
|
|
|
11745
13073
|
/**
|
|
@@ -11847,6 +13175,10 @@ export interface ResponseCreateParamsBase {
|
|
|
11847
13175
|
* Responses or Chat Completions. The response will show `service_tier=priority`
|
|
11848
13176
|
* regardless of if you specify `service_tier=fast` or `priority` in your
|
|
11849
13177
|
* request.
|
|
13178
|
+
* - If set to 'ultrafast', then the request will be processed with the
|
|
13179
|
+
* access-controlled Ultrafast Processing service tier. This tier is currently
|
|
13180
|
+
* available for `gpt-5.6-sol`; a response served through it will show
|
|
13181
|
+
* `service_tier=ultrafast`.
|
|
11850
13182
|
* - When not set, the default behavior is 'auto'.
|
|
11851
13183
|
*
|
|
11852
13184
|
* When the `service_tier` parameter is set, the response body will include the
|
|
@@ -11854,7 +13186,7 @@ export interface ResponseCreateParamsBase {
|
|
|
11854
13186
|
* request. This response value may be different from the value set in the
|
|
11855
13187
|
* parameter.
|
|
11856
13188
|
*/
|
|
11857
|
-
service_tier?:
|
|
13189
|
+
service_tier?: BetaServiceTier | null;
|
|
11858
13190
|
|
|
11859
13191
|
/**
|
|
11860
13192
|
* Body param: Whether to store the generated model response for later retrieval
|
|
@@ -12291,6 +13623,8 @@ export interface ResponseCompactParams {
|
|
|
12291
13623
|
| 'gpt-5.6-sol'
|
|
12292
13624
|
| 'gpt-5.6-terra'
|
|
12293
13625
|
| 'gpt-5.6-luna'
|
|
13626
|
+
| 'gpt-5.5'
|
|
13627
|
+
| 'gpt-5.5-2026-04-23'
|
|
12294
13628
|
| 'gpt-5.4'
|
|
12295
13629
|
| 'gpt-5.4-mini'
|
|
12296
13630
|
| 'gpt-5.4-nano'
|
|
@@ -12379,10 +13713,15 @@ export interface ResponseCompactParams {
|
|
|
12379
13713
|
| 'o4-mini-deep-research-2025-06-26'
|
|
12380
13714
|
| 'computer-use-preview'
|
|
12381
13715
|
| 'computer-use-preview-2025-03-11'
|
|
13716
|
+
| 'gpt-5.5-pro'
|
|
13717
|
+
| 'gpt-5.5-pro-2026-04-23'
|
|
12382
13718
|
| 'gpt-5-codex'
|
|
12383
13719
|
| 'gpt-5-pro'
|
|
12384
13720
|
| 'gpt-5-pro-2025-10-06'
|
|
12385
13721
|
| 'gpt-5.1-codex-max'
|
|
13722
|
+
| 'gpt-daybreak-blue-latest'
|
|
13723
|
+
| 'gpt-daybreak-red-latest'
|
|
13724
|
+
| 'gpt-5.6-cyber'
|
|
12386
13725
|
| (string & {})
|
|
12387
13726
|
| null;
|
|
12388
13727
|
|
|
@@ -12511,10 +13850,12 @@ export declare namespace Responses {
|
|
|
12511
13850
|
type BetaFileSearchTool as BetaFileSearchTool,
|
|
12512
13851
|
type BetaFunctionShellTool as BetaFunctionShellTool,
|
|
12513
13852
|
type BetaFunctionTool as BetaFunctionTool,
|
|
13853
|
+
type BetaImageDetail as BetaImageDetail,
|
|
12514
13854
|
type BetaInlineSkill as BetaInlineSkill,
|
|
12515
13855
|
type BetaInlineSkillSource as BetaInlineSkillSource,
|
|
12516
13856
|
type BetaLocalEnvironment as BetaLocalEnvironment,
|
|
12517
13857
|
type BetaLocalSkill as BetaLocalSkill,
|
|
13858
|
+
type BetaMcpToolCallError as BetaMcpToolCallError,
|
|
12518
13859
|
type BetaNamespaceTool as BetaNamespaceTool,
|
|
12519
13860
|
type BetaResponse as BetaResponse,
|
|
12520
13861
|
type BetaResponseApplyPatchToolCall as BetaResponseApplyPatchToolCall,
|
|
@@ -12618,6 +13959,11 @@ export declare namespace Responses {
|
|
|
12618
13959
|
type BetaResponseReasoningTextDoneEvent as BetaResponseReasoningTextDoneEvent,
|
|
12619
13960
|
type BetaResponseRefusalDeltaEvent as BetaResponseRefusalDeltaEvent,
|
|
12620
13961
|
type BetaResponseRefusalDoneEvent as BetaResponseRefusalDoneEvent,
|
|
13962
|
+
type BetaResponseShellCallCommandAddedEvent as BetaResponseShellCallCommandAddedEvent,
|
|
13963
|
+
type BetaResponseShellCallCommandDeltaEvent as BetaResponseShellCallCommandDeltaEvent,
|
|
13964
|
+
type BetaResponseShellCallCommandDoneEvent as BetaResponseShellCallCommandDoneEvent,
|
|
13965
|
+
type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent,
|
|
13966
|
+
type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent,
|
|
12621
13967
|
type BetaResponseStatus as BetaResponseStatus,
|
|
12622
13968
|
type BetaResponseStreamEvent as BetaResponseStreamEvent,
|
|
12623
13969
|
type BetaResponseTextConfig as BetaResponseTextConfig,
|
|
@@ -12632,6 +13978,7 @@ export declare namespace Responses {
|
|
|
12632
13978
|
type BetaResponseWebSearchCallSearchingEvent as BetaResponseWebSearchCallSearchingEvent,
|
|
12633
13979
|
type BetaResponsesClientEvent as BetaResponsesClientEvent,
|
|
12634
13980
|
type BetaResponsesServerEvent as BetaResponsesServerEvent,
|
|
13981
|
+
type BetaServiceTier as BetaServiceTier,
|
|
12635
13982
|
type BetaSkillReference as BetaSkillReference,
|
|
12636
13983
|
type BetaTool as BetaTool,
|
|
12637
13984
|
type BetaToolChoiceAllowed as BetaToolChoiceAllowed,
|