Skip to content

Commit c93db51

Browse files
Merge branch 'main' into codex/fix-broken-audio-after-agent-handoff-in-twilio
2 parents 702cb94 + 07939c0 commit c93db51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+567
-203
lines changed

.changeset/dull-beans-arrive.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/funny-memes-cover.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openai/agents-realtime': patch
3+
---
4+
5+
Correct typo in RealtimeTransportEventTypes in code and docs

.changeset/salty-actors-grin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@openai/agents-realtime': patch
3+
---
4+
5+
Fixes issue #106 where overlapping user inputs caused null transcripts in history

.changeset/smart-mirrors-join.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/swift-eyes-heal.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/src/content/docs/guides/voice-agents/transport.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Use any recording/playback library to handle the raw PCM16 audio bytes.
4949
### Building your own transport mechanism
5050

5151
If you want to use a different speech-to-speech API or have your own custom transport mechanism, you
52-
can create your own by implementing the `RealtimeTransportLayer` interface and emit the `RealtimeTranportEventTypes` events.
52+
can create your own by implementing the `RealtimeTransportLayer` interface and emit the `RealtimeTransportEventTypes` events.
5353

5454
## Interacting with the Realtime API more directly
5555

docs/src/content/docs/ja/guides/voice-agents/transport.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ WebRTC の代わりに WebSocket 接続を使用する場合は、セッショ
4545

4646
### 独自のトランスポートメカニズムの構築
4747

48-
別の speech-to-speech API を使用したい場合や独自のトランスポートメカニズムを持っている場合は、`RealtimeTransportLayer` インターフェースを実装し、`RealtimeTranportEventTypes` イベントを発火することで独自実装が可能です。
48+
別の speech-to-speech API を使用したい場合や独自のトランスポートメカニズムを持っている場合は、`RealtimeTransportLayer` インターフェースを実装し、`RealtimeTransportEventTypes` イベントを発火することで独自実装が可能です。
4949

5050
## Realtime API との直接的なインタラクション
5151

examples/customer-service/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ async function main() {
169169
console.log(`${agentName}: Skipping item: ${newItem.type}`);
170170
}
171171
}
172-
// Defensive: check if toInputList and lastAgent exist
173-
if (typeof (result as any).toInputList === 'function') {
174-
inputItems = (result as any).toInputList();
172+
// Defensive: check if history and lastAgent exist
173+
if ((result as any).history) {
174+
inputItems = (result as any).history;
175175
}
176176
if ((result as any).lastAgent) {
177177
currentAgent = (result as any).lastAgent;

examples/docs/extensions/twilio-basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const agent = new RealtimeAgent({
99
// the OpenAI Realtime API.
1010
const twilioTransport = new TwilioRealtimeTransportLayer({
1111
// @ts-expect-error - this is not defined
12-
twilioWebSocket: websoketConnection,
12+
twilioWebSocket: websocketConnection,
1313
});
1414

1515
const session = new RealtimeSession(agent, {

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"class-variance-authority": "^0.7.1",
1717
"clsx": "^2.1.1",
1818
"lucide-react": "^0.515.0",
19-
"next": "15.3.2",
19+
"next": "15.3.3",
2020
"react": "^19.0.0",
2121
"react-dom": "^19.0.0",
2222
"tailwind-merge": "^3.3.1",

0 commit comments

Comments
 (0)