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

Function findStructuredOutputPart

packages/ai-client/tests/devtools.test.ts:203–213  ·  view source on GitHub ↗
(
    messages: Array<UIMessage>,
    messageId: string,
  )

Source from the content-addressed store, hash-verified

201 }
202
203 function findStructuredOutputPart(
204 messages: Array<UIMessage>,
205 messageId: string,
206 ) {
207 return messages
208 .find((message) => message.id === messageId)
209 ?.parts.find(
210 (part): part is Extract<MessagePart, { type: 'structured-output' }> =>
211 part.type === 'structured-output',
212 )
213 }
214
215 function runStartedChunk(args: { threadId: string; runId: string }) {
216 return {

Callers 1

devtools.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected