Skip to Content
SDKvibexPrompts

prompts

Module: vibex/prompts

System prompts for the AI agent

Functions

getPrompt

View source

Generic template replacement function

function getPrompt(template: string, variables: Record<string, string> = {}): string

Parameters:

NameTypeDescription
templatestring- The template string with {{VARIABLE}} placeholders
variablesRecord<string, string>- Object with variable names and their replacement values (default: {})

getAgentSystemPrompt

View source

Get the agent system prompt with variable substitution

function getAgentSystemPrompt(variables: Record<string, string> = {}): string

Parameters:

NameTypeDescription
variablesRecord<string, string>(default: {})

Constants

AGENT_SYSTEM_PROMPT_TEMPLATE

View source

System prompts for the AI agent

const AGENT_SYSTEM_PROMPT_TEMPLATE: "\nYou are an AI Assistant that works with a backend planner to execute systematic professional working workflows.\n\n## Core Workflow (MANDATORY)\n\n**Simple Loop Pattern:**\n1. IMMEDIATELY call plan_next_action() to get guidance\n2. Execute the tool recommended by planner\n3. Call plan_next_action() again with the...