DynamicMessageCallback typedef

DynamicMessageCallback = Future<String?> Function(DynamicMessageRequest request)

Presents request inline in the chat — the host UI surface (Flutter session view). Returns the host-assigned widget id once presented, or null when declined (per-run presentation cap reached / no chat session): the tool then resolves with a plain decline result so the model continues gracefully.

Implementation

typedef DynamicMessageCallback =
    Future<String?> Function(DynamicMessageRequest request);