Skip to content

Function: findTurnByAgent()

Makaio Framework


Makaio Framework / services-core / findTurnByAgent

findTurnByAgent(activeTurns, agentId): Turn | undefined

Defined in: ../../../packages/services/core/src/session/utils/session-utils.ts:69

Find which turn an agent belongs to.

Map<string, Turn>

Active turns map

string

The agent ID to look up

Turn | undefined

The turn containing this agent, or undefined