rememberChat

A ChatController kept for as long as this composition: for prototypes and previews. In an app, create the controller in a ViewModel (with viewModelScope) so the conversation survives configuration changes, and pass it to Chat.

Chat(rememberChat { approver -> AgUiBackend("https://agents.example.com/api/agui", approver = approver) })