You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 25, 2026. It is now read-only.
Repository navigation
Commit 3f87389
Browse filesBrowse the repository at this point in the historyBrowse files
3.**Inbound:**`await request.data.stream()` – consume the client's incoming stream.
46
+
47
+
Under the hood Agentuity handles the details of the streaming input and output for you.
44
48
45
49
### OpenAI Streaming Example
46
50
@@ -182,6 +186,139 @@ export default async function Agent(
182
186
183
187
Chain as many agents as you like; each one can inspect, transform, or just relay the chunks.
184
188
189
+
## Low-Level Stream Control
190
+
191
+
For advanced use cases, you can use `context.stream.create()` to create and manage streams directly. This gives you fine-grained control over stream creation, data flow, and background processing.
192
+
193
+
### Creating Streams with `context.stream.create`
194
+
195
+
The `context.stream.create()` method creates a named, writable stream that returns immediately, allowing for non-blocking operation and background data processing.
0 commit comments