MCPcopy
hub / github.com/TanStack/ai / structuredStartEvent

Function structuredStartEvent

packages/ai/tests/structured-output-middleware.test.ts:40–47  ·  view source on GitHub ↗

Typed structured-output.start event — no cast needed because we name * the precise interface from src/types.ts.

(messageId: string)

Source from the content-addressed store, hash-verified

38/** Typed structured-output.start event — no cast needed because we name
39 * the precise interface from src/types.ts. */
40function 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. */
50function structuredCompleteEvent<T>(

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected