Skip to content

Commit 4ea8a48

Browse files
committed
fix(docs): correct import paths for RealtimeAgent and RealtimeSession in quickstart guides
1 parent 7ef4c44 commit 4ea8a48

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import thinClientExample from '../../../../../../examples/docs/voice-agents/thin
6666
Creating a new [`RealtimeAgent`](/openai-agents-js/openai/agents-realtime/classes/realtimeagent/) is very similar to creating a regular [`Agent`](/openai-agents-js/guides/agents).
6767

6868
```typescript
69-
import { RealtimeAgent } from '@openai/agents-realtime';
69+
import { RealtimeAgent } from '@openai/agents/realtime';
7070

7171
const agent = new RealtimeAgent({
7272
name: 'Assistant',
@@ -79,7 +79,7 @@ import thinClientExample from '../../../../../../examples/docs/voice-agents/thin
7979
Unlike a regular agent, a Voice Agent is continuously running and listening inside a `RealtimeSession` that handles the conversation and connection to the model over time. This session will also handle the audio processing, interruptions, and a lot of the other lifecycle functionality we will cover later on.
8080

8181
```typescript
82-
import { RealtimeSession } from '@openai/agents-realtime';
82+
import { RealtimeSession } from '@openai/agents/realtime';
8383

8484
const session = new RealtimeSession(agent, {
8585
model: 'gpt-realtime',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import thinClientExample from '../../../../../../../examples/docs/voice-agents/t
6666
新しい [`RealtimeAgent`](/openai-agents-js/openai/agents-realtime/classes/realtimeagent/) の作成は、通常の [`Agent`](/openai-agents-js/ja/guides/agents) の作成と非常によく似ています。
6767

6868
```typescript
69-
import { RealtimeAgent } from '@openai/agents-realtime';
69+
import { RealtimeAgent } from '@openai/agents/realtime';
7070

7171
const agent = new RealtimeAgent({
7272
name: 'Assistant',
@@ -79,7 +79,7 @@ import thinClientExample from '../../../../../../../examples/docs/voice-agents/t
7979
通常のエージェントと異なり、音声エージェントは会話とモデルへの継続的な接続を扱う `RealtimeSession` 内で常時動作し、リッスンします。このセッションは、音声処理、中断、その他多くのライフサイクル機能も扱います。これらは後ほど説明します。
8080

8181
```typescript
82-
import { RealtimeSession } from '@openai/agents-realtime';
82+
import { RealtimeSession } from '@openai/agents/realtime';
8383

8484
const session = new RealtimeSession(agent, {
8585
model: 'gpt-realtime',

docs/src/content/docs/ko/guides/voice-agents/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import thinClientExample from '../../../../../../../examples/docs/voice-agents/t
6666
새로운 [`RealtimeAgent`](/openai-agents-js/openai/agents-realtime/classes/realtimeagent/)를 생성하는 방법은 일반 [`Agent`](/openai-agents-js/ko/guides/agents)를 만드는 것과 매우 유사합니다.
6767

6868
```typescript
69-
import { RealtimeAgent } from '@openai/agents-realtime';
69+
import { RealtimeAgent } from '@openai/agents/realtime';
7070

7171
const agent = new RealtimeAgent({
7272
name: 'Assistant',
@@ -79,7 +79,7 @@ import thinClientExample from '../../../../../../../examples/docs/voice-agents/t
7979
일반 에이전트와 달리, 음성 에이전트는 대화와 모델 연결을 지속적으로 처리하는 `RealtimeSession` 안에서 계속 실행되며 청취합니다. 이 세션은 오디오 처리, 인터럽션(중단 처리), 그리고 이후 다룰 다양한 라이프사이클 기능도 담당합니다.
8080

8181
```typescript
82-
import { RealtimeSession } from '@openai/agents-realtime';
82+
import { RealtimeSession } from '@openai/agents/realtime';
8383

8484
const session = new RealtimeSession(agent, {
8585
model: 'gpt-realtime',

docs/src/content/docs/zh/guides/voice-agents/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import thinClientExample from '../../../../../../../examples/docs/voice-agents/t
6666
创建一个新的 [`RealtimeAgent`](/openai-agents-js/openai/agents-realtime/classes/realtimeagent/) 与创建常规的 [`Agent`](/openai-agents-js/zh/guides/agents) 非常相似。
6767

6868
```typescript
69-
import { RealtimeAgent } from '@openai/agents-realtime';
69+
import { RealtimeAgent } from '@openai/agents/realtime';
7070

7171
const agent = new RealtimeAgent({
7272
name: 'Assistant',
@@ -79,7 +79,7 @@ import thinClientExample from '../../../../../../../examples/docs/voice-agents/t
7979
与常规智能体不同,语音智能体会在一个持续运行并监听的 `RealtimeSession` 中工作,它负责在一段时间内处理与模型的对话与连接。该会话还将处理音频处理、打断,以及我们稍后会介绍的许多生命周期功能。
8080

8181
```typescript
82-
import { RealtimeSession } from '@openai/agents-realtime';
82+
import { RealtimeSession } from '@openai/agents/realtime';
8383

8484
const session = new RealtimeSession(agent, {
8585
model: 'gpt-realtime',

0 commit comments

Comments
 (0)