MCPcopy Index your code
hub / github.com/TanStack/ai / nextId

Function nextId

examples/ts-code-mode-web/src/lib/execute-prompt-realtime-tools.ts:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39let logSeq = 0
40function nextId() {
41 return `ep-${++logSeq}-${Date.now()}`
42}
43
44/** Client tool calling POST /api/execute-prompt; server uses local createExecutePromptTool (see lib/create-execute-prompt-tool.ts). */
45export const executePromptShoeCatalogTool = toolDefinition({

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected