Skip to content

Commit

Permalink
docs: use canonical loop in streaming concepts (#7131)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbarda authored Oct 31, 2024
2 parents 73c538a + b7e61fb commit cef9b9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/core_docs/docs/concepts/streaming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The type of chunk yielded by the `stream()` methods depends on the component bei
The `stream()` method returns an iterator that yields these chunks as they are produced. For example,

```typescript
for await (const chunk in await component.stream(someInput)) {
for await (const chunk of await component.stream(someInput)) {
// IMPORTANT: Keep the processing of each chunk as efficient as possible.
// While you're processing the current chunk, the upstream component is
// waiting to produce the next one. For example, if working with LangGraph,
Expand Down

0 comments on commit cef9b9e

Please sign in to comment.