Skip to content

Conversation

@peterj
Copy link
Collaborator

@peterj peterj commented Aug 1, 2025

fixes up the A2A sessions, removing unused types and the datamodel.ts file (remaining types moved to /types).

@peterj peterj requested review from EItanya and Copilot and removed request for Copilot August 1, 2025 12:29
Copy link
Contributor

Copilot AI left a 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.ts and lib/types.ts into a single types/index.ts file
  • 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: string on 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).text on 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.
    )

peterj and others added 2 commits August 1, 2025 14:40
* 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>
@peterj peterj force-pushed the peterj/fixsessions branch from bef183c to 96fd6eb Compare August 1, 2025 12:40
@peterj peterj requested a review from ilackarms as a code owner August 1, 2025 12:40
@peterj peterj merged commit 61faa52 into main Aug 4, 2025
10 of 11 checks passed
@peterj peterj deleted the peterj/fixsessions branch August 4, 2025 07:26
UriZafrir pushed a commit to UriZafrir/kagent that referenced this pull request Aug 7, 2025
* 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>
UriZafrir pushed a commit to UriZafrir/kagent that referenced this pull request Aug 7, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants