WithReadOnly marks the session as read-only: the conversation history is displayed but no new messages can be sent to the LLM.
()
| 102 | // WithReadOnly marks the session as read-only: the conversation history |
| 103 | // is displayed but no new messages can be sent to the LLM. |
| 104 | func WithReadOnly() Opt { |
| 105 | return func(a *App) { |
| 106 | a.readOnly = true |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | // WithSnapshotController plumbs in the [builtins.SnapshotController] |
| 111 | // the App uses to drive /undo, /snapshots, /reset. Pass the same |
no outgoing calls