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

Function getRecipeSource

examples/ts-react-native-chat/src/App.tsx:185–191  ·  view source on GitHub ↗
(part?: StructuredRecipePart)

Source from the content-addressed store, hash-verified

183}
184
185function getRecipeSource(part?: StructuredRecipePart): RecipeValue | undefined {
186 if (!part) return undefined
187
188 if (isRecord(part.data)) return part.data
189 if (isRecord(part.partial)) return part.partial
190 return parseRawRecipe(part.raw)
191}
192
193function findLatestRecipePart(
194 messages: Array<UIMessage>,

Callers 1

RecipeHeroFunction · 0.85

Calls 2

parseRawRecipeFunction · 0.85
isRecordFunction · 0.70

Tested by

no test coverage detected