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

Method createPreview

packages/ai-client/src/devtools.ts:1530–1535  ·  view source on GitHub ↗
(result: TOutput | null)

Source from the content-addressed store, hash-verified

1528 }
1529
1530 protected createPreview(result: TOutput | null): AIDevtoolsGenerationPreview {
1531 return createAIDevtoolsGenerationPreview({
1532 outputKind: this.options.metadata.outputKind,
1533 result,
1534 })
1535 }
1536
1537 protected generateRunId(): string {
1538 return `run-${Date.now()}-${Math.random().toString(36).substring(7)}`

Callers 4

beginRunMethod · 0.95
recordResultChangeMethod · 0.95
buildSnapshotMethod · 0.95
upsertRunMethod · 0.95

Calls 1

Tested by

no test coverage detected