Append a user message to the session.
(content: string | ContentBlock[], provider: SessionEntry['provider'] = 'human')
| 102 | |
| 103 | /** Append a user message to the session. */ |
| 104 | async appendUser(content: string | ContentBlock[], provider: SessionEntry['provider'] = 'human'): Promise<SessionEntry> { |
| 105 | return this.append({ |
| 106 | type: 'user', |
| 107 | message: { role: 'user', content }, |
| 108 | provider, |
| 109 | }) |
| 110 | } |
| 111 | |
| 112 | /** Append an assistant message to the session. */ |
| 113 | async appendAssistant( |