Transcript is the chat history. The zero value is not usable; create one with New. It is not safe for concurrent use: like every Bubble Tea model, it must only be touched from the program's update loop.
| 32 | // with New. It is not safe for concurrent use: like every Bubble Tea model, |
| 33 | // it must only be touched from the program's update loop. |
| 34 | type Transcript struct { |
| 35 | state service.SessionStateReader |
| 36 | msgs []*types.Message |
| 37 | views []layout.Model |
| 38 | width int |
| 39 | } |
| 40 | |
| 41 | // New creates an empty transcript. The session state is consulted by the |
| 42 | // tool views for rendering preferences; embedders without one should pass |
nothing calls this directly
no outgoing calls
no test coverage detected