const prompt = {
config: {
providerName: "google",
providerId: "6e94350a-95a9-48e7-8eab-a9f35ec2dc9d",
model: "gemini-2.5-flash-exp",
settings: {
temperature: 0.4,
maxTokens: 1500,
},
},
messages: [
{
role: "system",
content: [
{
modality: "text",
value: "You are {{assistant_role}}. Always be {{personality_trait}} and provide {{response_style}} responses.",
},
],
},
{
role: "user",
content: [
{
modality: "text",
value: "Hello! I'm {{user_name}} and I need help with {{task_description}}. I have {{time_constraint}} to complete this.",
},
],
},
],
tools: [
{
type: "function",
definition: {
schema: {
name: "schedule_task",
description: "Schedule a task with deadline",
parameters: {
type: "object",
properties: {
task: { type: "string" },
deadline: { type: "string" },
priority: {
type: "string",
enum: ["low", "medium", "high"],
},
},
required: ["task", "deadline"],
},
},
},
},
],
variables: [
{
name: "assistant_role",
value: {
modality: "text",
value: "a productivity expert",
},
description: "The role the assistant should take",
},
{
name: "personality_trait",
value: {
modality: "text",
value: "encouraging and supportive",
},
description: "The personality the assistant should exhibit",
},
{
name: "response_style",
value: {
modality: "text",
value: "actionable and concise",
},
description: "The style of responses to provide",
},
{
name: "user_name",
value: {
modality: "text",
value: "Alex",
},
description: "The user's name",
},
{
name: "task_description",
value: {
modality: "text",
value: "organizing my project timeline",
},
description: "Description of what the user needs help with",
},
{
name: "time_constraint",
value: {
modality: "text",
value: "3 days",
},
description: "How much time the user has",
},
],
};