Commit 4523036
committed
minor #869 Add OpenAI example demonstrating streaming with sources (OskarStark)
This PR was squashed before being merged into the main branch.
Discussion
----------
Add OpenAI example demonstrating streaming with sources
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| Docs? | no
| Issues | Follows #868
| License | MIT
This example shows how to use the Agent with OpenAI platform to stream responses while collecting source metadata from tools like Tavily. This demonstrates the fix for issue #833 where sources metadata was unavailable during streaming.
<img width="2852" height="454" alt="CleanShot 2025-11-14 at 10 11 21@2x" src="https://github.com/user-attachments/assets/474eb2ed-af88-4e97-81a5-42ad4434b8c6" />
Weird that the clock is used as source, isn't? 🤔
Commits
-------
948c504 Add OpenAI example demonstrating streaming with sources1 file changed
+49
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
0 commit comments