MCPcopy Index your code
hub / github.com/github/copilot-sdk / handleSystemMessageTransform

Method handleSystemMessageTransform

nodejs/src/client.ts:2745–2764  ·  view source on GitHub ↗
(params: {
        sessionId: string;
        sections: Record<string, { content: string }>;
    })

Source from the content-addressed store, hash-verified

2743 }
2744
2745 private async handleSystemMessageTransform(params: {
2746 sessionId: string;
2747 sections: Record<string, { content: string }>;
2748 }): Promise<{ sections: Record<string, { content: string }> }> {
2749 if (
2750 !params ||
2751 typeof params.sessionId !== "string" ||
2752 !params.sections ||
2753 typeof params.sections !== "object"
2754 ) {
2755 throw new Error("Invalid systemMessage.transform payload");
2756 }
2757
2758 const session = this.sessions.get(params.sessionId);
2759 if (!session) {
2760 throw new Error(`Session not found: ${params.sessionId}`);
2761 }
2762
2763 return await session._handleSystemMessageTransform(params.sections);
2764 }
2765}

Callers 1

Calls 2

getMethod · 0.45

Tested by

no test coverage detected