MCPcopy Create free account
hub / github.com/Noumena-Network/code / doesMessageExistInSession

Function doesMessageExistInSession

src/utils/sessionStorage.ts:4082–4088  ·  view source on GitHub ↗
(
  sessionId: UUID,
  messageUuid: UUID,
)

Source from the content-addressed store, hash-verified

4080 * Check if a message UUID exists in the session storage
4081 */
4082export async function doesMessageExistInSession(
4083 sessionId: UUID,
4084 messageUuid: UUID,
4085): Promise<boolean> {
4086 const messageSet = await getSessionMessages(sessionId)
4087 return messageSet.has(messageUuid)
4088}
4089
4090export async function getLastSessionLog(
4091 sessionId: UUID,

Callers 1

runHeadlessStreamingFunction · 0.85

Calls 2

getSessionMessagesFunction · 0.85
hasMethod · 0.45

Tested by

no test coverage detected