(part?: StructuredRecipePart)
| 183 | } |
| 184 | |
| 185 | function 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 | |
| 193 | function findLatestRecipePart( |
| 194 | messages: Array<UIMessage>, |
no test coverage detected