MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeEntry

Function makeEntry

apps/kimi-code/test/tui/utils/transcript-window.test.ts:7–12  ·  view source on GitHub ↗
(
  turnId: string | undefined,
  kind: TranscriptEntry['kind'] = 'assistant',
)

Source from the content-addressed store, hash-verified

5
6let seq = 0;
7function makeEntry(
8 turnId: string | undefined,
9 kind: TranscriptEntry['kind'] = 'assistant',
10): TranscriptEntry {
11 return { id: String(++seq), kind, turnId, renderMode: 'markdown', content: '' };
12}
13function tool(turnId: string): TranscriptEntry {
14 return makeEntry(turnId, 'tool_call');
15}

Callers 2

toolFunction · 0.85
msgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected