const chorsPrompt = fireGenkit.definePrompt(
{
name: 'Chors Prompt',
description: 'Prompt for Chors',
model: gemini15Pro,
output: {
format: 'json',
schema: z.object({
message: z.string().describe('Message to the user'),
name: z.string().describe('Name of the person')
})
},
input: {
schema: z.object({
name: z.string().describe('Name of the person')
})
}
},
async (input) => {
console.log(gemini15Pro.name);
return {
messages: [{ role: 'user', content: [{ text: `Say hello to ${input.name}` }] }]
};
}
);
const chorsPrompt = fireGenkit.definePrompt(
{
name: 'Chors Prompt',
description: 'Prompt for Chors',
model: gemini15Pro,
output: {
format: 'json',
schema: z.object({
message: z.string().describe('Message to the user'),
name: z.string().describe('Name of the person')
})
},
input: {
schema: z.object({
name: z.string().describe('Name of the person')
})
}
},
async (input) => {
console.log(gemini15Pro.name);
return {
messages: [{ role: 'user', content: [{ text: `Say hello to ${input.name}` }] }]
};
}
);