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

Method createPreview

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

Source from the content-addressed store, hash-verified

1631 // Override so record* methods inherited from GenerationDevtoolsBridge
1632 // (e.g. recordResultChange) thread the latest videoStatus into the preview.
1633 protected override createPreview(
1634 result: TOutput | null,
1635 ): AIDevtoolsGenerationPreview {
1636 const core = this.getCoreState() as VideoDevtoolsCoreState<TOutput>
1637 return this.createVideoPreview(result, core.videoStatus)
1638 }
1639
1640 private createVideoPreview(
1641 result: TOutput | null,

Callers

nothing calls this directly

Calls 1

createVideoPreviewMethod · 0.95

Tested by

no test coverage detected