openai 7.24.0 → 7.26.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 +38 -0
- package/client.d.mts +5 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -6
- package/client.d.ts.map +1 -1
- package/client.js +38 -10
- package/client.js.map +1 -1
- package/client.mjs +39 -11
- package/client.mjs.map +1 -1
- package/core/streaming.d.mts +4 -0
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts +4 -0
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +6 -0
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +6 -0
- package/core/streaming.mjs.map +1 -1
- package/helpers/beta/agents/standard-schema.d.mts +7 -0
- package/helpers/beta/agents/standard-schema.d.mts.map +1 -0
- package/helpers/beta/agents/standard-schema.d.ts +7 -0
- package/helpers/beta/agents/standard-schema.d.ts.map +1 -0
- package/helpers/beta/agents/standard-schema.js +12 -0
- package/helpers/beta/agents/standard-schema.js.map +1 -0
- package/helpers/beta/agents/standard-schema.mjs +9 -0
- package/helpers/beta/agents/standard-schema.mjs.map +1 -0
- package/helpers/beta/agents/zod.d.mts +10 -0
- package/helpers/beta/agents/zod.d.mts.map +1 -0
- package/helpers/beta/agents/zod.d.ts +10 -0
- package/helpers/beta/agents/zod.d.ts.map +1 -0
- package/helpers/beta/agents/zod.js +12 -0
- package/helpers/beta/agents/zod.js.map +1 -0
- package/helpers/beta/agents/zod.mjs +9 -0
- package/helpers/beta/agents/zod.mjs.map +1 -0
- package/internal/realtime-credentials.d.mts +22 -1
- package/internal/realtime-credentials.d.mts.map +1 -1
- package/internal/realtime-credentials.d.ts +22 -1
- package/internal/realtime-credentials.d.ts.map +1 -1
- package/internal/realtime-credentials.js +48 -4
- package/internal/realtime-credentials.js.map +1 -1
- package/internal/realtime-credentials.mjs +45 -4
- package/internal/realtime-credentials.mjs.map +1 -1
- package/internal/responses-ws-credentials.d.mts +23 -0
- package/internal/responses-ws-credentials.d.mts.map +1 -0
- package/internal/responses-ws-credentials.d.ts +23 -0
- package/internal/responses-ws-credentials.d.ts.map +1 -0
- package/internal/responses-ws-credentials.js +108 -0
- package/internal/responses-ws-credentials.js.map +1 -0
- package/internal/responses-ws-credentials.mjs +104 -0
- package/internal/responses-ws-credentials.mjs.map +1 -0
- package/internal/ws-adapter-node.d.mts +4 -0
- package/internal/ws-adapter-node.d.mts.map +1 -1
- package/internal/ws-adapter-node.d.ts +4 -0
- package/internal/ws-adapter-node.d.ts.map +1 -1
- package/internal/ws-adapter-node.js +56 -0
- package/internal/ws-adapter-node.js.map +1 -1
- package/internal/ws-adapter-node.mjs +55 -0
- package/internal/ws-adapter-node.mjs.map +1 -1
- package/internal/ws.d.mts +27 -4
- package/internal/ws.d.mts.map +1 -1
- package/internal/ws.d.ts +27 -4
- package/internal/ws.d.ts.map +1 -1
- package/internal/ws.js +105 -5
- package/internal/ws.js.map +1 -1
- package/internal/ws.mjs +102 -4
- package/internal/ws.mjs.map +1 -1
- package/lib/agents/agent-session-stream.d.mts +13 -4
- package/lib/agents/agent-session-stream.d.mts.map +1 -1
- package/lib/agents/agent-session-stream.d.ts +13 -4
- package/lib/agents/agent-session-stream.d.ts.map +1 -1
- package/lib/agents/agent-session-stream.js +24 -21
- package/lib/agents/agent-session-stream.js.map +1 -1
- package/lib/agents/agent-session-stream.mjs +24 -21
- package/lib/agents/agent-session-stream.mjs.map +1 -1
- package/lib/beta/agents/agent-session-create-stream.d.mts +15 -0
- package/lib/beta/agents/agent-session-create-stream.d.mts.map +1 -0
- package/lib/beta/agents/agent-session-create-stream.d.ts +15 -0
- package/lib/beta/agents/agent-session-create-stream.d.ts.map +1 -0
- package/lib/beta/agents/agent-session-create-stream.js +25 -0
- package/lib/beta/agents/agent-session-create-stream.js.map +1 -0
- package/lib/beta/agents/agent-session-create-stream.mjs +22 -0
- package/lib/beta/agents/agent-session-create-stream.mjs.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.d.mts +17 -0
- package/lib/beta/agents/agent-turn-result-collector.d.mts.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.d.ts +17 -0
- package/lib/beta/agents/agent-turn-result-collector.d.ts.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.js +99 -0
- package/lib/beta/agents/agent-turn-result-collector.js.map +1 -0
- package/lib/beta/agents/agent-turn-result-collector.mjs +95 -0
- package/lib/beta/agents/agent-turn-result-collector.mjs.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.d.mts +16 -0
- package/lib/beta/agents/agent-turn-result-error.d.mts.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.d.ts +16 -0
- package/lib/beta/agents/agent-turn-result-error.d.ts.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.js +22 -0
- package/lib/beta/agents/agent-turn-result-error.js.map +1 -0
- package/lib/beta/agents/agent-turn-result-error.mjs +18 -0
- package/lib/beta/agents/agent-turn-result-error.mjs.map +1 -0
- package/lib/beta/agents/agent-turn-result.d.mts +12 -0
- package/lib/beta/agents/agent-turn-result.d.mts.map +1 -0
- package/lib/beta/agents/agent-turn-result.d.ts +12 -0
- package/lib/beta/agents/agent-turn-result.d.ts.map +1 -0
- package/lib/beta/agents/agent-turn-result.js +22 -0
- package/lib/beta/agents/agent-turn-result.js.map +1 -0
- package/lib/beta/agents/agent-turn-result.mjs +18 -0
- package/lib/beta/agents/agent-turn-result.mjs.map +1 -0
- package/lib/beta/agents/function-tool.d.mts +27 -0
- package/lib/beta/agents/function-tool.d.mts.map +1 -0
- package/lib/beta/agents/function-tool.d.ts +27 -0
- package/lib/beta/agents/function-tool.d.ts.map +1 -0
- package/lib/beta/agents/function-tool.js +48 -0
- package/lib/beta/agents/function-tool.js.map +1 -0
- package/lib/beta/agents/function-tool.mjs +45 -0
- package/lib/beta/agents/function-tool.mjs.map +1 -0
- package/lib/beta/agents/output-format-types.d.mts +11 -0
- package/lib/beta/agents/output-format-types.d.mts.map +1 -0
- package/lib/beta/agents/output-format-types.d.ts +11 -0
- package/lib/beta/agents/output-format-types.d.ts.map +1 -0
- package/lib/beta/agents/output-format-types.js +3 -0
- package/lib/beta/agents/output-format-types.js.map +1 -0
- package/lib/beta/agents/output-format-types.mjs +2 -0
- package/lib/beta/agents/output-format-types.mjs.map +1 -0
- package/lib/beta/agents/output-format.d.mts +8 -0
- package/lib/beta/agents/output-format.d.mts.map +1 -0
- package/lib/beta/agents/output-format.d.ts +8 -0
- package/lib/beta/agents/output-format.d.ts.map +1 -0
- package/lib/beta/agents/output-format.js +20 -0
- package/lib/beta/agents/output-format.js.map +1 -0
- package/lib/beta/agents/output-format.mjs +14 -0
- package/lib/beta/agents/output-format.mjs.map +1 -0
- package/lib/beta/agents/output-parse-error.d.mts +11 -0
- package/lib/beta/agents/output-parse-error.d.mts.map +1 -0
- package/lib/beta/agents/output-parse-error.d.ts +11 -0
- package/lib/beta/agents/output-parse-error.d.ts.map +1 -0
- package/lib/beta/agents/output-parse-error.js +22 -0
- package/lib/beta/agents/output-parse-error.js.map +1 -0
- package/lib/beta/agents/output-parse-error.mjs +18 -0
- package/lib/beta/agents/output-parse-error.mjs.map +1 -0
- package/lib/beta/agents/parse-result.d.mts +95 -0
- package/lib/beta/agents/parse-result.d.mts.map +1 -0
- package/lib/beta/agents/parse-result.d.ts +95 -0
- package/lib/beta/agents/parse-result.d.ts.map +1 -0
- package/lib/beta/agents/parse-result.js +116 -0
- package/lib/beta/agents/parse-result.js.map +1 -0
- package/lib/beta/agents/parse-result.mjs +110 -0
- package/lib/beta/agents/parse-result.mjs.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.mts +8 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.mts.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.ts +8 -0
- package/lib/beta/agents/parsed-agent-turn-result.d.ts.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.js +14 -0
- package/lib/beta/agents/parsed-agent-turn-result.js.map +1 -0
- package/lib/beta/agents/parsed-agent-turn-result.mjs +10 -0
- package/lib/beta/agents/parsed-agent-turn-result.mjs.map +1 -0
- package/lib/beta/agents/result-collection.d.mts +15 -0
- package/lib/beta/agents/result-collection.d.mts.map +1 -0
- package/lib/beta/agents/result-collection.d.ts +15 -0
- package/lib/beta/agents/result-collection.d.ts.map +1 -0
- package/lib/beta/agents/result-collection.js +110 -0
- package/lib/beta/agents/result-collection.js.map +1 -0
- package/lib/beta/agents/result-collection.mjs +106 -0
- package/lib/beta/agents/result-collection.mjs.map +1 -0
- package/lib/beta/agents/tool-output.d.mts +7 -0
- package/lib/beta/agents/tool-output.d.mts.map +1 -0
- package/lib/beta/agents/tool-output.d.ts +7 -0
- package/lib/beta/agents/tool-output.d.ts.map +1 -0
- package/lib/beta/agents/tool-output.js +26 -0
- package/lib/beta/agents/tool-output.js.map +1 -0
- package/lib/beta/agents/tool-output.mjs +23 -0
- package/lib/beta/agents/tool-output.mjs.map +1 -0
- package/lib/responses/responses-websocket-session.d.mts +1 -1
- package/lib/responses/responses-websocket-session.d.mts.map +1 -1
- package/lib/responses/responses-websocket-session.d.ts +1 -1
- package/lib/responses/responses-websocket-session.d.ts.map +1 -1
- package/lib/responses/responses-websocket-session.js +12 -2
- package/lib/responses/responses-websocket-session.js.map +1 -1
- package/lib/responses/responses-websocket-session.mjs +12 -2
- package/lib/responses/responses-websocket-session.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audio/speech.d.mts +1 -1
- package/resources/audio/speech.d.ts +1 -1
- package/resources/audio/speech.js +1 -1
- package/resources/audio/speech.mjs +1 -1
- package/resources/beta/agents/agents.d.mts +574 -11
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +574 -11
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/agents/environments/templates.d.mts +56 -3
- package/resources/beta/agents/environments/templates.d.mts.map +1 -1
- package/resources/beta/agents/environments/templates.d.ts +56 -3
- package/resources/beta/agents/environments/templates.d.ts.map +1 -1
- package/resources/beta/agents/index.d.mts +1 -1
- package/resources/beta/agents/index.d.mts.map +1 -1
- package/resources/beta/agents/index.d.ts +1 -1
- package/resources/beta/agents/index.d.ts.map +1 -1
- package/resources/beta/agents/index.js.map +1 -1
- package/resources/beta/agents/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/events.d.mts +16 -12
- package/resources/beta/agents/sessions/events.d.mts.map +1 -1
- package/resources/beta/agents/sessions/events.d.ts +16 -12
- package/resources/beta/agents/sessions/events.d.ts.map +1 -1
- package/resources/beta/agents/sessions/events.js +16 -12
- package/resources/beta/agents/sessions/events.js.map +1 -1
- package/resources/beta/agents/sessions/events.mjs +16 -12
- package/resources/beta/agents/sessions/events.mjs.map +1 -1
- package/resources/beta/agents/sessions/index.d.mts +1 -0
- package/resources/beta/agents/sessions/index.d.mts.map +1 -1
- package/resources/beta/agents/sessions/index.d.ts +1 -0
- package/resources/beta/agents/sessions/index.d.ts.map +1 -1
- package/resources/beta/agents/sessions/index.js +3 -1
- package/resources/beta/agents/sessions/index.js.map +1 -1
- package/resources/beta/agents/sessions/index.mjs +1 -0
- package/resources/beta/agents/sessions/index.mjs.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.mts +16 -4
- package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/agents/sessions/sessions.d.ts +16 -4
- package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/agents/sessions/sessions.js +17 -4
- package/resources/beta/agents/sessions/sessions.js.map +1 -1
- package/resources/beta/agents/sessions/sessions.mjs +17 -4
- package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
- package/resources/beta/agents/sessions/traces.d.mts +68 -0
- package/resources/beta/agents/sessions/traces.d.mts.map +1 -0
- package/resources/beta/agents/sessions/traces.d.ts +68 -0
- package/resources/beta/agents/sessions/traces.d.ts.map +1 -0
- package/resources/beta/agents/sessions/traces.js +81 -0
- package/resources/beta/agents/sessions/traces.js.map +1 -0
- package/resources/beta/agents/sessions/traces.mjs +77 -0
- package/resources/beta/agents/sessions/traces.mjs.map +1 -0
- 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.map +1 -1
- package/resources/beta/beta.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.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/responses/ws-base.d.mts +3 -1
- package/resources/beta/responses/ws-base.d.mts.map +1 -1
- package/resources/beta/responses/ws-base.d.ts +3 -1
- package/resources/beta/responses/ws-base.d.ts.map +1 -1
- package/resources/beta/responses/ws-base.js +35 -6
- package/resources/beta/responses/ws-base.js.map +1 -1
- package/resources/beta/responses/ws-base.mjs +35 -6
- package/resources/beta/responses/ws-base.mjs.map +1 -1
- package/resources/beta/responses/ws.d.mts +10 -0
- package/resources/beta/responses/ws.d.mts.map +1 -1
- package/resources/beta/responses/ws.d.ts +10 -0
- package/resources/beta/responses/ws.d.ts.map +1 -1
- package/resources/beta/responses/ws.js +23 -22
- package/resources/beta/responses/ws.js.map +1 -1
- package/resources/beta/responses/ws.mjs +24 -23
- package/resources/beta/responses/ws.mjs.map +1 -1
- package/resources/chat/completions/completions.d.mts +1 -1
- package/resources/chat/completions/completions.d.mts.map +1 -1
- package/resources/chat/completions/completions.d.ts +1 -1
- package/resources/chat/completions/completions.d.ts.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/live/forks/forks.d.mts +5 -1
- package/resources/live/forks/forks.d.mts.map +1 -1
- package/resources/live/forks/forks.d.ts +5 -1
- package/resources/live/forks/forks.d.ts.map +1 -1
- package/resources/live/live.d.mts +5 -1
- package/resources/live/live.d.mts.map +1 -1
- package/resources/live/live.d.ts +5 -1
- package/resources/live/live.d.ts.map +1 -1
- package/resources/live/live.js.map +1 -1
- package/resources/live/live.mjs.map +1 -1
- package/resources/responses/ws-base.d.mts +3 -1
- package/resources/responses/ws-base.d.mts.map +1 -1
- package/resources/responses/ws-base.d.ts +3 -1
- package/resources/responses/ws-base.d.ts.map +1 -1
- package/resources/responses/ws-base.js +35 -6
- package/resources/responses/ws-base.js.map +1 -1
- package/resources/responses/ws-base.mjs +35 -6
- package/resources/responses/ws-base.mjs.map +1 -1
- package/resources/responses/ws.d.mts +10 -0
- package/resources/responses/ws.d.mts.map +1 -1
- package/resources/responses/ws.d.ts +10 -0
- package/resources/responses/ws.d.ts.map +1 -1
- package/resources/responses/ws.js +23 -22
- package/resources/responses/ws.js.map +1 -1
- package/resources/responses/ws.mjs +24 -23
- package/resources/responses/ws.mjs.map +1 -1
- package/src/client.ts +55 -19
- package/src/core/streaming.ts +9 -0
- package/src/helpers/beta/agents/standard-schema.ts +13 -0
- package/src/helpers/beta/agents/zod.ts +10 -0
- package/src/internal/realtime-credentials.ts +70 -4
- package/src/internal/responses-ws-credentials.ts +160 -0
- package/src/internal/ws-adapter-node.ts +66 -0
- package/src/internal/ws.ts +139 -11
- package/src/lib/agents/agent-session-stream.ts +36 -24
- package/src/lib/beta/agents/agent-session-create-stream.ts +36 -0
- package/src/lib/beta/agents/agent-turn-result-collector.ts +122 -0
- package/src/lib/beta/agents/agent-turn-result-error.ts +33 -0
- package/src/lib/beta/agents/agent-turn-result.ts +22 -0
- package/src/lib/beta/agents/function-tool.ts +60 -0
- package/src/lib/beta/agents/output-format-types.ts +12 -0
- package/src/lib/beta/agents/output-format.ts +20 -0
- package/src/lib/beta/agents/output-parse-error.ts +16 -0
- package/src/lib/beta/agents/parse-result.ts +133 -0
- package/src/lib/beta/agents/parsed-agent-turn-result.ts +12 -0
- package/src/lib/beta/agents/result-collection.ts +115 -0
- package/src/lib/beta/agents/tool-output.ts +22 -0
- package/src/lib/responses/responses-websocket-session.ts +14 -3
- package/src/resources/audio/speech.ts +1 -1
- package/src/resources/beta/agents/agents.ts +697 -6
- package/src/resources/beta/agents/environments/templates.ts +64 -3
- package/src/resources/beta/agents/index.ts +3 -0
- package/src/resources/beta/agents/sessions/events.ts +16 -12
- package/src/resources/beta/agents/sessions/index.ts +1 -0
- package/src/resources/beta/agents/sessions/sessions.ts +48 -18
- package/src/resources/beta/agents/sessions/traces.ts +298 -0
- package/src/resources/beta/beta.ts +6 -0
- package/src/resources/beta/index.ts +3 -0
- package/src/resources/beta/responses/ws-base.ts +40 -6
- package/src/resources/beta/responses/ws.ts +37 -27
- package/src/resources/chat/completions/completions.ts +1 -1
- package/src/resources/evals/runs/runs.ts +1 -1
- package/src/resources/live/forks/forks.ts +6 -1
- package/src/resources/live/live.ts +6 -1
- package/src/resources/responses/ws-base.ts +40 -6
- package/src/resources/responses/ws.ts +37 -27
- package/src/tsconfig.dist-src-node.d.ts +7 -0
- package/src/tsconfig.dist-src.d.ts +3 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/sessions/sessions.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;;AAErF,yFAGqD;AACrD,2DAAwD;AAIxD,qEAA4C;AAC5C,8CASqB;AACrB,+DAAsC;AACtC,wCAAqD;AACrD,6DAAoC;AACpC,sCAAgD;AAChD,6DAAoC;AACpC,sCAAqF;AACrF,+EAAsD;AACtD,wDAA8F;AAE9F,+DAA6F;AAE7F,6DAA4D;AAE5D,6DAAuD;AAEvD,SAAS,6BAA6B,CACpC,OAAmC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AAK,CAAC;AACvB,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AACzB,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC;AACzB,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
2
|
import { AgentSessionStream, } from "../../../../lib/agents/agent-session-stream.mjs";
|
|
3
|
+
import { withAgentTurnResult, } from "../../../../lib/beta/agents/agent-session-create-stream.mjs";
|
|
4
|
+
import { captureAgentOutput } from "../../../../lib/beta/agents/parse-result.mjs";
|
|
3
5
|
import { APIResource } from "../../../../core/resource.mjs";
|
|
4
6
|
import * as ArtifactsAPI from "./artifacts.mjs";
|
|
5
7
|
import { Artifacts, } from "./artifacts.mjs";
|
|
@@ -7,6 +9,8 @@ import * as EventsAPI from "./events.mjs";
|
|
|
7
9
|
import { Events } from "./events.mjs";
|
|
8
10
|
import * as ItemsAPI from "./items.mjs";
|
|
9
11
|
import { Items } from "./items.mjs";
|
|
12
|
+
import * as TracesAPI from "./traces.mjs";
|
|
13
|
+
import { Traces } from "./traces.mjs";
|
|
10
14
|
import * as TurnsAPI from "./turns.mjs";
|
|
11
15
|
import { Turns } from "./turns.mjs";
|
|
12
16
|
import * as SubagentsAPI from "./subagents/subagents.mjs";
|
|
@@ -76,6 +80,7 @@ export class Sessions extends APIResource {
|
|
|
76
80
|
this.artifacts = new ArtifactsAPI.Artifacts(this._client);
|
|
77
81
|
this.items = new ItemsAPI.Items(this._client);
|
|
78
82
|
this.events = new EventsAPI.Events(this._client);
|
|
83
|
+
this.traces = new TracesAPI.Traces(this._client);
|
|
79
84
|
this.turns = new TurnsAPI.Turns(this._client);
|
|
80
85
|
}
|
|
81
86
|
/** Stream one turn on an idle session with a single input writer. See AgentSessionStream for lifecycle and tool handling. */
|
|
@@ -83,13 +88,20 @@ export class Sessions extends APIResource {
|
|
|
83
88
|
return new AgentSessionStream(this, sessionID, params, options);
|
|
84
89
|
}
|
|
85
90
|
create(body, options) {
|
|
86
|
-
|
|
87
|
-
|
|
91
|
+
const output = captureAgentOutput(body, options);
|
|
92
|
+
return this._client
|
|
93
|
+
.post('/agents/sessions', resolveResourceRequestOptions(output.options, (options) => ({
|
|
94
|
+
body: output.body,
|
|
88
95
|
...options,
|
|
89
96
|
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
90
|
-
stream: body.stream ?? false,
|
|
97
|
+
stream: output.body.stream ?? false,
|
|
91
98
|
__security: { bearerAuth: true },
|
|
92
|
-
})))
|
|
99
|
+
})))
|
|
100
|
+
._thenUnwrap((data, { options }) =>
|
|
101
|
+
// SAFETY: defaultParseResponse uses this same resolved flag to return the configured stream instance.
|
|
102
|
+
options.stream
|
|
103
|
+
? withAgentTurnResult(data, output.format)
|
|
104
|
+
: data);
|
|
93
105
|
}
|
|
94
106
|
/**
|
|
95
107
|
* Retrieves the current state of a managed agent session. See
|
|
@@ -166,5 +178,6 @@ Sessions.Subagents = Subagents;
|
|
|
166
178
|
Sessions.Artifacts = Artifacts;
|
|
167
179
|
Sessions.Items = Items;
|
|
168
180
|
Sessions.Events = Events;
|
|
181
|
+
Sessions.Traces = Traces;
|
|
169
182
|
Sessions.Turns = Turns;
|
|
170
183
|
//# sourceMappingURL=sessions.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/agents/sessions/sessions.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EACL,kBAAkB,GAEnB,wDAAoD;AACrD,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAIxD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAKL,SAAS,GAIV,wBAAoB;AACrB,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAqB,MAAM,EAAE,qBAAiB;AACrD,OAAO,KAAK,QAAQ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,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAI,CAAA,oBAAoB,SAAS,EAAE,EACnC,6BAA6B,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;CACF;AAiMD,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;AAC/B,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;AAC/B,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;AACzB,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../../../core/pagination.mjs";
|
|
3
|
+
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
4
|
+
export declare class Traces extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Lists published root-turn traces as OTLP JSON, ordered by turn creation time and
|
|
7
|
+
* ID. Unpublished traces are skipped. Each page returns data available when read;
|
|
8
|
+
* it does not wait for late traces. Trace reads and the JSON response are limited
|
|
9
|
+
* to 16 MiB per request. If the limit is exceeded, request fewer traces.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const sessionTrace of client.beta.agents.sessions.traces.list(
|
|
15
|
+
* 'session_id',
|
|
16
|
+
* )) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(sessionID: string, query?: (TraceListParams & ({
|
|
22
|
+
[K in 'method' | 'path' | 'query' | 'body' | 'headers' | 'maxRetries' | 'stream' | 'timeout' | 'httpAgent' | 'fetchOptions' | 'signal' | 'idempotencyKey' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
23
|
+
} | null | undefined)) | null | undefined, options?: RequestOptions): PagePromise<SessionTracesPage, SessionTrace>;
|
|
24
|
+
list(sessionID: string, options?: {
|
|
25
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
26
|
+
} & {
|
|
27
|
+
[K in 'method' | 'path' | 'body' | 'stream' | 'httpAgent' | 'fetchOptions' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
28
|
+
}): PagePromise<SessionTracesPage, SessionTrace>;
|
|
29
|
+
}
|
|
30
|
+
export type SessionTracesPage = CursorPage<SessionTrace>;
|
|
31
|
+
export interface SessionTrace {
|
|
32
|
+
/**
|
|
33
|
+
* The root turn ID. Use this ID as the pagination anchor.
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The Unix timestamp in seconds when the root turn was created.
|
|
38
|
+
*/
|
|
39
|
+
created_at: number;
|
|
40
|
+
/**
|
|
41
|
+
* The object type, which is always `agent.session.trace`.
|
|
42
|
+
*/
|
|
43
|
+
object: 'agent.session.trace';
|
|
44
|
+
/**
|
|
45
|
+
* An OTLP JSON ExportTraceServiceRequest containing resourceSpans. Only currently
|
|
46
|
+
* published data is returned; later trace updates are not awaited.
|
|
47
|
+
*/
|
|
48
|
+
otlp: {
|
|
49
|
+
[key: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The session that owns this trace.
|
|
53
|
+
*/
|
|
54
|
+
session_id: string;
|
|
55
|
+
}
|
|
56
|
+
export interface TraceListParams extends CursorPageParams {
|
|
57
|
+
/**
|
|
58
|
+
* The order in which resources are returned. Defaults to `desc`.
|
|
59
|
+
*
|
|
60
|
+
* - `asc` - Returns resources in ascending order.
|
|
61
|
+
* - `desc` - Returns resources in descending order.
|
|
62
|
+
*/
|
|
63
|
+
order?: 'asc' | 'desc';
|
|
64
|
+
}
|
|
65
|
+
export declare namespace Traces {
|
|
66
|
+
export { type SessionTrace as SessionTrace, type SessionTracesPage as SessionTracesPage, type TraceListParams as TraceListParams, };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=traces.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traces.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/sessions/traces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,wCAAoC;AAE7F,OAAO,EAAE,cAAc,EAAE,iDAA6C;AAqHtE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACF,SAAS,EAAE,MAAM,EACjB,KAAK,CAAC,EACF,CAAC,eAAe,GACd,CACI;SAEI,CAAC,IACG,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,SAAS,GACT,WAAW,GACX,cAAc,GACd,QAAQ,GACR,gBAAgB,GAChB,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AAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.js";
|
|
2
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../../../core/pagination.js";
|
|
3
|
+
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
4
|
+
export declare class Traces extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Lists published root-turn traces as OTLP JSON, ordered by turn creation time and
|
|
7
|
+
* ID. Unpublished traces are skipped. Each page returns data available when read;
|
|
8
|
+
* it does not wait for late traces. Trace reads and the JSON response are limited
|
|
9
|
+
* to 16 MiB per request. If the limit is exceeded, request fewer traces.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const sessionTrace of client.beta.agents.sessions.traces.list(
|
|
15
|
+
* 'session_id',
|
|
16
|
+
* )) {
|
|
17
|
+
* // ...
|
|
18
|
+
* }
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
list(sessionID: string, query?: (TraceListParams & ({
|
|
22
|
+
[K in 'method' | 'path' | 'query' | 'body' | 'headers' | 'maxRetries' | 'stream' | 'timeout' | 'httpAgent' | 'fetchOptions' | 'signal' | 'idempotencyKey' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
23
|
+
} | null | undefined)) | null | undefined, options?: RequestOptions): PagePromise<SessionTracesPage, SessionTrace>;
|
|
24
|
+
list(sessionID: string, options?: {
|
|
25
|
+
[K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
|
|
26
|
+
} & {
|
|
27
|
+
[K in 'method' | 'path' | 'body' | 'stream' | 'httpAgent' | 'fetchOptions' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
|
|
28
|
+
}): PagePromise<SessionTracesPage, SessionTrace>;
|
|
29
|
+
}
|
|
30
|
+
export type SessionTracesPage = CursorPage<SessionTrace>;
|
|
31
|
+
export interface SessionTrace {
|
|
32
|
+
/**
|
|
33
|
+
* The root turn ID. Use this ID as the pagination anchor.
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
* The Unix timestamp in seconds when the root turn was created.
|
|
38
|
+
*/
|
|
39
|
+
created_at: number;
|
|
40
|
+
/**
|
|
41
|
+
* The object type, which is always `agent.session.trace`.
|
|
42
|
+
*/
|
|
43
|
+
object: 'agent.session.trace';
|
|
44
|
+
/**
|
|
45
|
+
* An OTLP JSON ExportTraceServiceRequest containing resourceSpans. Only currently
|
|
46
|
+
* published data is returned; later trace updates are not awaited.
|
|
47
|
+
*/
|
|
48
|
+
otlp: {
|
|
49
|
+
[key: string]: unknown;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The session that owns this trace.
|
|
53
|
+
*/
|
|
54
|
+
session_id: string;
|
|
55
|
+
}
|
|
56
|
+
export interface TraceListParams extends CursorPageParams {
|
|
57
|
+
/**
|
|
58
|
+
* The order in which resources are returned. Defaults to `desc`.
|
|
59
|
+
*
|
|
60
|
+
* - `asc` - Returns resources in ascending order.
|
|
61
|
+
* - `desc` - Returns resources in descending order.
|
|
62
|
+
*/
|
|
63
|
+
order?: 'asc' | 'desc';
|
|
64
|
+
}
|
|
65
|
+
export declare namespace Traces {
|
|
66
|
+
export { type SessionTrace as SessionTrace, type SessionTracesPage as SessionTracesPage, type TraceListParams as TraceListParams, };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=traces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traces.d.ts","sourceRoot":"","sources":["../../../../src/resources/be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AAC,CAAC;AAEzD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAE9B;;;OAGG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACvD;;;;;OAKG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Traces = void 0;
|
|
5
|
+
const resource_1 = require("../../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../../core/pagination.js");
|
|
7
|
+
const headers_1 = require("../../../../internal/headers.js");
|
|
8
|
+
const path_1 = require("../../../../internal/utils/path.js");
|
|
9
|
+
function resolveResourceRequestOptions(options, buildOptions) {
|
|
10
|
+
return Promise.resolve(options).then(buildOptions);
|
|
11
|
+
}
|
|
12
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
13
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
14
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
15
|
+
'method',
|
|
16
|
+
'path',
|
|
17
|
+
'query',
|
|
18
|
+
'body',
|
|
19
|
+
'headers',
|
|
20
|
+
'maxRetries',
|
|
21
|
+
'stream',
|
|
22
|
+
'timeout',
|
|
23
|
+
'httpAgent',
|
|
24
|
+
'fetchOptions',
|
|
25
|
+
'signal',
|
|
26
|
+
'idempotencyKey',
|
|
27
|
+
'defaultBaseURL',
|
|
28
|
+
'__metadata',
|
|
29
|
+
'__binaryRequest',
|
|
30
|
+
'__binaryResponse',
|
|
31
|
+
'__streamClass',
|
|
32
|
+
'__security',
|
|
33
|
+
'__synthesizeEventData',
|
|
34
|
+
]);
|
|
35
|
+
function normalizeRequestOptionsForQuery(value, queryKeys, options) {
|
|
36
|
+
if (typeof value !== 'object' || value === null)
|
|
37
|
+
return undefined;
|
|
38
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
39
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
40
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined));
|
|
41
|
+
const keys = entries.map(([key]) => key);
|
|
42
|
+
const requestOnly = keys.some((key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key));
|
|
43
|
+
if (!requestOnly)
|
|
44
|
+
return undefined;
|
|
45
|
+
// Declared query fields, including stream, must use the query argument.
|
|
46
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
47
|
+
if (options !== undefined ||
|
|
48
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))) {
|
|
49
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
50
|
+
}
|
|
51
|
+
// The query position must not gain authority to change the request destination
|
|
52
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
53
|
+
if (keys.some((key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key))) {
|
|
54
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
55
|
+
}
|
|
56
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
57
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
58
|
+
return Object.fromEntries(entries.map(([key, descriptor]) => {
|
|
59
|
+
if ('value' in descriptor)
|
|
60
|
+
return [key, descriptor.value];
|
|
61
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
62
|
+
}));
|
|
63
|
+
}
|
|
64
|
+
class Traces extends resource_1.APIResource {
|
|
65
|
+
list(sessionID, query = {}, options) {
|
|
66
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(query, ['after', 'limit', 'order'], options);
|
|
67
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
68
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
69
|
+
query = {};
|
|
70
|
+
}
|
|
71
|
+
query = query;
|
|
72
|
+
return this._client.getAPIList((0, path_1.path) `/agents/sessions/${sessionID}/traces`, (pagination_1.CursorPage), resolveResourceRequestOptions(options, (options) => ({
|
|
73
|
+
query,
|
|
74
|
+
...options,
|
|
75
|
+
headers: (0, headers_1.buildHeaders)([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
76
|
+
__security: { bearerAuth: true },
|
|
77
|
+
})));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
exports.Traces = Traces;
|
|
81
|
+
//# sourceMappingURL=traces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traces.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/sessions/traces.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,2DAAwD;AACxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD,SAAS,6BAA6B,CACpC,OAAmC,EACnC,YAA+F;IAE/F,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACrD,CAAC;AAED,6EAA6E;AAC7E,6EAA6E;AAC7E,MAAM,mCAAmC,G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,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,oBAAoB,SAAS,SAAS,EAC1C,CAAA,uBAAwB,CAAA,EACxB,6BAA6B,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;YACnD,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;CACF;AA/HD,wBA+HC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../../../../core/pagination.mjs";
|
|
4
|
+
import { buildHeaders } from "../../../../internal/headers.mjs";
|
|
5
|
+
import { path } from "../../../../internal/utils/path.mjs";
|
|
6
|
+
function resolveResourceRequestOptions(options, buildOptions) {
|
|
7
|
+
return Promise.resolve(options).then(buildOptions);
|
|
8
|
+
}
|
|
9
|
+
// Recognizable options across SDK runtime versions. Keep this independent of
|
|
10
|
+
// private RequestOptions fields so older handwritten runtimes still compile.
|
|
11
|
+
const normalizeRequestOptionsForQueryKeys = new Set([
|
|
12
|
+
'method',
|
|
13
|
+
'path',
|
|
14
|
+
'query',
|
|
15
|
+
'body',
|
|
16
|
+
'headers',
|
|
17
|
+
'maxRetries',
|
|
18
|
+
'stream',
|
|
19
|
+
'timeout',
|
|
20
|
+
'httpAgent',
|
|
21
|
+
'fetchOptions',
|
|
22
|
+
'signal',
|
|
23
|
+
'idempotencyKey',
|
|
24
|
+
'defaultBaseURL',
|
|
25
|
+
'__metadata',
|
|
26
|
+
'__binaryRequest',
|
|
27
|
+
'__binaryResponse',
|
|
28
|
+
'__streamClass',
|
|
29
|
+
'__security',
|
|
30
|
+
'__synthesizeEventData',
|
|
31
|
+
]);
|
|
32
|
+
function normalizeRequestOptionsForQuery(value, queryKeys, options) {
|
|
33
|
+
if (typeof value !== 'object' || value === null)
|
|
34
|
+
return undefined;
|
|
35
|
+
// Optional never fields can still be explicitly undefined unless consumers
|
|
36
|
+
// enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
|
|
37
|
+
const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined));
|
|
38
|
+
const keys = entries.map(([key]) => key);
|
|
39
|
+
const requestOnly = keys.some((key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key));
|
|
40
|
+
if (!requestOnly)
|
|
41
|
+
return undefined;
|
|
42
|
+
// Declared query fields, including stream, must use the query argument.
|
|
43
|
+
// Mixing them with request-only options is ambiguous and could change the return type.
|
|
44
|
+
if (options !== undefined ||
|
|
45
|
+
keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))) {
|
|
46
|
+
throw new TypeError('Query parameters and request options must be passed as separate arguments.');
|
|
47
|
+
}
|
|
48
|
+
// The query position must not gain authority to change the request destination
|
|
49
|
+
// or transport. Those overrides require the explicit request options argument.
|
|
50
|
+
if (keys.some((key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key))) {
|
|
51
|
+
throw new TypeError('Pass transport overrides in the explicit request options argument.');
|
|
52
|
+
}
|
|
53
|
+
// Copy only the validated fields. Spreading value would reintroduce undefined
|
|
54
|
+
// transport overrides, and deleting them would mutate the caller's object.
|
|
55
|
+
return Object.fromEntries(entries.map(([key, descriptor]) => {
|
|
56
|
+
if ('value' in descriptor)
|
|
57
|
+
return [key, descriptor.value];
|
|
58
|
+
return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
export class Traces extends APIResource {
|
|
62
|
+
list(sessionID, query = {}, options) {
|
|
63
|
+
const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(query, ['after', 'limit', 'order'], options);
|
|
64
|
+
if (normalizeRequestOptionsForQueryOptions !== undefined) {
|
|
65
|
+
options = normalizeRequestOptionsForQueryOptions;
|
|
66
|
+
query = {};
|
|
67
|
+
}
|
|
68
|
+
query = query;
|
|
69
|
+
return this._client.getAPIList(path `/agents/sessions/${sessionID}/traces`, (CursorPage), resolveResourceRequestOptions(options, (options) => ({
|
|
70
|
+
query,
|
|
71
|
+
...options,
|
|
72
|
+
headers: buildHeaders([{ 'OpenAI-Beta': 'agents=v1' }, options?.headers]),
|
|
73
|
+
__security: { bearerAuth: true },
|
|
74
|
+
})));
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=traces.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"traces.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/agents/sessions/traces.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,EAAE,UAAU,EAAsC,wCAAoC;AAC7F,OAAO,EAAE,YAAY,EAAE,yCAAqC;AAE5D,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,SAAS,6BAA6B,CACpC,OAAmC,EACnC,YAA+F;IAE/F,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;AACrD,CAAC;AAED,6EAA6E;AAC7E,6EAA6E;AAC7E,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC;IAClD,QAAQ;IACR,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,WAAW;IACX,cAAc;IACd,QAAQ;IACR,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IAC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EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC,CACJ,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -4,7 +4,7 @@ import { Assistant, AssistantCreateParams, AssistantDeleted, AssistantListParams
|
|
|
4
4
|
import * as RealtimeAPI from "./realtime/realtime.mjs";
|
|
5
5
|
import { ConversationCreatedEvent, ConversationItem, ConversationItemContent, ConversationItemCreateEvent, ConversationItemCreatedEvent, ConversationItemDeleteEvent, ConversationItemDeletedEvent, ConversationItemInputAudioTranscriptionCompletedEvent, ConversationItemInputAudioTranscriptionDeltaEvent, ConversationItemInputAudioTranscriptionFailedEvent, ConversationItemRetrieveEvent, ConversationItemTruncateEvent, ConversationItemTruncatedEvent, ConversationItemWithReference, ErrorEvent, InputAudioBufferAppendEvent, InputAudioBufferClearEvent, InputAudioBufferClearedEvent, InputAudioBufferCommitEvent, InputAudioBufferCommittedEvent, InputAudioBufferSpeechStartedEvent, InputAudioBufferSpeechStoppedEvent, RateLimitsUpdatedEvent, Realtime, RealtimeClientEvent, RealtimeResponse, RealtimeResponseStatus, RealtimeResponseUsage, RealtimeServerEvent, ResponseAudioDeltaEvent, ResponseAudioDoneEvent, ResponseAudioTranscriptDeltaEvent, ResponseAudioTranscriptDoneEvent, ResponseCancelEvent, ResponseContentPartAddedEvent, ResponseContentPartDoneEvent, ResponseCreateEvent, ResponseCreatedEvent, ResponseDoneEvent, ResponseFunctionCallArgumentsDeltaEvent, ResponseFunctionCallArgumentsDoneEvent, ResponseOutputItemAddedEvent, ResponseOutputItemDoneEvent, ResponseTextDeltaEvent, ResponseTextDoneEvent, SessionCreatedEvent, SessionUpdateEvent, SessionUpdatedEvent, TranscriptionSessionUpdate, TranscriptionSessionUpdatedEvent } from "./realtime/realtime.mjs";
|
|
6
6
|
import * as AgentsAPI from "./agents/agents.mjs";
|
|
7
|
-
import { Agent, AgentCloseSubagentCallItem, AgentCommandExecutionItem, AgentContent, AgentCreateParams, AgentCreateSubagentCallItem, AgentDeleted, AgentFunctionCallItem, AgentFunctionCallOutput, AgentFunctionCallOutputParam, AgentFunctionCallStatus, AgentInterruptSubagentCallItem, AgentListParams, AgentMcpCallItem, AgentOutputCommandExecutionOutputDeltaEvent, AgentOutputItem, AgentOutputItemStatus, AgentReasoning, AgentReasoningItem, AgentReasoningParam, AgentResumeSubagentCallItem, AgentSendSubagentInputCallItem, AgentSession, AgentSessionAssistantMessage, AgentSessionCreatedEvent, AgentSessionDeleted, AgentSessionEnvironmentConnectedEvent, AgentSessionEnvironmentDisconnectedEvent, AgentSessionEnvironmentFailedEvent, AgentSessionEnvironmentPendingEvent, AgentSessionEnvironmentReadyEvent, AgentSessionEnvironmentResetEvent, AgentSessionEnvironmentState, AgentSessionErrorEvent, AgentSessionEvent, AgentSessionFailedEvent, AgentSessionIdleEvent, AgentSessionInProgressEvent, AgentSessionInputMessageParam, AgentSessionInputParam, AgentSessionItem, AgentSessionMessage, AgentSessionMessageContent, AgentSessionRequiresActionEvent, AgentSessionSubagentActiveEvent, AgentSessionSubagentClosedEvent, AgentSessionSubagentCreatedEvent, AgentSessionTurnCancelledEvent, AgentSessionTurnCompletedEvent, AgentSessionTurnContentPartAddedEvent, AgentSessionTurnContentPartDoneEvent, AgentSessionTurnCreatedEvent, AgentSessionTurnFailedEvent, AgentSessionTurnInProgressEvent, AgentSessionTurnItemAddedEvent, AgentSessionTurnItemDoneEvent, AgentSessionTurnOutputTextDeltaEvent, AgentSessionTurnOutputTextDoneEvent, AgentSessionTurnReasoningSummaryPartAddedEvent, AgentSessionTurnReasoningSummaryPartDoneEvent, AgentSessionTurnReasoningSummaryTextDeltaEvent, AgentSessionTurnReasoningSummaryTextDoneEvent, AgentText, AgentTextParam, AgentTool, AgentToolParam, AgentUpdateParams, AgentWaitForSubagentsCallItem, AgentWebSearchCallItem, Agents, AgentsPage, Environment, EnvironmentParam, HostedEnvironmentFile, HostedEnvironmentFileID, HostedEnvironmentFileParam, HostedPlugin, HostedPluginParam, HostedSkill, HostedSkillParam, HostedSkillReference, InlineCapabilitySourceParam, InputContent, InputContentParam, McpTransport, McpTransportParam, MultiAgentConfig, MultiAgentConfigParam, OutputText, PersistedAgentTool, PersistedAgentToolParam, PersistedMcpTransport, PersistedMcpTransportParam, SessionError, SessionTurnError, SetupCommandParam, Subagent, SummaryText, TextFormat, TextFormatParam, TokenUsage, WebSearchAction } from "./agents/agents.mjs";
|
|
7
|
+
import { Agent, AgentBrowserAuthenticationCancelParam, AgentBrowserAuthenticationSubmitParam, AgentBrowserOriginAccessParam, AgentCloseSubagentCallItem, AgentCommandExecutionItem, AgentContent, AgentCreateParams, AgentCreateSubagentCallItem, AgentDeleted, AgentFunctionCallItem, AgentFunctionCallOutput, AgentFunctionCallOutputParam, AgentFunctionCallStatus, AgentInterruptSubagentCallItem, AgentListParams, AgentMcpCallItem, AgentOutputCommandExecutionOutputDeltaEvent, AgentOutputItem, AgentOutputItemStatus, AgentReasoning, AgentReasoningItem, AgentReasoningParam, AgentResumeSubagentCallItem, AgentSendSubagentInputCallItem, AgentSession, AgentSessionAssistantMessage, AgentSessionCreatedEvent, AgentSessionDeleted, AgentSessionEnvironmentConnectedEvent, AgentSessionEnvironmentDisconnectedEvent, AgentSessionEnvironmentFailedEvent, AgentSessionEnvironmentPendingEvent, AgentSessionEnvironmentReadyEvent, AgentSessionEnvironmentResetEvent, AgentSessionEnvironmentState, AgentSessionErrorEvent, AgentSessionEvent, AgentSessionFailedEvent, AgentSessionIdleEvent, AgentSessionInProgressEvent, AgentSessionInputMessageParam, AgentSessionInputParam, AgentSessionItem, AgentSessionMessage, AgentSessionMessageContent, AgentSessionRequiresActionEvent, AgentSessionSubagentActiveEvent, AgentSessionSubagentClosedEvent, AgentSessionSubagentCreatedEvent, AgentSessionTurnCancelledEvent, AgentSessionTurnCompletedEvent, AgentSessionTurnContentPartAddedEvent, AgentSessionTurnContentPartDoneEvent, AgentSessionTurnCreatedEvent, AgentSessionTurnFailedEvent, AgentSessionTurnInProgressEvent, AgentSessionTurnItemAddedEvent, AgentSessionTurnItemDoneEvent, AgentSessionTurnOutputTextDeltaEvent, AgentSessionTurnOutputTextDoneEvent, AgentSessionTurnReasoningSummaryPartAddedEvent, AgentSessionTurnReasoningSummaryPartDoneEvent, AgentSessionTurnReasoningSummaryTextDeltaEvent, AgentSessionTurnReasoningSummaryTextDoneEvent, AgentText, AgentTextParam, AgentTool, AgentToolParam, AgentUpdateParams, AgentWaitForSubagentsCallItem, AgentWebSearchCallItem, Agents, AgentsPage, Environment, EnvironmentParam, HostedEnvironmentFile, HostedEnvironmentFileID, HostedEnvironmentFileParam, HostedPlugin, HostedPluginParam, HostedSkill, HostedSkillParam, HostedSkillReference, InlineCapabilitySourceParam, InputContent, InputContentParam, McpTransport, McpTransportParam, MultiAgentConfig, MultiAgentConfigParam, OutputText, PersistedAgentTool, PersistedAgentToolParam, PersistedMcpTransport, PersistedMcpTransportParam, SessionError, SessionTurnError, SetupCommandParam, Subagent, SummaryText, TextFormat, TextFormatParam, TokenUsage, WebSearchAction } from "./agents/agents.mjs";
|
|
8
8
|
import * as ChatKitAPI from "./chatkit/chatkit.mjs";
|
|
9
9
|
import { ChatKit, ChatKitWorkflow } from "./chatkit/chatkit.mjs";
|
|
10
10
|
import * as ResponsesAPI from "./responses/responses.mjs";
|
|
@@ -20,7 +20,7 @@ export declare class Beta extends APIResource {
|
|
|
20
20
|
threads: ThreadsAPI.Threads;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace Beta {
|
|
23
|
-
export { Realtime as Realtime, type ConversationCreatedEvent as ConversationCreatedEvent, type ConversationItem as ConversationItem, type ConversationItemContent as ConversationItemContent, type ConversationItemCreateEvent as ConversationItemCreateEvent, type ConversationItemCreatedEvent as ConversationItemCreatedEvent, type ConversationItemDeleteEvent as ConversationItemDeleteEvent, type ConversationItemDeletedEvent as ConversationItemDeletedEvent, type ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, type ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, type ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, type ConversationItemRetrieveEvent as ConversationItemRetrieveEvent, type ConversationItemTruncateEvent as ConversationItemTruncateEvent, type ConversationItemTruncatedEvent as ConversationItemTruncatedEvent, type ConversationItemWithReference as ConversationItemWithReference, type ErrorEvent as ErrorEvent, type InputAudioBufferAppendEvent as InputAudioBufferAppendEvent, type InputAudioBufferClearEvent as InputAudioBufferClearEvent, type InputAudioBufferClearedEvent as InputAudioBufferClearedEvent, type InputAudioBufferCommitEvent as InputAudioBufferCommitEvent, type InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent, type InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, type InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, type RateLimitsUpdatedEvent as RateLimitsUpdatedEvent, type RealtimeClientEvent as RealtimeClientEvent, type RealtimeResponse as RealtimeResponse, type RealtimeResponseStatus as RealtimeResponseStatus, type RealtimeResponseUsage as RealtimeResponseUsage, type RealtimeServerEvent as RealtimeServerEvent, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCancelEvent as ResponseCancelEvent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseCreateEvent as ResponseCreateEvent, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseDoneEvent as ResponseDoneEvent, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type SessionCreatedEvent as SessionCreatedEvent, type SessionUpdateEvent as SessionUpdateEvent, type SessionUpdatedEvent as SessionUpdatedEvent, type TranscriptionSessionUpdate as TranscriptionSessionUpdate, type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent, Agents as Agents, type Agent as Agent, type AgentCloseSubagentCallItem as AgentCloseSubagentCallItem, type AgentCommandExecutionItem as AgentCommandExecutionItem, type AgentContent as AgentContent, type AgentCreateSubagentCallItem as AgentCreateSubagentCallItem, type AgentDeleted as AgentDeleted, type AgentFunctionCallItem as AgentFunctionCallItem, type AgentFunctionCallOutput as AgentFunctionCallOutput, type AgentFunctionCallOutputParam as AgentFunctionCallOutputParam, type AgentFunctionCallStatus as AgentFunctionCallStatus, type AgentInterruptSubagentCallItem as AgentInterruptSubagentCallItem, type AgentMcpCallItem as AgentMcpCallItem, type AgentOutputCommandExecutionOutputDeltaEvent as AgentOutputCommandExecutionOutputDeltaEvent, type AgentOutputItem as AgentOutputItem, type AgentOutputItemStatus as AgentOutputItemStatus, type AgentReasoning as AgentReasoning, type AgentReasoningItem as AgentReasoningItem, type AgentReasoningParam as AgentReasoningParam, type AgentResumeSubagentCallItem as AgentResumeSubagentCallItem, type AgentSendSubagentInputCallItem as AgentSendSubagentInputCallItem, type AgentSession as AgentSession, type AgentSessionAssistantMessage as AgentSessionAssistantMessage, type AgentSessionCreatedEvent as AgentSessionCreatedEvent, type AgentSessionDeleted as AgentSessionDeleted, type AgentSessionEnvironmentConnectedEvent as AgentSessionEnvironmentConnectedEvent, type AgentSessionEnvironmentDisconnectedEvent as AgentSessionEnvironmentDisconnectedEvent, type AgentSessionEnvironmentFailedEvent as AgentSessionEnvironmentFailedEvent, type AgentSessionEnvironmentPendingEvent as AgentSessionEnvironmentPendingEvent, type AgentSessionEnvironmentReadyEvent as AgentSessionEnvironmentReadyEvent, type AgentSessionEnvironmentResetEvent as AgentSessionEnvironmentResetEvent, type AgentSessionEnvironmentState as AgentSessionEnvironmentState, type AgentSessionErrorEvent as AgentSessionErrorEvent, type AgentSessionEvent as AgentSessionEvent, type AgentSessionFailedEvent as AgentSessionFailedEvent, type AgentSessionIdleEvent as AgentSessionIdleEvent, type AgentSessionInProgressEvent as AgentSessionInProgressEvent, type AgentSessionInputMessageParam as AgentSessionInputMessageParam, type AgentSessionInputParam as AgentSessionInputParam, type AgentSessionItem as AgentSessionItem, type AgentSessionMessage as AgentSessionMessage, type AgentSessionMessageContent as AgentSessionMessageContent, type AgentSessionRequiresActionEvent as AgentSessionRequiresActionEvent, type AgentSessionSubagentActiveEvent as AgentSessionSubagentActiveEvent, type AgentSessionSubagentClosedEvent as AgentSessionSubagentClosedEvent, type AgentSessionSubagentCreatedEvent as AgentSessionSubagentCreatedEvent, type AgentSessionTurnCancelledEvent as AgentSessionTurnCancelledEvent, type AgentSessionTurnCompletedEvent as AgentSessionTurnCompletedEvent, type AgentSessionTurnContentPartAddedEvent as AgentSessionTurnContentPartAddedEvent, type AgentSessionTurnContentPartDoneEvent as AgentSessionTurnContentPartDoneEvent, type AgentSessionTurnCreatedEvent as AgentSessionTurnCreatedEvent, type AgentSessionTurnFailedEvent as AgentSessionTurnFailedEvent, type AgentSessionTurnInProgressEvent as AgentSessionTurnInProgressEvent, type AgentSessionTurnItemAddedEvent as AgentSessionTurnItemAddedEvent, type AgentSessionTurnItemDoneEvent as AgentSessionTurnItemDoneEvent, type AgentSessionTurnOutputTextDeltaEvent as AgentSessionTurnOutputTextDeltaEvent, type AgentSessionTurnOutputTextDoneEvent as AgentSessionTurnOutputTextDoneEvent, type AgentSessionTurnReasoningSummaryPartAddedEvent as AgentSessionTurnReasoningSummaryPartAddedEvent, type AgentSessionTurnReasoningSummaryPartDoneEvent as AgentSessionTurnReasoningSummaryPartDoneEvent, type AgentSessionTurnReasoningSummaryTextDeltaEvent as AgentSessionTurnReasoningSummaryTextDeltaEvent, type AgentSessionTurnReasoningSummaryTextDoneEvent as AgentSessionTurnReasoningSummaryTextDoneEvent, type AgentText as AgentText, type AgentTextParam as AgentTextParam, type AgentTool as AgentTool, type AgentToolParam as AgentToolParam, type AgentWaitForSubagentsCallItem as AgentWaitForSubagentsCallItem, type AgentWebSearchCallItem as AgentWebSearchCallItem, type Environment as Environment, type EnvironmentParam as EnvironmentParam, type HostedEnvironmentFile as HostedEnvironmentFile, type HostedEnvironmentFileID as HostedEnvironmentFileID, type HostedEnvironmentFileParam as HostedEnvironmentFileParam, type HostedPlugin as HostedPlugin, type HostedPluginParam as HostedPluginParam, type HostedSkill as HostedSkill, type HostedSkillParam as HostedSkillParam, type HostedSkillReference as HostedSkillReference, type InlineCapabilitySourceParam as InlineCapabilitySourceParam, type InputContent as InputContent, type InputContentParam as InputContentParam, type McpTransport as McpTransport, type McpTransportParam as McpTransportParam, type MultiAgentConfig as MultiAgentConfig, type MultiAgentConfigParam as MultiAgentConfigParam, type OutputText as OutputText, type PersistedAgentTool as PersistedAgentTool, type PersistedAgentToolParam as PersistedAgentToolParam, type PersistedMcpTransport as PersistedMcpTransport, type PersistedMcpTransportParam as PersistedMcpTransportParam, type SessionError as SessionError, type SessionTurnError as SessionTurnError, type SetupCommandParam as SetupCommandParam, type Subagent as Subagent, type SummaryText as SummaryText, type TextFormat as TextFormat, type TextFormatParam as TextFormatParam, type TokenUsage as TokenUsage, type WebSearchAction as WebSearchAction, type AgentsPage as AgentsPage, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
23
|
+
export { Realtime as Realtime, type ConversationCreatedEvent as ConversationCreatedEvent, type ConversationItem as ConversationItem, type ConversationItemContent as ConversationItemContent, type ConversationItemCreateEvent as ConversationItemCreateEvent, type ConversationItemCreatedEvent as ConversationItemCreatedEvent, type ConversationItemDeleteEvent as ConversationItemDeleteEvent, type ConversationItemDeletedEvent as ConversationItemDeletedEvent, type ConversationItemInputAudioTranscriptionCompletedEvent as ConversationItemInputAudioTranscriptionCompletedEvent, type ConversationItemInputAudioTranscriptionDeltaEvent as ConversationItemInputAudioTranscriptionDeltaEvent, type ConversationItemInputAudioTranscriptionFailedEvent as ConversationItemInputAudioTranscriptionFailedEvent, type ConversationItemRetrieveEvent as ConversationItemRetrieveEvent, type ConversationItemTruncateEvent as ConversationItemTruncateEvent, type ConversationItemTruncatedEvent as ConversationItemTruncatedEvent, type ConversationItemWithReference as ConversationItemWithReference, type ErrorEvent as ErrorEvent, type InputAudioBufferAppendEvent as InputAudioBufferAppendEvent, type InputAudioBufferClearEvent as InputAudioBufferClearEvent, type InputAudioBufferClearedEvent as InputAudioBufferClearedEvent, type InputAudioBufferCommitEvent as InputAudioBufferCommitEvent, type InputAudioBufferCommittedEvent as InputAudioBufferCommittedEvent, type InputAudioBufferSpeechStartedEvent as InputAudioBufferSpeechStartedEvent, type InputAudioBufferSpeechStoppedEvent as InputAudioBufferSpeechStoppedEvent, type RateLimitsUpdatedEvent as RateLimitsUpdatedEvent, type RealtimeClientEvent as RealtimeClientEvent, type RealtimeResponse as RealtimeResponse, type RealtimeResponseStatus as RealtimeResponseStatus, type RealtimeResponseUsage as RealtimeResponseUsage, type RealtimeServerEvent as RealtimeServerEvent, type ResponseAudioDeltaEvent as ResponseAudioDeltaEvent, type ResponseAudioDoneEvent as ResponseAudioDoneEvent, type ResponseAudioTranscriptDeltaEvent as ResponseAudioTranscriptDeltaEvent, type ResponseAudioTranscriptDoneEvent as ResponseAudioTranscriptDoneEvent, type ResponseCancelEvent as ResponseCancelEvent, type ResponseContentPartAddedEvent as ResponseContentPartAddedEvent, type ResponseContentPartDoneEvent as ResponseContentPartDoneEvent, type ResponseCreateEvent as ResponseCreateEvent, type ResponseCreatedEvent as ResponseCreatedEvent, type ResponseDoneEvent as ResponseDoneEvent, type ResponseFunctionCallArgumentsDeltaEvent as ResponseFunctionCallArgumentsDeltaEvent, type ResponseFunctionCallArgumentsDoneEvent as ResponseFunctionCallArgumentsDoneEvent, type ResponseOutputItemAddedEvent as ResponseOutputItemAddedEvent, type ResponseOutputItemDoneEvent as ResponseOutputItemDoneEvent, type ResponseTextDeltaEvent as ResponseTextDeltaEvent, type ResponseTextDoneEvent as ResponseTextDoneEvent, type SessionCreatedEvent as SessionCreatedEvent, type SessionUpdateEvent as SessionUpdateEvent, type SessionUpdatedEvent as SessionUpdatedEvent, type TranscriptionSessionUpdate as TranscriptionSessionUpdate, type TranscriptionSessionUpdatedEvent as TranscriptionSessionUpdatedEvent, Agents as Agents, type Agent as Agent, type AgentBrowserAuthenticationCancelParam as AgentBrowserAuthenticationCancelParam, type AgentBrowserAuthenticationSubmitParam as AgentBrowserAuthenticationSubmitParam, type AgentBrowserOriginAccessParam as AgentBrowserOriginAccessParam, type AgentCloseSubagentCallItem as AgentCloseSubagentCallItem, type AgentCommandExecutionItem as AgentCommandExecutionItem, type AgentContent as AgentContent, type AgentCreateSubagentCallItem as AgentCreateSubagentCallItem, type AgentDeleted as AgentDeleted, type AgentFunctionCallItem as AgentFunctionCallItem, type AgentFunctionCallOutput as AgentFunctionCallOutput, type AgentFunctionCallOutputParam as AgentFunctionCallOutputParam, type AgentFunctionCallStatus as AgentFunctionCallStatus, type AgentInterruptSubagentCallItem as AgentInterruptSubagentCallItem, type AgentMcpCallItem as AgentMcpCallItem, type AgentOutputCommandExecutionOutputDeltaEvent as AgentOutputCommandExecutionOutputDeltaEvent, type AgentOutputItem as AgentOutputItem, type AgentOutputItemStatus as AgentOutputItemStatus, type AgentReasoning as AgentReasoning, type AgentReasoningItem as AgentReasoningItem, type AgentReasoningParam as AgentReasoningParam, type AgentResumeSubagentCallItem as AgentResumeSubagentCallItem, type AgentSendSubagentInputCallItem as AgentSendSubagentInputCallItem, type AgentSession as AgentSession, type AgentSessionAssistantMessage as AgentSessionAssistantMessage, type AgentSessionCreatedEvent as AgentSessionCreatedEvent, type AgentSessionDeleted as AgentSessionDeleted, type AgentSessionEnvironmentConnectedEvent as AgentSessionEnvironmentConnectedEvent, type AgentSessionEnvironmentDisconnectedEvent as AgentSessionEnvironmentDisconnectedEvent, type AgentSessionEnvironmentFailedEvent as AgentSessionEnvironmentFailedEvent, type AgentSessionEnvironmentPendingEvent as AgentSessionEnvironmentPendingEvent, type AgentSessionEnvironmentReadyEvent as AgentSessionEnvironmentReadyEvent, type AgentSessionEnvironmentResetEvent as AgentSessionEnvironmentResetEvent, type AgentSessionEnvironmentState as AgentSessionEnvironmentState, type AgentSessionErrorEvent as AgentSessionErrorEvent, type AgentSessionEvent as AgentSessionEvent, type AgentSessionFailedEvent as AgentSessionFailedEvent, type AgentSessionIdleEvent as AgentSessionIdleEvent, type AgentSessionInProgressEvent as AgentSessionInProgressEvent, type AgentSessionInputMessageParam as AgentSessionInputMessageParam, type AgentSessionInputParam as AgentSessionInputParam, type AgentSessionItem as AgentSessionItem, type AgentSessionMessage as AgentSessionMessage, type AgentSessionMessageContent as AgentSessionMessageContent, type AgentSessionRequiresActionEvent as AgentSessionRequiresActionEvent, type AgentSessionSubagentActiveEvent as AgentSessionSubagentActiveEvent, type AgentSessionSubagentClosedEvent as AgentSessionSubagentClosedEvent, type AgentSessionSubagentCreatedEvent as AgentSessionSubagentCreatedEvent, type AgentSessionTurnCancelledEvent as AgentSessionTurnCancelledEvent, type AgentSessionTurnCompletedEvent as AgentSessionTurnCompletedEvent, type AgentSessionTurnContentPartAddedEvent as AgentSessionTurnContentPartAddedEvent, type AgentSessionTurnContentPartDoneEvent as AgentSessionTurnContentPartDoneEvent, type AgentSessionTurnCreatedEvent as AgentSessionTurnCreatedEvent, type AgentSessionTurnFailedEvent as AgentSessionTurnFailedEvent, type AgentSessionTurnInProgressEvent as AgentSessionTurnInProgressEvent, type AgentSessionTurnItemAddedEvent as AgentSessionTurnItemAddedEvent, type AgentSessionTurnItemDoneEvent as AgentSessionTurnItemDoneEvent, type AgentSessionTurnOutputTextDeltaEvent as AgentSessionTurnOutputTextDeltaEvent, type AgentSessionTurnOutputTextDoneEvent as AgentSessionTurnOutputTextDoneEvent, type AgentSessionTurnReasoningSummaryPartAddedEvent as AgentSessionTurnReasoningSummaryPartAddedEvent, type AgentSessionTurnReasoningSummaryPartDoneEvent as AgentSessionTurnReasoningSummaryPartDoneEvent, type AgentSessionTurnReasoningSummaryTextDeltaEvent as AgentSessionTurnReasoningSummaryTextDeltaEvent, type AgentSessionTurnReasoningSummaryTextDoneEvent as AgentSessionTurnReasoningSummaryTextDoneEvent, type AgentText as AgentText, type AgentTextParam as AgentTextParam, type AgentTool as AgentTool, type AgentToolParam as AgentToolParam, type AgentWaitForSubagentsCallItem as AgentWaitForSubagentsCallItem, type AgentWebSearchCallItem as AgentWebSearchCallItem, type Environment as Environment, type EnvironmentParam as EnvironmentParam, type HostedEnvironmentFile as HostedEnvironmentFile, type HostedEnvironmentFileID as HostedEnvironmentFileID, type HostedEnvironmentFileParam as HostedEnvironmentFileParam, type HostedPlugin as HostedPlugin, type HostedPluginParam as HostedPluginParam, type HostedSkill as HostedSkill, type HostedSkillParam as HostedSkillParam, type HostedSkillReference as HostedSkillReference, type InlineCapabilitySourceParam as InlineCapabilitySourceParam, type InputContent as InputContent, type InputContentParam as InputContentParam, type McpTransport as McpTransport, type McpTransportParam as McpTransportParam, type MultiAgentConfig as MultiAgentConfig, type MultiAgentConfigParam as MultiAgentConfigParam, type OutputText as OutputText, type PersistedAgentTool as PersistedAgentTool, type PersistedAgentToolParam as PersistedAgentToolParam, type PersistedMcpTransport as PersistedMcpTransport, type PersistedMcpTransportParam as PersistedMcpTransportParam, type SessionError as SessionError, type SessionTurnError as SessionTurnError, type SetupCommandParam as SetupCommandParam, type Subagent as Subagent, type SummaryText as SummaryText, type TextFormat as TextFormat, type TextFormatParam as TextFormatParam, type TokenUsage as TokenUsage, type WebSearchAction as WebSearchAction, type AgentsPage as AgentsPage, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, type AgentListParams as AgentListParams, };
|
|
24
24
|
export { Responses as Responses, type BetaApplyPatchTool as BetaApplyPatchTool, type BetaCompactedResponse as BetaCompactedResponse, type BetaComputerAction as BetaComputerAction, type BetaComputerActionList as BetaComputerActionList, type BetaComputerTool as BetaComputerTool, type BetaComputerUsePreviewTool as BetaComputerUsePreviewTool, type BetaContainerAuto as BetaContainerAuto, type BetaContainerNetworkPolicyAllowlist as BetaContainerNetworkPolicyAllowlist, type BetaContainerNetworkPolicyDisabled as BetaContainerNetworkPolicyDisabled, type BetaContainerNetworkPolicyDomainSecret as BetaContainerNetworkPolicyDomainSecret, type BetaContainerReference as BetaContainerReference, type BetaCustomTool as BetaCustomTool, type BetaEasyInputMessage as BetaEasyInputMessage, type BetaFileSearchTool as BetaFileSearchTool, type BetaFunctionShellTool as BetaFunctionShellTool, type BetaFunctionTool as BetaFunctionTool, type BetaImageDetail as BetaImageDetail, type BetaInlineSkill as BetaInlineSkill, type BetaInlineSkillSource as BetaInlineSkillSource, type BetaLocalEnvironment as BetaLocalEnvironment, type BetaLocalSkill as BetaLocalSkill, type BetaMcpToolCallError as BetaMcpToolCallError, type BetaNamespaceTool as BetaNamespaceTool, type BetaResponse as BetaResponse, type BetaResponseApplyPatchToolCall as BetaResponseApplyPatchToolCall, type BetaResponseApplyPatchToolCallOutput as BetaResponseApplyPatchToolCallOutput, type BetaResponseAudioDeltaEvent as BetaResponseAudioDeltaEvent, type BetaResponseAudioDoneEvent as BetaResponseAudioDoneEvent, type BetaResponseAudioTranscriptDeltaEvent as BetaResponseAudioTranscriptDeltaEvent, type BetaResponseAudioTranscriptDoneEvent as BetaResponseAudioTranscriptDoneEvent, type BetaResponseCodeInterpreterCallCodeDeltaEvent as BetaResponseCodeInterpreterCallCodeDeltaEvent, type BetaResponseCodeInterpreterCallCodeDoneEvent as BetaResponseCodeInterpreterCallCodeDoneEvent, type BetaResponseCodeInterpreterCallCompletedEvent as BetaResponseCodeInterpreterCallCompletedEvent, type BetaResponseCodeInterpreterCallInProgressEvent as BetaResponseCodeInterpreterCallInProgressEvent, type BetaResponseCodeInterpreterCallInterpretingEvent as BetaResponseCodeInterpreterCallInterpretingEvent, type BetaResponseCodeInterpreterToolCall as BetaResponseCodeInterpreterToolCall, type BetaResponseCompactionCompactingEvent as BetaResponseCompactionCompactingEvent, type BetaResponseCompactionItem as BetaResponseCompactionItem, type BetaResponseCompactionItemParam as BetaResponseCompactionItemParam, type BetaResponseCompletedEvent as BetaResponseCompletedEvent, type BetaResponseComputerToolCall as BetaResponseComputerToolCall, type BetaResponseComputerToolCallOutputItem as BetaResponseComputerToolCallOutputItem, type BetaResponseComputerToolCallOutputScreenshot as BetaResponseComputerToolCallOutputScreenshot, type BetaResponseConfigurationUpdateItem as BetaResponseConfigurationUpdateItem, type BetaResponseConfigurationUpdateItemParam as BetaResponseConfigurationUpdateItemParam, type BetaResponseContainerReference as BetaResponseContainerReference, type BetaResponseContent as BetaResponseContent, type BetaResponseContentPartAddedEvent as BetaResponseContentPartAddedEvent, type BetaResponseContentPartDoneEvent as BetaResponseContentPartDoneEvent, type BetaResponseConversationParam as BetaResponseConversationParam, type BetaResponseCreatedEvent as BetaResponseCreatedEvent, type BetaResponseCustomToolCall as BetaResponseCustomToolCall, type BetaResponseCustomToolCallInputDeltaEvent as BetaResponseCustomToolCallInputDeltaEvent, type BetaResponseCustomToolCallInputDoneEvent as BetaResponseCustomToolCallInputDoneEvent, type BetaResponseCustomToolCallItem as BetaResponseCustomToolCallItem, type BetaResponseCustomToolCallOutput as BetaResponseCustomToolCallOutput, type BetaResponseCustomToolCallOutputItem as BetaResponseCustomToolCallOutputItem, type BetaResponseError as BetaResponseError, type BetaResponseErrorEvent as BetaResponseErrorEvent, type BetaResponseFailedEvent as BetaResponseFailedEvent, type BetaResponseFileSearchCallCompletedEvent as BetaResponseFileSearchCallCompletedEvent, type BetaResponseFileSearchCallInProgressEvent as BetaResponseFileSearchCallInProgressEvent, type BetaResponseFileSearchCallSearchingEvent as BetaResponseFileSearchCallSearchingEvent, type BetaResponseFileSearchToolCall as BetaResponseFileSearchToolCall, type BetaResponseFormatTextConfig as BetaResponseFormatTextConfig, type BetaResponseFormatTextJSONSchemaConfig as BetaResponseFormatTextJSONSchemaConfig, type BetaResponseFunctionCallArgumentsDeltaEvent as BetaResponseFunctionCallArgumentsDeltaEvent, type BetaResponseFunctionCallArgumentsDoneEvent as BetaResponseFunctionCallArgumentsDoneEvent, type BetaResponseFunctionCallOutputItem as BetaResponseFunctionCallOutputItem, type BetaResponseFunctionCallOutputItemList as BetaResponseFunctionCallOutputItemList, type BetaResponseFunctionShellCallOutputContent as BetaResponseFunctionShellCallOutputContent, type BetaResponseFunctionShellToolCall as BetaResponseFunctionShellToolCall, type BetaResponseFunctionShellToolCallOutput as BetaResponseFunctionShellToolCallOutput, type BetaResponseFunctionToolCall as BetaResponseFunctionToolCall, type BetaResponseFunctionToolCallItem as BetaResponseFunctionToolCallItem, type BetaResponseFunctionToolCallOutputItem as BetaResponseFunctionToolCallOutputItem, type BetaResponseFunctionWebSearch as BetaResponseFunctionWebSearch, type BetaResponseImageGenCallCompletedEvent as BetaResponseImageGenCallCompletedEvent, type BetaResponseImageGenCallGeneratingEvent as BetaResponseImageGenCallGeneratingEvent, type BetaResponseImageGenCallInProgressEvent as BetaResponseImageGenCallInProgressEvent, type BetaResponseImageGenCallPartialImageEvent as BetaResponseImageGenCallPartialImageEvent, type BetaResponseInProgressEvent as BetaResponseInProgressEvent, type BetaResponseIncludable as BetaResponseIncludable, type BetaResponseIncompleteEvent as BetaResponseIncompleteEvent, type BetaResponseInjectCreatedEvent as BetaResponseInjectCreatedEvent, type BetaResponseInjectEvent as BetaResponseInjectEvent, type BetaResponseInjectFailedEvent as BetaResponseInjectFailedEvent, type BetaResponseInput as BetaResponseInput, type BetaResponseInputAudio as BetaResponseInputAudio, type BetaResponseInputContent as BetaResponseInputContent, type BetaResponseInputFile as BetaResponseInputFile, type BetaResponseInputFileContent as BetaResponseInputFileContent, type BetaResponseInputImage as BetaResponseInputImage, type BetaResponseInputImageContent as BetaResponseInputImageContent, type BetaResponseInputItem as BetaResponseInputItem, type BetaResponseInputMessageContentList as BetaResponseInputMessageContentList, type BetaResponseInputMessageItem as BetaResponseInputMessageItem, type BetaResponseInputText as BetaResponseInputText, type BetaResponseInputTextContent as BetaResponseInputTextContent, type BetaResponseItem as BetaResponseItem, type BetaResponseLocalEnvironment as BetaResponseLocalEnvironment, type BetaResponseMcpCallArgumentsDeltaEvent as BetaResponseMcpCallArgumentsDeltaEvent, type BetaResponseMcpCallArgumentsDoneEvent as BetaResponseMcpCallArgumentsDoneEvent, type BetaResponseMcpCallCompletedEvent as BetaResponseMcpCallCompletedEvent, type BetaResponseMcpCallFailedEvent as BetaResponseMcpCallFailedEvent, type BetaResponseMcpCallInProgressEvent as BetaResponseMcpCallInProgressEvent, type BetaResponseMcpListToolsCompletedEvent as BetaResponseMcpListToolsCompletedEvent, type BetaResponseMcpListToolsFailedEvent as BetaResponseMcpListToolsFailedEvent, type BetaResponseMcpListToolsInProgressEvent as BetaResponseMcpListToolsInProgressEvent, type BetaResponseOutputAudio as BetaResponseOutputAudio, type BetaResponseOutputItem as BetaResponseOutputItem, type BetaResponseOutputItemAddedEvent as BetaResponseOutputItemAddedEvent, type BetaResponseOutputItemDoneEvent as BetaResponseOutputItemDoneEvent, type BetaResponseOutputMessage as BetaResponseOutputMessage, type BetaResponseOutputRefusal as BetaResponseOutputRefusal, type BetaResponseOutputText as BetaResponseOutputText, type BetaResponseOutputTextAnnotationAddedEvent as BetaResponseOutputTextAnnotationAddedEvent, type BetaResponsePrompt as BetaResponsePrompt, type BetaResponseQueuedEvent as BetaResponseQueuedEvent, type BetaResponseReasoningItem as BetaResponseReasoningItem, type BetaResponseReasoningSummaryPartAddedEvent as BetaResponseReasoningSummaryPartAddedEvent, type BetaResponseReasoningSummaryPartDoneEvent as BetaResponseReasoningSummaryPartDoneEvent, type BetaResponseReasoningSummaryTextDeltaEvent as BetaResponseReasoningSummaryTextDeltaEvent, type BetaResponseReasoningSummaryTextDoneEvent as BetaResponseReasoningSummaryTextDoneEvent, type BetaResponseReasoningTextDeltaEvent as BetaResponseReasoningTextDeltaEvent, type BetaResponseReasoningTextDoneEvent as BetaResponseReasoningTextDoneEvent, type BetaResponseRefusalDeltaEvent as BetaResponseRefusalDeltaEvent, type BetaResponseRefusalDoneEvent as BetaResponseRefusalDoneEvent, type BetaResponseShellCallCommandAddedEvent as BetaResponseShellCallCommandAddedEvent, type BetaResponseShellCallCommandDeltaEvent as BetaResponseShellCallCommandDeltaEvent, type BetaResponseShellCallCommandDoneEvent as BetaResponseShellCallCommandDoneEvent, type BetaResponseShellCallOutputContentDeltaEvent as BetaResponseShellCallOutputContentDeltaEvent, type BetaResponseShellCallOutputContentDoneEvent as BetaResponseShellCallOutputContentDoneEvent, type BetaResponseStatus as BetaResponseStatus, type BetaResponseSteerAcceptedEvent as BetaResponseSteerAcceptedEvent, type BetaResponseSteerErrorCode as BetaResponseSteerErrorCode, type BetaResponseSteerEvent as BetaResponseSteerEvent, type BetaResponseSteerFailedEvent as BetaResponseSteerFailedEvent, type BetaResponseSteerInput as BetaResponseSteerInput, type BetaResponseSteerInputContent as BetaResponseSteerInputContent, type BetaResponseSteerPendingEvent as BetaResponseSteerPendingEvent, type BetaResponseSteerPendingReason as BetaResponseSteerPendingReason, type BetaResponseSteerRequiredInput as BetaResponseSteerRequiredInput, type BetaResponseStreamEvent as BetaResponseStreamEvent, type BetaResponseTextConfig as BetaResponseTextConfig, type BetaResponseTextDeltaEvent as BetaResponseTextDeltaEvent, type BetaResponseTextDoneEvent as BetaResponseTextDoneEvent, type BetaResponseToolSearchCall as BetaResponseToolSearchCall, type BetaResponseToolSearchOutputItem as BetaResponseToolSearchOutputItem, type BetaResponseToolSearchOutputItemParam as BetaResponseToolSearchOutputItemParam, type BetaResponseUsage as BetaResponseUsage, type BetaResponseWebSearchCallCompletedEvent as BetaResponseWebSearchCallCompletedEvent, type BetaResponseWebSearchCallInProgressEvent as BetaResponseWebSearchCallInProgressEvent, type BetaResponseWebSearchCallSearchingEvent as BetaResponseWebSearchCallSearchingEvent, type BetaResponsesClientEvent as BetaResponsesClientEvent, type BetaResponsesServerEvent as BetaResponsesServerEvent, type BetaServiceTier as BetaServiceTier, type BetaSkillReference as BetaSkillReference, type BetaTool as BetaTool, type BetaToolChoiceAllowed as BetaToolChoiceAllowed, type BetaToolChoiceApplyPatch as BetaToolChoiceApplyPatch, type BetaToolChoiceCustom as BetaToolChoiceCustom, type BetaToolChoiceFunction as BetaToolChoiceFunction, type BetaToolChoiceMcp as BetaToolChoiceMcp, type BetaToolChoiceOptions as BetaToolChoiceOptions, type BetaToolChoiceShell as BetaToolChoiceShell, type BetaToolChoiceTypes as BetaToolChoiceTypes, type BetaToolSearchTool as BetaToolSearchTool, type BetaWebSearchPreviewTool as BetaWebSearchPreviewTool, type BetaWebSearchTool as BetaWebSearchTool, type ResponseCreateParams as ResponseCreateParams, type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming, type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming, type ResponseRetrieveParams as ResponseRetrieveParams, type ResponseRetrieveParamsNonStreaming as ResponseRetrieveParamsNonStreaming, type ResponseRetrieveParamsStreaming as ResponseRetrieveParamsStreaming, type ResponseDeleteParams as ResponseDeleteParams, type ResponseCancelParams as ResponseCancelParams, type ResponseCompactParams as ResponseCompactParams, };
|
|
25
25
|
export { ChatKit as ChatKit, type ChatKitWorkflow as ChatKitWorkflow };
|
|
26
26
|
export { Assistants as Assistants, type Assistant as Assistant, type AssistantDeleted as AssistantDeleted, type AssistantStreamEvent as AssistantStreamEvent, type AssistantTool as AssistantTool, type CodeInterpreterTool as CodeInterpreterTool, type FileSearchTool as FileSearchTool, type FunctionTool as FunctionTool, type MessageStreamEvent as MessageStreamEvent, type RunStepStreamEvent as RunStepStreamEvent, type RunStreamEvent as RunStreamEvent, type ThreadStreamEvent as ThreadStreamEvent, type AssistantsPage as AssistantsPage, type AssistantCreateParams as AssistantCreateParams, type AssistantUpdateParams as AssistantUpdateParams, type AssistantListParams as AssistantListParams, };
|