Function: findTurnByAgent()
Makaio Framework / services-core / findTurnByAgent
Function: findTurnByAgent()
Section titled “Function: 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.
Parameters
Section titled “Parameters”activeTurns
Section titled “activeTurns”Map<string, Turn>
Active turns map
agentId
Section titled “agentId”string
The agent ID to look up
Returns
Section titled “Returns”Turn | undefined
The turn containing this agent, or undefined