WithExitAfterFirstResponse configures the app to exit after the first assistant response.
()
| 77 | |
| 78 | // WithExitAfterFirstResponse configures the app to exit after the first assistant response. |
| 79 | func WithExitAfterFirstResponse() Opt { |
| 80 | return func(a *App) { |
| 81 | a.exitAfterFirstResponse = true |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | // WithQueuedMessages sets messages to be queued after the first message is sent. |
| 86 | // These messages will be delivered to the TUI as SendMsg events, which the |