fix: add missing json schema fields; export

This commit is contained in:
Greyson Lalonde
2026-03-26 16:33:20 +08:00
parent 65a6d91204
commit 225b51cbf1
2 changed files with 14 additions and 1 deletions

View File

@@ -32,7 +32,10 @@ from crewai.a2a.extensions.a2ui.models import (
UserAction,
)
from crewai.a2a.extensions.a2ui.server_extension import A2UIServerExtension
from crewai.a2a.extensions.a2ui.validator import validate_a2ui_message
from crewai.a2a.extensions.a2ui.validator import (
validate_a2ui_event,
validate_a2ui_message,
)
__all__ = [
@@ -64,5 +67,6 @@ __all__ = [
"TextField",
"UserAction",
"Video",
"validate_a2ui_event",
"validate_a2ui_message",
]

View File

@@ -701,6 +701,15 @@
"maxAllowedSelections": {
"type": "integer",
"description": "The maximum number of options that the user is allowed to select."
},
"variant": {
"type": "string",
"enum": ["checkbox", "chips"],
"description": "The visual variant for the selection UI."
},
"filterable": {
"type": "boolean",
"description": "Whether options can be filtered by typing."
}
},
"required": ["selections", "options"]