The result shape. Defaults to DefaultToolResult
(any) so the ordinary untyped spelling compiles; pass the shape —
useToolResult<Quote>(…) — for real checking.
Fire a callback when a tool call settles, with the tool's JSON result.
For new code prefer explicit events — ctx.send(event, data) in the tool
paired with useEvent here — over listening to tool results.
The result shape. Defaults to DefaultToolResult
(any) so the ordinary untyped spelling compiles; pass the shape —
useToolResult<Quote>(…) — for real checking.
Fire a callback when a tool call settles, with the tool's JSON result.
For new code prefer explicit events —
ctx.send(event, data)in the tool paired with useEvent here — over listening to tool results.