-
Notifications
You must be signed in to change notification settings - Fork 373
fix the A2A types, cleanup bunch of stuff #679
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
Conversation
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.
Pull Request Overview
This PR fixes the A2A (Agent-to-Agent) types by consolidating type definitions from multiple files into a centralized location and updating the message handling system to work with the A2A SDK.
- Consolidates all type definitions from
datamodel.tsandlib/types.tsinto a singletypes/index.tsfile - Updates all imports across the codebase to use the centralized types
- Removes legacy message handling utilities and replaces them with A2A SDK compatible implementations
- Updates session handling to work with Task objects instead of legacy message structures
Reviewed Changes
Copilot reviewed 55 out of 55 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| ui/src/types/index.ts | New centralized type definitions file consolidating all types |
| ui/src/types/datamodel.ts | Deleted - types moved to central location |
| ui/src/lib/types.ts | Deleted - types moved to central location |
| ui/src/lib/utils.ts | Removed legacy message utilities, kept A2A utilities |
| ui/src/lib/messageHandlers.ts | Major refactor to work with A2A SDK Message objects |
| ui/src/components/chat/*.tsx | Updated to work with A2A Message objects instead of legacy types |
| ui/src/app/actions/sessions.ts | Updated to handle Task objects instead of messages |
| Various other files | Updated imports to use centralized types |
Comments suppressed due to low confidence (3)
ui/src/types/index.ts:69
- Missing semicolon after
azureEndpoint: stringon line 71. The line should end with a semicolon for consistency with other properties.
export interface AzureOpenAIConfigPayload {
ui/src/lib/messageHandlers.ts:132
- Using
(part as any).texton line 133 bypasses TypeScript's type safety. Consider properly typing the part or using a type guard to check if it's a TextPart before accessing the text property.
content: string,
ui/src/components/chat/StatusDisplay.tsx:19
- Missing semicolon after the closing parenthesis. The line should end with a semicolon for consistency.
)
* Update README.md Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> --------- Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
Signed-off-by: Peter Jausovec <peter.jausovec@solo.io>
bef183c to
96fd6eb
Compare
* Update README.md (kagent-dev#661) * Update README.md Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> --------- Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> * fix the A2A types, cleanup bunch of stuff Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> --------- Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: urizaf <urizaf@gmail.com>
* Update README.md (kagent-dev#661) * Update README.md Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> * Update README.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> --------- Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> * fix the A2A types, cleanup bunch of stuff Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> --------- Signed-off-by: Peter Jausovec <peter.jausovec@solo.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: urizaf <urizaf@gmail.com>
fixes up the A2A sessions, removing unused types and the datamodel.ts file (remaining types moved to /types).