SpecRenderer
Agent Runtimes / examples/hooks/useSpecRenderToolResult / SpecRenderer
Type Alias: SpecRenderer
SpecRenderer = (
context,binding) =>ReactNode
Defined in: src/examples/hooks/useSpecRenderToolResult.ts:19
Renderer function keyed by a spec's renderer id.
Receives the tool call context plus the matching spec binding so the example can build presentation details (such as a CSS class) from the spec instead of hardcoding them.
Parameters
context
binding
Returns
ReactNode