Function
createRunEvent
(
eventId: string,
status: RunLifecycleEvent['status'],
timestamp: number,
)
Source from the content-addressed store, hash-verified
| 566 | } |
| 567 | |
| 568 | function 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 | } |
Tested by
no test coverage detected