Skip to main content

Module tools

Module tools 

Source
Expand description

The two tool definitions an A2UI agent exposes.

They sit at different levels and are easy to confuse:

  • generate_a2ui_tool is planner-facing. The orchestrating model calls it to say “render this, as a new surface or as an edit to that one”. Its arguments are intent and description, not components.
  • render_a2ui_tool is the inner structured-output tool. The generating model calls it to emit the actual surface: a flat component list and a data model.

Keeping them apart is what lets the planner stay out of the component catalog: it describes what it wants, and the inner call produces it.

Structs§

ToolDefinition
A provider-neutral tool definition.

Functions§

generate_a2ui_tool
The planner-facing tool: ask for a surface.
render_a2ui_tool
The inner structured-output tool: emit the surface.
tool_definitions
Both tool definitions, planner-facing first.