Skip to content

feat: support to reflection v2 api#124

Merged
xavidop merged 5 commits intomainfrom
xavier/reflection-v2-api
Apr 13, 2026
Merged

feat: support to reflection v2 api#124
xavidop merged 5 commits intomainfrom
xavier/reflection-v2-api

Conversation

@xavidop
Copy link
Copy Markdown
Collaborator

@xavidop xavidop commented Mar 27, 2026

Description

Support for Reflection V2 in Genkit Java

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement
  • Test improvements
  • CI/CD improvements

Documentation

  • README updated
  • Plugin documentation updated
  • API documentation updated
  • Sample code updated

Reviewer Notes

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces ReflectionServerV2, which enables the Genkit runtime to act as a WebSocket client for dev tools integration using JSON-RPC 2.0. The Genkit class is updated to conditionally start this server based on the GENKIT_REFLECTION_V2_SERVER environment variable. Feedback identifies a critical bug in handleCancelAction where all active actions are interrupted instead of the specific one requested, and points out an unused stream variable in handleRunAction.

@xavidop xavidop changed the title feat: support to refleciton v2 API feat: support to reflection v2 api Mar 27, 2026
@xavidop
Copy link
Copy Markdown
Collaborator Author

xavidop commented Apr 13, 2026

@pavelgj can you re-review?


private static final Logger logger = LoggerFactory.getLogger(ReflectionServerV2.class);
private static final ObjectMapper objectMapper = new ObjectMapper();
private static final String GENKIT_VERSION = "java/1.0.0";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be a good idea to centralize this one, this version should be up to date

@xavidop xavidop merged commit 3656c38 into main Apr 13, 2026
7 of 8 checks passed
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.

2 participants