prompts
Module: vibex/prompts
System prompts for the AI agent
Functions
getPrompt
View sourceGeneric template replacement function
function getPrompt(template: string, variables: Record<string, string> = {}): stringParameters:
| Name | Type | Description |
|---|---|---|
template | string | - The template string with {{VARIABLE}} placeholders |
variables | Record<string, string> | - Object with variable names and their replacement values (default: {}) |
getAgentSystemPrompt
View sourceGet the agent system prompt with variable substitution
function getAgentSystemPrompt(variables: Record<string, string> = {}): stringParameters:
| Name | Type | Description |
|---|---|---|
variables | Record<string, string> | (default: {}) |
Constants
AGENT_SYSTEM_PROMPT_TEMPLATE
View sourceSystem 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...