Fleet Memory
createWorker()
Create a fleet worker.
What it does
Create a fleet worker.
The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.
Signature
TypeScript
createWorker(config: WorkerAgentConfig): Promise<WorkerAgent>Parameters
config (WorkerAgentConfig) — Provider, storage, and memory behavior used by the new instance.Example
example.ts
const blue = await fleet.createWorker({ color: "blue", memory: "both" });