String manipulation prompts
How can I do something like this:
const simpleGreetingPrompt = defineDotprompt(
{
name: "simpleGreeting",
model: gemini15Pro,
input: { schema: z.object({ customerNames: z.array(z.string()) }) },
output: {
format: "text",
},
// tools: [lookupWeather],
},
`
You're a barista at a nice coffee shop.
A regular customer named ${input.customerNames.join(', ')} enters.
Greet the customer in one sentence, and recommend a coffee drink.
`
);const simpleGreetingPrompt = defineDotprompt(
{
name: "simpleGreeting",
model: gemini15Pro,
input: { schema: z.object({ customerNames: z.array(z.string()) }) },
output: {
format: "text",
},
// tools: [lookupWeather],
},
`
You're a barista at a nice coffee shop.
A regular customer named ${input.customerNames.join(', ')} enters.
Greet the customer in one sentence, and recommend a coffee drink.
`
);