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

Function createRecipePrompt

examples/ts-react-native-chat/src/server/app.ts:131–138  ·  view source on GitHub ↗
(
  messages: Array<ModelMessage | UIMessage>,
)

Source from the content-addressed store, hash-verified

129}
130
131export function createRecipePrompt(
132 messages: Array<ModelMessage | UIMessage>,
133): RecipePrompt {
134 return {
135 messages,
136 systemPrompts: [RECIPE_SYSTEM_PROMPT],
137 }
138}
139
140function isRecord(value: unknown): value is Record<string, unknown> {
141 return !!value && typeof value === 'object'

Callers 2

mainFunction · 0.90
createChatStreamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected