As the main player interacts with characters, I would like for elements of the conversation to be stored for future interactions.
Hey Sendejo,
You can use the Knowledge node to inject context dynamically:
const knowledgeNode = runtime.nodes.knowledge({
documents: [
{ content: “User’s name is Alex” },
{ content: “Conversation started at 2pm” }
]
});
This gets embedded and retrieved based on relevance to the current conversation. Think RAG (Retrieval-Augmented Generation) but built into the pipeline.