-
Notifications
You must be signed in to change notification settings - Fork 763
Open
Labels
triage backlogThe backlog of issues and PRs which need to be triaged in bulk.The backlog of issues and PRs which need to be triaged in bulk.
Description
Currently, the args of FunctionCall is expected to be an object, and the catalog function definition also expects its parameters to be an object, while the string interpolation needs positional arguments sometimes, so how should we define and call a catalog function with positional arguments?
"${formatDate(${/currentDate}, 'yyyy-MM-dd')}"A2UI/specification/v0_9/json/common_types.json
Lines 200 to 214 in 46a1324
| "FunctionCall": { | |
| "type": "object", | |
| "description": "Invokes a named function on the client.", | |
| "properties": { | |
| "call": { | |
| "type": "string", | |
| "description": "The name of the function to call." | |
| }, | |
| "args": { | |
| "type": "object", | |
| "description": "Arguments passed to the function.", | |
| "additionalProperties": { | |
| "$ref": "#/$defs/DynamicValue" | |
| } | |
| }, |
A2UI/specification/v0_9/json/standard_catalog.json
Lines 597 to 605 in 46a1324
| "functions": [ | |
| { | |
| "name": "required", | |
| "description": "Checks that the value is not null, undefined, or empty.", | |
| "returnType": "boolean", | |
| "parameters": { | |
| "allOf": [{ "$ref": "#/$defs/valueParam" }], | |
| "unevaluatedProperties": false | |
| } |
Metadata
Metadata
Assignees
Labels
triage backlogThe backlog of issues and PRs which need to be triaged in bulk.The backlog of issues and PRs which need to be triaged in bulk.
Type
Projects
Status
Todo