mirror of
https://github.com/langchain-ai/docs.git
synced 2026-08-28 05:10:00 -04:00
12 lines
252 B
Plaintext
12 lines
252 B
Plaintext
```ts
|
|
const config = {
|
|
configurable: { thread_id: "functional-api-stream-custom-data" },
|
|
};
|
|
|
|
const stream = await main.streamEvents({ x: 5 }, { ...config, version: "v3" });
|
|
for await (const chunk of stream.values) {
|
|
console.log(chunk);
|
|
}
|
|
// 10
|
|
```
|