Fleet Memory
getSessionId()
Read the worker session ID.
What it does
Read the worker session ID.
The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.
Signature
TypeScript
getSessionId(): stringResult
The requested identifier or text value.
Example
example.ts
const id = worker.getSessionId();