MCPcopy Create free account
hub / github.com/TanStack/ai / createRunEvent

Function createRunEvent

packages/ai-devtools/tests/hook-registry.test.ts:568–584  ·  view source on GitHub ↗
(
  eventId: string,
  status: RunLifecycleEvent['status'],
  timestamp: number,
)

Source from the content-addressed store, hash-verified

566}
567
568function createRunEvent(
569 eventId: string,
570 status: RunLifecycleEvent['status'],
571 timestamp: number,
572): RunLifecycleEvent {
573 return {
574 eventId,
575 timestamp,
576 source: 'client',
577 visibility: 'client-state',
578 clientId: 'chat-1',
579 hookId: 'chat-1',
580 threadId: 'thread-1',
581 runId: 'run-1',
582 status,
583 }
584}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected