Skip to content

buildCompletePrompt

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/support-agent/prompts/rag-context-formatter.ts

Builds the complete prompt for the AI

Signature

ts
function buildCompletePrompt(systemPrompt: string, ragContext: FormattedRagContext, conversationHistory: Array<{ role: string; content: string }>, userMessage: string, projectName: string): string

Parameters

NameType
systemPromptstring
ragContextFormattedRagContext
conversationHistoryArray<{ role: string; content: string }>
userMessagestring
projectNamestring

Returns: string

Was this page helpful?

Download as PDF