feat: implement schema packaging and runtime loading#555
feat: implement schema packaging and runtime loading#555gspencergoog merged 1 commit intogoogle:mainfrom
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces schema packaging and runtime loading capabilities, along with a base InferenceStrategy class and an A2uiSchemaManager. The changes include adding a build hook to copy JSON schemas into the package, updating pyproject.toml to include these assets, and implementing robust schema loading and prompt generation logic. New test files have also been added to cover the new functionality. Dependency updates in uv.lock are also included, which appear to be routine updates.
a2a_agents/python/a2ui_agent/src/a2ui/inference/schema/manager.py
Outdated
Show resolved
Hide resolved
a2a_agents/python/a2ui_agent/src/a2ui/inference/schema/manager.py
Outdated
Show resolved
Hide resolved
c6f12bb to
c290c91
Compare
1f7fd48 to
957e27d
Compare
9939eff to
8c55d42
Compare
|
/gemini summary |
Summary of ChangesThis pull request significantly enhances the A2UI agent's capability to manage and utilize JSON schemas for LLM interactions. It establishes a streamlined process for packaging schemas with the Python distribution, ensures flexible runtime loading and resolution of these schemas, and provides tools for dynamically adapting the schema content based on client needs. This foundational work improves the agent's ability to generate accurate and context-aware system prompts for various UI configurations and custom components. Highlights
Changelog
Ignored Files
Activity
|
- Add a base InferenceStrategy class - Add PackSpecsBuildHook to copy JSON schemas into the package during build time. - Update pyproject.toml to include assets and configure the build hook. - Implement A2uiSchemaManager for robust schema loading, pruning, and prompt generation.
8c55d42 to
2f65262
Compare
Description
Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.
List which issues are fixed by this PR. For larger changes, raising an issue first helps reduce redundant work.
Pre-launch Checklist
If you need help, consider asking for advice on the discussion board.