Repository navigation
fix(py)!: ActionMetadata has one input-schema and one output-schema field - #6638
Closed
huangjeff5 wants to merge 2 commits into
Closed
huangjeff5 wants to merge 2 commits into
huangjeff5 wants to merge 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors ActionMetadata by removing the redundant input_json_schema and output_json_schema fields, standardizing on input_schema and output_schema typed as dict[str, Any] | None. This change is propagated across the genkit, genkit-google-genai, and genkit-ollama packages, including updates to reflection APIs, schema generation scripts, and corresponding unit tests. No review comments were provided, so there is no additional feedback to address.
Contributor
Author
|
Folded into #6689. |
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.
ActionMetadatahas one input-schema field and one output-schema field,input_schemaandoutput_schema.input_json_schema=andoutput_json_schema=raiseValidationError.Decisions
ActionMetadatahad bothinput_schemaandinput_json_schema(and the same pair for output), and both reflection listings sent one and dropped the other. Now onlyinput_schemaandoutput_schemaexist, and the old keyword raisesValidationError. Plugin code that passedinput_json_schema=/output_json_schema=switches toinput_schema=/output_schema=. We kept those names because they are the keys the Dev UI already receives (inputSchema/outputSchema), and in Python both old fields held a JSON schema dict.input_schemawas untyped, so a Pydantic class could be stored and never become a form. Now a class raisesValidationError. Pass the dict fromto_json_schema(...). We chose a dict over a class because the Dev UI form is a JSON schema.