Typed structured-output.start event — no cast needed because we name * the precise interface from src/types.ts.
(messageId: string)
| 38 | /** Typed structured-output.start event — no cast needed because we name |
| 39 | * the precise interface from src/types.ts. */ |
| 40 | function structuredStartEvent(messageId: string): StructuredOutputStartEvent { |
| 41 | return { |
| 42 | type: EventType.CUSTOM, |
| 43 | name: 'structured-output.start', |
| 44 | value: { messageId }, |
| 45 | timestamp: Date.now(), |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | /** Typed structured-output.complete event. */ |
| 50 | function structuredCompleteEvent<T>( |
no test coverage detected