-
-
Notifications
You must be signed in to change notification settings - Fork 112
Fix sources metadata unavailable during streaming #838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
|
@copilot fix the CI |
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Fixed in 2bb7b3a - removed trailing whitespace from test file Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
I checked and this indeed fixed it! @OskarStark |
|
@copilot looks like the tests are failing: There was 1 error:
/home/runner/work/ai/ai/src/agent/src/Toolbox/StreamResult.php:41 ERRORS! |
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Fixed in 74f8a8a - added check for iterable content before using |
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
Co-authored-by: OskarStark <995707+OskarStark@users.noreply.github.com>
|
|
||
| composer.lock | ||
| vendor | ||
| .phpunit.result.cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
strange that we need that just now, isn't it 🤔
Summary
Fixed issue where sources metadata was inaccessible when using streaming with the Agent. The problem was that metadata was set on the inner result but never propagated to the outer StreamResult object.
Changes:
StreamResult::getContent()to capture and propagate metadata from inner resulttestSourcesEndUpInResultMetadataWithStreaming()to verify the fix works correctlyOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.