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

Method getEvents

nodejs/src/session.ts:1272–1278  ·  view source on GitHub ↗

* Retrieves all events and messages from this session's history. * * This returns the complete conversation history including user messages, * assistant responses, tool executions, and other session events. * * @returns A promise that resolves with an array of all session ev

()

Source from the content-addressed store, hash-verified

1270 * ```
1271 */
1272 async getEvents(): Promise<SessionEvent[]> {
1273 const response = await this.connection.sendRequest("session.getMessages", {
1274 sessionId: this.sessionId,
1275 });
1276
1277 return (response as { events: SessionEvent[] }).events;
1278 }
1279
1280 /**
1281 * Disconnects this session and releases all in-memory resources (event handlers,

Calls 1

sendRequestMethod · 0.45

Tested by 1

waitForMessagesFunction · 0.64