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

Method buildSnapshot

packages/ai-client/src/devtools.ts:1443–1456  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1441 // --- Internal ---------------------------------------------------------
1442
1443 protected buildSnapshot(): AIDevtoolsGenerationSnapshotBase<TOutput> {
1444 const core = this.getCoreState()
1445 return {
1446 input: core.input,
1447 result: core.result,
1448 preview: this.createPreview(core.result),
1449 progress: core.progress,
1450 status: core.status,
1451 isLoading: core.isLoading,
1452 activeRunId: this.activeRunId,
1453 runs: this.devtoolsRuns,
1454 ...(core.error ? { error: core.error } : {}),
1455 }
1456 }
1457
1458 protected updateActiveRun(patch: GenerationRunPatch<TOutput>): void {
1459 if (!this.activeRunId) return

Callers 1

constructorMethod · 0.95

Calls 1

createPreviewMethod · 0.95

Tested by

no test coverage detected