MemoGrafterAgent
ingestGraftedNodes()
Copy supplied topic nodes and their active memories into the current session.
What it does
Copy supplied topic nodes and their active memories into the current session.
The operation is scoped to the agent’s current session, so callers do not pass a session identifier on every call.
Signature
TypeScript
ingestGraftedNodes(nodes: TopicNode[]): Promise<TopicNode[]>Parameters
nodes (TopicNode[]) — Topic nodes, including their active memories, to copy.Result
The topic nodes created, selected, or copied by the operation.
Example
example.ts
const copied = await agent.ingestGraftedNodes(graft.nodes);