uiTools function
The two tools, as {"name", "description", "input_schema"} (the shape
most providers take; rename input_schema for one that differs).
compact: the op envelope only (uiApplyCompactInputSchema), for a
system prompt that describes the nodes (runtimeStarter); otherwise
every node type and key of catalog is in the schema.
docs: also ui_docs, the full reference one topic at a time
(docsTopic).
Implementation
List<Json> uiTools(Catalog catalog, {bool compact = false, bool docs = false}) => [
compact
? {'name': 'ui_apply', 'description': uiApplyCompactDescription, 'input_schema': uiApplyCompactInputSchema()}
: {'name': 'ui_apply', 'description': uiApplyDescription, 'input_schema': uiApplyInputSchema(catalog)},
{'name': 'ui_read', 'description': compact ? uiReadCompactDescription : uiReadDescription, 'input_schema': uiReadInputSchema},
if (docs) {'name': 'ui_docs', 'description': uiDocsDescription, 'input_schema': uiDocsInputSchema},
];