Skip to content

Commit e4ec0ca

Browse files
authored
Update getting-started.mdx
1 parent b1b4390 commit e4ec0ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/content/docs/realtime/agents/getting-started.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,31 +188,31 @@ export default {
188188

189189
The Realtime Agents SDK provides several elements that work together to create an end-to-end pipeline
190190

191-
- `Meeting`: Represents a RealtimeKit meeting that will be joined by the agent
191+
- `RealtimeKitTransport`: Represents a RealtimeKit meeting that will be joined by the agent
192192

193193
- `DeepgramSTT`: Takes in meeting audio and provides transcripts powered by Deepgram
194194

195-
- `TextProcessor`: A concrete implementation for this element needs to be provided by the user as it is responsible for processing the text generated in the meeting and sending back responses. We have implemented it in the `MyTextProcessor` class
195+
- `TextComponent`: A concrete implementation for this element needs to be provided by the user as it is responsible for processing the text generated in the meeting and sending back responses. We have implemented it in the `MyTextProcessor` class
196196

197197
- `ElevenLabsTTS`: Converts the generated responses to audio to be spoken in the meeting
198198

199-
We use all of these elements together to create a simple chatbot-like pipeline. As a pre-requisite, we require the meeting ID to be joined along with an authorization token for joining the meeting, which is passed during the worker invocation. Additionally, our class must extend `ArtificialObject` as it contains certain internal logic to handle interactions with our pipeline backend
199+
We use all of these elements together to create a simple chatbot-like pipeline. As a pre-requisite, we require the meeting ID to be joined along with an authorization token for joining the meeting, which is passed during the worker invocation. Additionally, our class must extend `RealtimeAgent` as it contains certain internal logic to handle interactions with our pipeline backend
200200

201201
In `wrangler.jsonc`, append the following fields to enable the [Node.js Compatibility](https://developers.cloudflare.com/workers/runtime-apis/nodejs/) flag and create our Durable Object:
202202

203203
```json
204204
"compatibility_flags": ["nodejs_compat"],
205205
"migrations": [
206206
{
207-
"new_sqlite_classes": ["RoomObject"],
207+
"new_sqlite_classes": ["MyAgent"],
208208
"tag": "v1",
209209
},
210210
],
211211
"durable_objects": {
212212
"bindings": [
213213
{
214-
"class_name": "RoomObject",
215-
"name": "ROOM_OBJECT",
214+
"class_name": "MyAgent",
215+
"name": "MY_AGENT",
216216
},
217217
],
218218
},

0 commit comments

Comments
 (0)