Show agent turn errors - #3
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request enhances error handling and display for failed "turns" in the application. It introduces a
TraceErrortype, updates the event and state models to capture error details, and adds a UI component to surface error messages to users. The most important changes are grouped below:Error Handling and Data Model Updates:
TraceErrortype tosrc/trace/types.tsand included it as an optionalerrorfield on theTurntype to standardize error information for failed turns. [1] [2]turn.failedevent insrc/trace/events.tsto include error details (code,message, and optionaldetails) by extending the event data withTraceError.src/trace/projector.tsto record error details on theTurnobject when a turn fails.UI Improvements:
TurnErrorcomponent tosrc/components/turn.tsxto display error messages and codes for failed turns, and updated theTurncomponent to render this error information when present. [1] [2]CircleAlerticon insrc/components/turn.tsxfor visual indication of errors in the UI.