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

Function getSystemMessageSentToLLM

nodejs/test/e2e/mode_empty.e2e.test.ts:39–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 async function getSystemMessageSentToLLM(): Promise<string> {
40 const exchanges = await openAiEndpoint.getExchanges();
41 expect(exchanges.length).toBeGreaterThanOrEqual(1);
42 const messages = exchanges[exchanges.length - 1].request.messages ?? [];
43 const sys = messages.find((m) => m.role === "system");
44 const content = sys?.content;
45 if (typeof content === "string") return content;
46 if (Array.isArray(content)) {
47 return content
48 .map((p) => (typeof p === "object" && p && "text" in p ? p.text : ""))
49 .join("\n");
50 }
51 return "";
52 }
53
54 it("empty mode isolated set shell tool is not exposed", async () => {
55 const session = await client.createSession({

Callers 2

TestModeEmptyE2EFunction · 0.85

Calls 2

joinMethod · 0.80
getExchangesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…