MemoGrafterAgent
setSessionTags()
Replace normalized tags for the current session.
What it does
Replace normalized tags for the current session.
When to use it
Use to replace the authorization or project tags associated with the current session.
Signature
TypeScript
setSessionTags(tags: string[]): Promise<void>Parameters
tags (string[]) — The complete normalized tag set that should replace the current set.Result
The requested identifier or text value.
Behavior
Normalizes and replaces the complete session tag set; it is not an additive update.
Side effects and completion
Updates session metadata used by tagged cross-session reads.
Example
example.ts
await agent.setSessionTags(["tenant:acme", "support"]);