WithTitleGenerator sets the title generator for local title generation. If not set, title generation will be handled by the runtime (for remote) or skipped.
(gen *sessiontitle.Generator)
| 94 | // WithTitleGenerator sets the title generator for local title generation. |
| 95 | // If not set, title generation will be handled by the runtime (for remote) or skipped. |
| 96 | func WithTitleGenerator(gen *sessiontitle.Generator) Opt { |
| 97 | return func(a *App) { |
| 98 | a.titleGen = gen |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | // WithReadOnly marks the session as read-only: the conversation history |
| 103 | // is displayed but no new messages can be sent to the LLM. |
no outgoing calls