Skip to documentation
Docs navigation
Docs/getActiveSegments()
Fleet Memory

getActiveSegments()

Read worker segments.

What it does

Read worker segments.

The operation follows the fleet’s memory mode and agent identity rules when selecting, storing, or transferring memory.

Signature

TypeScript
getActiveSegments(): Promise<TopicSegment[]>

Example

example.ts
const segments = await worker.getActiveSegments();