MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / rawMsg

Function rawMsg

packages/tools/src/definitions/retrieve-chat-evidence.test.ts:48–50  ·  view source on GitHub ↗

秒级 RawMessage,模拟聊天库返回

(id: number, tsSeconds: number, content: string, senderName = '甲')

Source from the content-addressed store, hash-verified

46
47/** 秒级 RawMessage,模拟聊天库返回 */
48function rawMsg(id: number, tsSeconds: number, content: string, senderName = '甲'): RawMessage {
49 return { id, senderName, content, timestamp: tsSeconds }
50}
51
52function makeDataProvider(messages: RawMessage[], capture?: { args?: unknown[] }): ToolDataProvider {
53 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected