WithID sets the session ID. If not set, a UUID will be generated.
(id string)
| 876 | |
| 877 | // WithID sets the session ID. If not set, a UUID will be generated. |
| 878 | func WithID(id string) Opt { |
| 879 | return func(s *Session) { |
| 880 | s.ID = id |
| 881 | } |
| 882 | } |
| 883 | |
| 884 | // WithClock injects the time source used for the session's CreatedAt, for |
| 885 | // timestamping messages it generates (summaries, compaction input), and for |
no outgoing calls