Memory
Session-scoped key-value storage. Keys are automatically namespaced by agentId and sessionId.
Set value
async set(key: string, value: string): Promise<MemorySetResponse>def set(key: str, value: str) -> MemorySetResponseconst result = await agent.memory.set("lastSwapNetwork", "ethereum:42161");
if (result.success && result.data) {
await agent.log(`Stored: ${result.data.key}`);
}result = agent.memory.set("lastSwapNetwork", "ethereum:42161")
if result.success and result.data:
agent.log(f"Stored: {result.data.key}")Get value
Delete value
List session memory keys
Notes
Last updated