Function: validateSessionId()
Makaio Framework / tools-core / validateSessionId
Function: validateSessionId()
Section titled “Function: validateSessionId()”validateSessionId(
context,entityName?): {sessionId:string;valid:true; } | {error:ToolResult<never>;valid:false; }
Defined in: ../../../tools/core/src/tool-utils.ts:9
Validates that sessionId is present in the context.
Parameters
Section titled “Parameters”context
Section titled “context”Tool execution context
entityName?
Section titled “entityName?”string = 'entity'
Name of entity for error message (e.g., ‘artifact’, ‘task’)
Returns
Section titled “Returns”{ sessionId: string; valid: true; } | { error: ToolResult<never>; valid: false; }
Session ID if valid, or error result