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