MCPcopy
hub / github.com/micro/go-micro / Add

Method Add

agent/memory.go:20–20  ·  view source on GitHub ↗

Add appends a message to the conversation.

(role, content string)

Source from the content-addressed store, hash-verified

18type 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.

Callers 15

TestStoreMemoryPersistsFunction · 0.95
TestMemoryClearPersistsFunction · 0.95
PutMethod · 0.65
GetMethod · 0.65
TestWatchQueryTopicFunction · 0.65
setMethod · 0.65
updateNodeTTLsMethod · 0.65

Implementers 1

storeMemoryagent/memory.go

Calls

no outgoing calls