@openai/agents-realtime 0.0.1

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.
Files changed (100) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +13 -0
  3. package/dist/bundle/openai-realtime-agents.mjs +8777 -0
  4. package/dist/bundle/openai-realtime-agents.umd.js +11 -0
  5. package/dist/clientMessages.d.ts +40 -0
  6. package/dist/clientMessages.js +2 -0
  7. package/dist/clientMessages.js.map +1 -0
  8. package/dist/clientMessages.mjs +2 -0
  9. package/dist/clientMessages.mjs.map +1 -0
  10. package/dist/guardrail.d.ts +32 -0
  11. package/dist/guardrail.js +34 -0
  12. package/dist/guardrail.js.map +1 -0
  13. package/dist/guardrail.mjs +34 -0
  14. package/dist/guardrail.mjs.map +1 -0
  15. package/dist/index.d.ts +18 -0
  16. package/dist/index.js +13 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/index.mjs +13 -0
  19. package/dist/index.mjs.map +1 -0
  20. package/dist/items.d.ts +183 -0
  21. package/dist/items.js +47 -0
  22. package/dist/items.js.map +1 -0
  23. package/dist/items.mjs +47 -0
  24. package/dist/items.mjs.map +1 -0
  25. package/dist/logger.d.ts +2 -0
  26. package/dist/logger.js +4 -0
  27. package/dist/logger.js.map +1 -0
  28. package/dist/logger.mjs +4 -0
  29. package/dist/logger.mjs.map +1 -0
  30. package/dist/metadata.d.ts +9 -0
  31. package/dist/metadata.js +11 -0
  32. package/dist/metadata.js.map +1 -0
  33. package/dist/metadata.mjs +11 -0
  34. package/dist/metadata.mjs.map +1 -0
  35. package/dist/openaiRealtimeBase.d.ts +143 -0
  36. package/dist/openaiRealtimeBase.js +449 -0
  37. package/dist/openaiRealtimeBase.js.map +1 -0
  38. package/dist/openaiRealtimeBase.mjs +449 -0
  39. package/dist/openaiRealtimeBase.mjs.map +1 -0
  40. package/dist/openaiRealtimeEvents.d.ts +3242 -0
  41. package/dist/openaiRealtimeEvents.js +439 -0
  42. package/dist/openaiRealtimeEvents.js.map +1 -0
  43. package/dist/openaiRealtimeEvents.mjs +439 -0
  44. package/dist/openaiRealtimeEvents.mjs.map +1 -0
  45. package/dist/openaiRealtimeWebRtc.d.ts +102 -0
  46. package/dist/openaiRealtimeWebRtc.js +245 -0
  47. package/dist/openaiRealtimeWebRtc.js.map +1 -0
  48. package/dist/openaiRealtimeWebRtc.mjs +245 -0
  49. package/dist/openaiRealtimeWebRtc.mjs.map +1 -0
  50. package/dist/openaiRealtimeWebsocket.d.ts +126 -0
  51. package/dist/openaiRealtimeWebsocket.js +293 -0
  52. package/dist/openaiRealtimeWebsocket.js.map +1 -0
  53. package/dist/openaiRealtimeWebsocket.mjs +293 -0
  54. package/dist/openaiRealtimeWebsocket.mjs.map +1 -0
  55. package/dist/realtimeAgent.d.ts +49 -0
  56. package/dist/realtimeAgent.js +37 -0
  57. package/dist/realtimeAgent.js.map +1 -0
  58. package/dist/realtimeAgent.mjs +37 -0
  59. package/dist/realtimeAgent.mjs.map +1 -0
  60. package/dist/realtimeSession.d.ts +210 -0
  61. package/dist/realtimeSession.js +469 -0
  62. package/dist/realtimeSession.js.map +1 -0
  63. package/dist/realtimeSession.mjs +469 -0
  64. package/dist/realtimeSession.mjs.map +1 -0
  65. package/dist/realtimeSessionEvents.d.ts +118 -0
  66. package/dist/realtimeSessionEvents.js +2 -0
  67. package/dist/realtimeSessionEvents.js.map +1 -0
  68. package/dist/realtimeSessionEvents.mjs +2 -0
  69. package/dist/realtimeSessionEvents.mjs.map +1 -0
  70. package/dist/shims/shims-browser.d.ts +9 -0
  71. package/dist/shims/shims-browser.js +6 -0
  72. package/dist/shims/shims-browser.js.map +1 -0
  73. package/dist/shims/shims-browser.mjs +6 -0
  74. package/dist/shims/shims-browser.mjs.map +1 -0
  75. package/dist/shims/shims-node.d.ts +2 -0
  76. package/dist/shims/shims-node.js +5 -0
  77. package/dist/shims/shims-node.js.map +1 -0
  78. package/dist/shims/shims-node.mjs +5 -0
  79. package/dist/shims/shims-node.mjs.map +1 -0
  80. package/dist/shims/shims.d.ts +1 -0
  81. package/dist/shims/shims.js +2 -0
  82. package/dist/shims/shims.js.map +1 -0
  83. package/dist/shims/shims.mjs +2 -0
  84. package/dist/shims/shims.mjs.map +1 -0
  85. package/dist/transportLayer.d.ts +96 -0
  86. package/dist/transportLayer.js +2 -0
  87. package/dist/transportLayer.js.map +1 -0
  88. package/dist/transportLayer.mjs +2 -0
  89. package/dist/transportLayer.mjs.map +1 -0
  90. package/dist/transportLayerEvents.d.ts +99 -0
  91. package/dist/transportLayerEvents.js +2 -0
  92. package/dist/transportLayerEvents.js.map +1 -0
  93. package/dist/transportLayerEvents.mjs +2 -0
  94. package/dist/transportLayerEvents.mjs.map +1 -0
  95. package/dist/utils.d.ts +61 -0
  96. package/dist/utils.js +183 -0
  97. package/dist/utils.js.map +1 -0
  98. package/dist/utils.mjs +183 -0
  99. package/dist/utils.mjs.map +1 -0
  100. package/package.json +77 -0
@@ -0,0 +1,40 @@
1
+ import { JsonObjectSchema, ModelSettingsToolChoice } from '@openai/agents-core/types';
2
+ export type RealtimeClientMessage = {
3
+ type: string;
4
+ [key: string]: any;
5
+ };
6
+ export type RealtimeUserInput = string | {
7
+ type: 'message';
8
+ role: 'user';
9
+ content: {
10
+ type: 'input_text';
11
+ text: string;
12
+ }[];
13
+ };
14
+ export type RealtimeAudioFormat = 'pcm16' | 'g711_ulaw' | 'g711_alaw' | (string & {});
15
+ export type RealtimeTracingConfig = {
16
+ workflow_name?: string;
17
+ group_id?: string;
18
+ metadata?: Record<string, any>;
19
+ } | 'auto';
20
+ export type RealtimeSessionConfig = {
21
+ model: string;
22
+ instructions: string;
23
+ modalities: ('text' | 'audio')[];
24
+ voice: string;
25
+ inputAudioFormat: RealtimeAudioFormat;
26
+ outputAudioFormat: RealtimeAudioFormat;
27
+ inputAudioTranscription: Record<string, any>;
28
+ turnDetection: Record<string, any>;
29
+ toolChoice: ModelSettingsToolChoice;
30
+ tools: FunctionToolDefinition[];
31
+ tracing?: RealtimeTracingConfig | null;
32
+ providerData?: Record<string, any>;
33
+ };
34
+ export type FunctionToolDefinition = {
35
+ type: 'function';
36
+ name: string;
37
+ description: string;
38
+ parameters: JsonObjectSchema<any>;
39
+ strict: boolean;
40
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clientMessages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientMessages.js","sourceRoot":"","sources":["../src/clientMessages.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=clientMessages.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientMessages.mjs","sourceRoot":"","sources":["../src/clientMessages.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import { OutputGuardrailResult, OutputGuardrail, OutputGuardrailDefinition, OutputGuardrailMetadata, OutputGuardrailFunctionArgs } from '@openai/agents-core';
2
+ export interface RealtimeOutputGuardrailSettings {
3
+ /**
4
+ * The number of characters in the text transcript to trigger the next guardrail execution.
5
+ * Executes every `debounceTextLength` characters.
6
+ * Defaults to 100.
7
+ * Set to -1 if you want to only run the guardrail when the entire transcript is available.
8
+ *
9
+ * @default 100
10
+ */
11
+ debounceTextLength: number;
12
+ }
13
+ export declare function getRealtimeGuardrailSettings(settings: Partial<RealtimeOutputGuardrailSettings>): RealtimeOutputGuardrailSettings;
14
+ export interface RealtimeOutputGuardrail extends OutputGuardrail {
15
+ /**
16
+ * This will be passed to the model to inform it about why the guardrail was triggered and to
17
+ * correct the behavior. If it's not specified the name of your guardrail will be passed instead.
18
+ */
19
+ policyHint?: string;
20
+ }
21
+ export interface RealtimeGuardrailMetadata extends OutputGuardrailMetadata {
22
+ policyHint?: string;
23
+ }
24
+ export interface RealtimeOutputGuardrailDefinition extends OutputGuardrailDefinition<RealtimeGuardrailMetadata>, RealtimeGuardrailMetadata {
25
+ run(args: OutputGuardrailFunctionArgs<unknown>): Promise<OutputGuardrailResult<RealtimeGuardrailMetadata>>;
26
+ }
27
+ export declare function defineRealtimeOutputGuardrail({ policyHint: policyHintInput, ...options }: RealtimeOutputGuardrail): RealtimeOutputGuardrailDefinition;
28
+ /**
29
+ * Generates a message that informs the model about why the guardrail was triggered and to
30
+ * correct the behavior.
31
+ */
32
+ export declare function getRealtimeGuardrailFeedbackMessage(result: OutputGuardrailResult<RealtimeGuardrailMetadata>): string;
@@ -0,0 +1,34 @@
1
+ import { defineOutputGuardrail, } from '@openai/agents-core';
2
+ export function getRealtimeGuardrailSettings(settings) {
3
+ return {
4
+ debounceTextLength: settings.debounceTextLength ?? 100,
5
+ };
6
+ }
7
+ export function defineRealtimeOutputGuardrail({ policyHint: policyHintInput, ...options }) {
8
+ const baseGuardrail = defineOutputGuardrail(options);
9
+ const policyHint = policyHintInput ?? baseGuardrail.name;
10
+ return {
11
+ ...baseGuardrail,
12
+ policyHint,
13
+ run: async (args) => {
14
+ const result = await baseGuardrail.run(args);
15
+ return {
16
+ ...result,
17
+ guardrail: { ...result.guardrail, policyHint },
18
+ };
19
+ },
20
+ };
21
+ }
22
+ /**
23
+ * Generates a message that informs the model about why the guardrail was triggered and to
24
+ * correct the behavior.
25
+ */
26
+ export function getRealtimeGuardrailFeedbackMessage(result) {
27
+ return `
28
+ ⚠️ Your last answer was blocked.
29
+ Failed Guardrail Reason: ${result.guardrail.policyHint}.
30
+ Failure Details: ${JSON.stringify(result.output.outputInfo ?? {})}.
31
+ Please respond again following policy. Apologize for not being able to answer the question (while avoiding the specific reason) and divert discussion back to an approved topic immediately and not invite more discussion.
32
+ `.trim();
33
+ }
34
+ //# sourceMappingURL=guardrail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardrail.js","sourceRoot":"","sources":["../src/guardrail.ts"],"names":[],"mappings":"OAAO,EAEL,qBAAqB,GAKtB,MAAM,qBAAqB;AAc5B,MAAM,UAAU,4BAA4B,CAC1C,QAAkD;IAElD,OAAO;QACL,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB,IAAI,GAAG;KACvD,CAAC;AACJ,CAAC;AAsBD,MAAM,UAAU,6BAA6B,CAAC,EAC5C,UAAU,EAAE,eAAe,EAC3B,GAAG,OAAO,EACc;IACxB,MAAM,aAAa,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,eAAe,IAAI,aAAa,CAAC,IAAI,CAAC;IACzD,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAClB,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC7C,OAAO;gBACL,GAAG,MAAM;gBACT,SAAS,EAAE,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE;aAC/C,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mCAAmC,CACjD,MAAwD;IAExD,OAAO;;2BAEkB,MAAM,CAAC,SAAS,CAAC,UAAU;mBACnC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;;CAEhE,CAAC,IAAI,EAAE,CAAC;AACT,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { defineOutputGuardrail, } from '@openai/agents-core';
2
+ export function getRealtimeGuardrailSettings(settings) {
3
+ return {
4
+ debounceTextLength: settings.debounceTextLength ?? 100,
5
+ };
6
+ }
7
+ export function defineRealtimeOutputGuardrail({ policyHint: policyHintInput, ...options }) {
8
+ const baseGuardrail = defineOutputGuardrail(options);
9
+ const policyHint = policyHintInput ?? baseGuardrail.name;
10
+ return {
11
+ ...baseGuardrail,
12
+ policyHint,
13
+ run: async (args) => {
14
+ const result = await baseGuardrail.run(args);
15
+ return {
16
+ ...result,
17
+ guardrail: { ...result.guardrail, policyHint },
18
+ };
19
+ },
20
+ };
21
+ }
22
+ /**
23
+ * Generates a message that informs the model about why the guardrail was triggered and to
24
+ * correct the behavior.
25
+ */
26
+ export function getRealtimeGuardrailFeedbackMessage(result) {
27
+ return `
28
+ ⚠️ Your last answer was blocked.
29
+ Failed Guardrail Reason: ${result.guardrail.policyHint}.
30
+ Failure Details: ${JSON.stringify(result.output.outputInfo ?? {})}.
31
+ Please respond again following policy. Apologize for not being able to answer the question (while avoiding the specific reason) and divert discussion back to an approved topic immediately and not invite more discussion.
32
+ `.trim();
33
+ }
34
+ //# sourceMappingURL=guardrail.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guardrail.mjs","sourceRoot":"","sources":["../src/guardrail.ts"],"names":[],"mappings":"OAAO,EAEL,qBAAqB,GAKtB,MAAM,qBAAqB;AAc5B,MAAM,UAAU,4BAA4B,CAC1C,QAAkD;IAElD,OAAO;QACL,kBAAkB,EAAE,QAAQ,CAAC,kBAAkB,IAAI,GAAG;KACvD,CAAC;AACJ,CAAC;AAsBD,MAAM,UAAU,6BAA6B,CAAC,EAC5C,UAAU,EAAE,eAAe,EAC3B,GAAG,OAAO,EACc;IACxB,MAAM,aAAa,GAAG,qBAAqB,CAAC,OAAO,CAAC,CAAC;IACrD,MAAM,UAAU,GAAG,eAAe,IAAI,aAAa,CAAC,IAAI,CAAC;IACzD,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YAClB,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC7C,OAAO;gBACL,GAAG,MAAM;gBACT,SAAS,EAAE,EAAE,GAAG,MAAM,CAAC,SAAS,EAAE,UAAU,EAAE;aAC/C,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,mCAAmC,CACjD,MAAwD;IAExD,OAAO;;2BAEkB,MAAM,CAAC,SAAS,CAAC,UAAU;mBACnC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;;CAEhE,CAAC,IAAI,EAAE,CAAC;AACT,CAAC"}
@@ -0,0 +1,18 @@
1
+ import * as utilImport from './utils';
2
+ export { RealtimeAgent, RealtimeAgentConfiguration } from './realtimeAgent';
3
+ export { RealtimeSession, RealtimeSessionConnectOptions, RealtimeSessionOptions, RealtimeContextData, } from './realtimeSession';
4
+ export { RealtimeSessionEventTypes } from './realtimeSessionEvents';
5
+ export { TransportEvent, TransportLayerAudio, TransportLayerResponseCompleted, TransportLayerResponseStarted, TransportLayerTranscriptDelta, TransportError, TransportToolCallEvent, RealtimeTranportEventTypes, } from './transportLayerEvents';
6
+ export { RealtimeClientMessage, RealtimeAudioFormat, RealtimeSessionConfig, } from './clientMessages';
7
+ export { OpenAIRealtimeWebRTC, OpenAIRealtimeWebRTCOptions, WebRTCState, } from './openaiRealtimeWebRtc';
8
+ export { OpenAIRealtimeWebSocket, OpenAIRealtimeWebSocketOptions, WebSocketState, } from './openaiRealtimeWebsocket';
9
+ export { OpenAIRealtimeModels, OpenAIRealtimeBase, OpenAIRealtimeBaseOptions, OpenAIRealtimeEventTypes, DEFAULT_OPENAI_REALTIME_MODEL, DEFAULT_OPENAI_REALTIME_SESSION_CONFIG, } from './openaiRealtimeBase';
10
+ export { RealtimeOutputGuardrail } from './guardrail';
11
+ export { RealtimeItem, RealtimeToolCallItem, RealtimeMessageItem, RealtimeBaseItem, } from './items';
12
+ export { ApiKey, RealtimeTransportLayerConnectOptions, RealtimeTransportLayer, } from './transportLayer';
13
+ export declare const utils: {
14
+ base64ToArrayBuffer: typeof utilImport.base64ToArrayBuffer;
15
+ arrayBufferToBase64: typeof utilImport.arrayBufferToBase64;
16
+ getLastTextFromAudioOutputMessage: typeof utilImport.getLastTextFromAudioOutputMessage;
17
+ };
18
+ export { FunctionTool, ModelBehaviorError, OutputGuardrailTripwireTriggered, tool, UserError, } from '@openai/agents-core';
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import * as utilImport from "./utils.js";
2
+ export { RealtimeAgent } from "./realtimeAgent.js";
3
+ export { RealtimeSession, } from "./realtimeSession.js";
4
+ export { OpenAIRealtimeWebRTC, } from "./openaiRealtimeWebRtc.js";
5
+ export { OpenAIRealtimeWebSocket, } from "./openaiRealtimeWebsocket.js";
6
+ export { OpenAIRealtimeBase, DEFAULT_OPENAI_REALTIME_MODEL, DEFAULT_OPENAI_REALTIME_SESSION_CONFIG, } from "./openaiRealtimeBase.js";
7
+ export const utils = {
8
+ base64ToArrayBuffer: utilImport.base64ToArrayBuffer,
9
+ arrayBufferToBase64: utilImport.arrayBufferToBase64,
10
+ getLastTextFromAudioOutputMessage: utilImport.getLastTextFromAudioOutputMessage,
11
+ };
12
+ export { ModelBehaviorError, OutputGuardrailTripwireTriggered, tool, UserError, } from '@openai/agents-core';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"OAAO,KAAK,UAAU;OAEf,EAAE,aAAa,EAA8B;OAE7C,EACL,eAAe,GAIhB;OAqBM,EACL,oBAAoB,GAGrB;OAEM,EACL,uBAAuB,GAGxB;OAEM,EAEL,kBAAkB,EAGlB,6BAA6B,EAC7B,sCAAsC,GACvC;AAiBD,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;IACnD,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;IACnD,iCAAiC,EAC/B,UAAU,CAAC,iCAAiC;CAC/C,CAAC;OAIK,EAEL,kBAAkB,EAClB,gCAAgC,EAChC,IAAI,EACJ,SAAS,GACV,MAAM,qBAAqB"}
package/dist/index.mjs ADDED
@@ -0,0 +1,13 @@
1
+ import * as utilImport from "./utils.mjs";
2
+ export { RealtimeAgent } from "./realtimeAgent.mjs";
3
+ export { RealtimeSession, } from "./realtimeSession.mjs";
4
+ export { OpenAIRealtimeWebRTC, } from "./openaiRealtimeWebRtc.mjs";
5
+ export { OpenAIRealtimeWebSocket, } from "./openaiRealtimeWebsocket.mjs";
6
+ export { OpenAIRealtimeBase, DEFAULT_OPENAI_REALTIME_MODEL, DEFAULT_OPENAI_REALTIME_SESSION_CONFIG, } from "./openaiRealtimeBase.mjs";
7
+ export const utils = {
8
+ base64ToArrayBuffer: utilImport.base64ToArrayBuffer,
9
+ arrayBufferToBase64: utilImport.arrayBufferToBase64,
10
+ getLastTextFromAudioOutputMessage: utilImport.getLastTextFromAudioOutputMessage,
11
+ };
12
+ export { ModelBehaviorError, OutputGuardrailTripwireTriggered, tool, UserError, } from '@openai/agents-core';
13
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"OAAO,KAAK,UAAU;OAEf,EAAE,aAAa,EAA8B;OAE7C,EACL,eAAe,GAIhB;OAqBM,EACL,oBAAoB,GAGrB;OAEM,EACL,uBAAuB,GAGxB;OAEM,EAEL,kBAAkB,EAGlB,6BAA6B,EAC7B,sCAAsC,GACvC;AAiBD,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;IACnD,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;IACnD,iCAAiC,EAC/B,UAAU,CAAC,iCAAiC;CAC/C,CAAC;OAIK,EAEL,kBAAkB,EAClB,gCAAgC,EAChC,IAAI,EACJ,SAAS,GACV,MAAM,qBAAqB"}
@@ -0,0 +1,183 @@
1
+ import { z } from '@openai/zod/v3';
2
+ export declare const baseItemSchema: z.ZodObject<{
3
+ itemId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ itemId: string;
6
+ }, {
7
+ itemId: string;
8
+ }>;
9
+ export declare const realtimeMessageItemSchema: z.ZodDiscriminatedUnion<"role", [z.ZodObject<{
10
+ itemId: z.ZodString;
11
+ previousItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ type: z.ZodLiteral<"message">;
13
+ role: z.ZodLiteral<"system">;
14
+ content: z.ZodArray<z.ZodObject<{
15
+ type: z.ZodLiteral<"input_text">;
16
+ text: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ type: "input_text";
19
+ text: string;
20
+ }, {
21
+ type: "input_text";
22
+ text: string;
23
+ }>, "many">;
24
+ }, "strip", z.ZodTypeAny, {
25
+ type: "message";
26
+ itemId: string;
27
+ role: "system";
28
+ content: {
29
+ type: "input_text";
30
+ text: string;
31
+ }[];
32
+ previousItemId?: string | null | undefined;
33
+ }, {
34
+ type: "message";
35
+ itemId: string;
36
+ role: "system";
37
+ content: {
38
+ type: "input_text";
39
+ text: string;
40
+ }[];
41
+ previousItemId?: string | null | undefined;
42
+ }>, z.ZodObject<{
43
+ itemId: z.ZodString;
44
+ previousItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ type: z.ZodLiteral<"message">;
46
+ role: z.ZodLiteral<"user">;
47
+ status: z.ZodEnum<["in_progress", "completed"]>;
48
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
49
+ type: z.ZodLiteral<"input_text">;
50
+ text: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ type: "input_text";
53
+ text: string;
54
+ }, {
55
+ type: "input_text";
56
+ text: string;
57
+ }>, z.ZodObject<{
58
+ type: z.ZodLiteral<"input_audio">;
59
+ audio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ transcript: z.ZodNullable<z.ZodString>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ type: "input_audio";
63
+ transcript: string | null;
64
+ audio?: string | null | undefined;
65
+ }, {
66
+ type: "input_audio";
67
+ transcript: string | null;
68
+ audio?: string | null | undefined;
69
+ }>]>, "many">;
70
+ }, "strip", z.ZodTypeAny, {
71
+ type: "message";
72
+ itemId: string;
73
+ status: "in_progress" | "completed";
74
+ role: "user";
75
+ content: ({
76
+ type: "input_text";
77
+ text: string;
78
+ } | {
79
+ type: "input_audio";
80
+ transcript: string | null;
81
+ audio?: string | null | undefined;
82
+ })[];
83
+ previousItemId?: string | null | undefined;
84
+ }, {
85
+ type: "message";
86
+ itemId: string;
87
+ status: "in_progress" | "completed";
88
+ role: "user";
89
+ content: ({
90
+ type: "input_text";
91
+ text: string;
92
+ } | {
93
+ type: "input_audio";
94
+ transcript: string | null;
95
+ audio?: string | null | undefined;
96
+ })[];
97
+ previousItemId?: string | null | undefined;
98
+ }>, z.ZodObject<{
99
+ itemId: z.ZodString;
100
+ previousItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
101
+ type: z.ZodLiteral<"message">;
102
+ role: z.ZodLiteral<"assistant">;
103
+ status: z.ZodEnum<["in_progress", "completed", "incomplete"]>;
104
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
105
+ type: z.ZodLiteral<"text">;
106
+ text: z.ZodString;
107
+ }, "strip", z.ZodTypeAny, {
108
+ type: "text";
109
+ text: string;
110
+ }, {
111
+ type: "text";
112
+ text: string;
113
+ }>, z.ZodObject<{
114
+ type: z.ZodLiteral<"audio">;
115
+ audio: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
+ transcript: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: "audio";
119
+ audio?: string | null | undefined;
120
+ transcript?: string | null | undefined;
121
+ }, {
122
+ type: "audio";
123
+ audio?: string | null | undefined;
124
+ transcript?: string | null | undefined;
125
+ }>]>, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ type: "message";
128
+ itemId: string;
129
+ status: "in_progress" | "completed" | "incomplete";
130
+ role: "assistant";
131
+ content: ({
132
+ type: "text";
133
+ text: string;
134
+ } | {
135
+ type: "audio";
136
+ audio?: string | null | undefined;
137
+ transcript?: string | null | undefined;
138
+ })[];
139
+ previousItemId?: string | null | undefined;
140
+ }, {
141
+ type: "message";
142
+ itemId: string;
143
+ status: "in_progress" | "completed" | "incomplete";
144
+ role: "assistant";
145
+ content: ({
146
+ type: "text";
147
+ text: string;
148
+ } | {
149
+ type: "audio";
150
+ audio?: string | null | undefined;
151
+ transcript?: string | null | undefined;
152
+ })[];
153
+ previousItemId?: string | null | undefined;
154
+ }>]>;
155
+ export declare const realtimeToolCallItem: z.ZodObject<{
156
+ itemId: z.ZodString;
157
+ previousItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ type: z.ZodLiteral<"function_call">;
159
+ status: z.ZodEnum<["in_progress", "completed"]>;
160
+ arguments: z.ZodString;
161
+ name: z.ZodString;
162
+ output: z.ZodNullable<z.ZodString>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ type: "function_call";
165
+ name: string;
166
+ output: string | null;
167
+ itemId: string;
168
+ status: "in_progress" | "completed";
169
+ arguments: string;
170
+ previousItemId?: string | null | undefined;
171
+ }, {
172
+ type: "function_call";
173
+ name: string;
174
+ output: string | null;
175
+ itemId: string;
176
+ status: "in_progress" | "completed";
177
+ arguments: string;
178
+ previousItemId?: string | null | undefined;
179
+ }>;
180
+ export type RealtimeBaseItem = z.infer<typeof baseItemSchema>;
181
+ export type RealtimeMessageItem = z.infer<typeof realtimeMessageItemSchema>;
182
+ export type RealtimeToolCallItem = z.infer<typeof realtimeToolCallItem>;
183
+ export type RealtimeItem = RealtimeMessageItem | RealtimeToolCallItem;
package/dist/items.js ADDED
@@ -0,0 +1,47 @@
1
+ import { z } from '@openai/zod/v3';
2
+ export const baseItemSchema = z.object({
3
+ itemId: z.string(),
4
+ });
5
+ export const realtimeMessageItemSchema = z.discriminatedUnion('role', [
6
+ z.object({
7
+ itemId: z.string(),
8
+ previousItemId: z.string().nullable().optional(),
9
+ type: z.literal('message'),
10
+ role: z.literal('system'),
11
+ content: z.array(z.object({ type: z.literal('input_text'), text: z.string() })),
12
+ }),
13
+ z.object({
14
+ itemId: z.string(),
15
+ previousItemId: z.string().nullable().optional(),
16
+ type: z.literal('message'),
17
+ role: z.literal('user'),
18
+ status: z.enum(['in_progress', 'completed']),
19
+ content: z.array(z.object({ type: z.literal('input_text'), text: z.string() }).or(z.object({
20
+ type: z.literal('input_audio'),
21
+ audio: z.string().nullable().optional(),
22
+ transcript: z.string().nullable(),
23
+ }))),
24
+ }),
25
+ z.object({
26
+ itemId: z.string(),
27
+ previousItemId: z.string().nullable().optional(),
28
+ type: z.literal('message'),
29
+ role: z.literal('assistant'),
30
+ status: z.enum(['in_progress', 'completed', 'incomplete']),
31
+ content: z.array(z.object({ type: z.literal('text'), text: z.string() }).or(z.object({
32
+ type: z.literal('audio'),
33
+ audio: z.string().nullable().optional(),
34
+ transcript: z.string().nullable().optional(),
35
+ }))),
36
+ }),
37
+ ]);
38
+ export const realtimeToolCallItem = z.object({
39
+ itemId: z.string(),
40
+ previousItemId: z.string().nullable().optional(),
41
+ type: z.literal('function_call'),
42
+ status: z.enum(['in_progress', 'completed']),
43
+ arguments: z.string(),
44
+ name: z.string(),
45
+ output: z.string().nullable(),
46
+ });
47
+ //# sourceMappingURL=items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.js","sourceRoot":"","sources":["../src/items.ts"],"names":[],"mappings":"OAAO,EAAE,CAAC,EAAE,MAAM,gBAAgB;AAElC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACpE,CAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QAChD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAC1B,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;QACzB,OAAO,EAAE,CAAC,CAA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,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,WAAW,EAAE,YAAY,CAAC,CAAC;QAC1D,OAAO,EAAE,CAAC,CAAC,KAAK,CACd,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,EAAE,CACxD,CAAC,CAAC,MAAM,CAAC;YACP,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;YACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;YACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;SAC7C,CAAC,CACH,CACF;KACF,CAAC;CACH,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IAChC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;IAC5C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC"}
package/dist/items.mjs ADDED
@@ -0,0 +1,47 @@
1
+ import { z } from '@openai/zod/v3';
2
+ export const baseItemSchema = z.object({
3
+ itemId: z.string(),
4
+ });
5
+ export const realtimeMessageItemSchema = z.discriminatedUnion('role', [
6
+ z.object({
7
+ itemId: z.string(),
8
+ previousItemId: z.string().nullable().optional(),
9
+ type: z.literal('message'),
10
+ role: z.literal('system'),
11
+ content: z.array(z.object({ type: z.literal('input_text'), text: z.string() })),
12
+ }),
13
+ z.object({
14
+ itemId: z.string(),
15
+ previousItemId: z.string().nullable().optional(),
16
+ type: z.literal('message'),
17
+ role: z.literal('user'),
18
+ status: z.enum(['in_progress', 'completed']),
19
+ content: z.array(z.object({ type: z.literal('input_text'), text: z.string() }).or(z.object({
20
+ type: z.literal('input_audio'),
21
+ audio: z.string().nullable().optional(),
22
+ transcript: z.string().nullable(),
23
+ }))),
24
+ }),
25
+ z.object({
26
+ itemId: z.string(),
27
+ previousItemId: z.string().nullable().optional(),
28
+ type: z.literal('message'),
29
+ role: z.literal('assistant'),
30
+ status: z.enum(['in_progress', 'completed', 'incomplete']),
31
+ content: z.array(z.object({ type: z.literal('text'), text: z.string() }).or(z.object({
32
+ type: z.literal('audio'),
33
+ audio: z.string().nullable().optional(),
34
+ transcript: z.string().nullable().optional(),
35
+ }))),
36
+ }),
37
+ ]);
38
+ export const realtimeToolCallItem = z.object({
39
+ itemId: z.string(),
40
+ previousItemId: z.string().nullable().optional(),
41
+ type: z.literal('function_call'),
42
+ status: z.enum(['in_progress', 'completed']),
43
+ arguments: z.string(),
44
+ name: z.string(),
45
+ output: z.string().nullable(),
46
+ });
47
+ //# sourceMappingURL=items.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.mjs","sourceRoot":"","sources":["../src/items.ts"],"names":[],"mappings":"OAAO,EAAE,CAAC,EAAE,MAAM,gBAAgB;AAElC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACpE,CAAC,CAAC,MAAM,CAAC;QACP,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;QAClB,cAA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AAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare const logger: import("@openai/agents-core/dist/logger").Logger;
2
+ export default logger;
package/dist/logger.js ADDED
@@ -0,0 +1,4 @@
1
+ import { getLogger } from '@openai/agents-core';
2
+ const logger = getLogger('openai-agents:realtime');
3
+ export default logger;
4
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB;AAE/C,MAAM,MAAM,GAAG,SAAS,CAAC,wBAAwB,CAAC,CAAC;AAEnD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { getLogger } from '@openai/agents-core';
2
+ const logger = getLogger('openai-agents:realtime');
3
+ export default logger;
4
+ //# sourceMappingURL=logger.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.mjs","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB;AAE/C,MAAM,MAAM,GAAG,SAAS,CAAC,wBAAwB,CAAC,CAAC;AAEnD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare const METADATA: {
2
+ name: string;
3
+ version: string;
4
+ versions: {
5
+ "@openai/agents-realtime": string;
6
+ "@openai/agents-core": string;
7
+ };
8
+ };
9
+ export default METADATA;
@@ -0,0 +1,11 @@
1
+ // This file is automatically generated
2
+ export const METADATA = {
3
+ "name": "@openai/agents-realtime",
4
+ "version": "0.0.1",
5
+ "versions": {
6
+ "@openai/agents-realtime": "0.0.1",
7
+ "@openai/agents-core": "workspace:*"
8
+ }
9
+ };
10
+ export default METADATA;
11
+ //# sourceMappingURL=metadata.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.js","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AACA,uCAAuC;AAEvC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,yBAAyB;IACjC,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,yBAAyB,EAAE,OAAO;QAClC,qBAAqB,EAAE,aAAa;KACrC;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,11 @@
1
+ // This file is automatically generated
2
+ export const METADATA = {
3
+ "name": "@openai/agents-realtime",
4
+ "version": "0.0.1",
5
+ "versions": {
6
+ "@openai/agents-realtime": "0.0.1",
7
+ "@openai/agents-core": "workspace:*"
8
+ }
9
+ };
10
+ export default METADATA;
11
+ //# sourceMappingURL=metadata.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata.mjs","sourceRoot":"","sources":["../src/metadata.ts"],"names":[],"mappings":"AACA,uCAAuC;AAEvC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM,EAAE,yBAAyB;IACjC,SAAS,EAAE,OAAO;IAClB,UAAU,EAAE;QACV,yBAAyB,EAAE,OAAO;QAClC,qBAAqB,EAAE,aAAa;KACrC;CACF,CAAC;AAEF,eAAe,QAAQ,CAAC"}