Add appends a message to the conversation.
(role, content string)
| 18 | type Memory interface { |
| 19 | // Add appends a message to the conversation. |
| 20 | Add(role, content string) |
| 21 | // Messages returns the retained conversation, oldest first. |
| 22 | Messages() []ai.Message |
| 23 | // Clear resets the conversation. |
no outgoing calls