optivise
Version:
Optivise - The Ultimate Optimizely Development Assistant with AI-powered features, zero-config setup, and comprehensive development support
34 lines • 964 B
TypeScript
/**
* Request Formatter
* Creates structured, agent-ready LLMRequest payloads without calling an LLM directly.
*/
import type { ContextBlock, LLMRequest, PromptContext } from '../types/index.js';
export interface RequestFormatterInput {
toolName: string;
userPrompt?: string;
promptContext?: PromptContext;
summary?: string;
products?: string[];
blocks?: ContextBlock[];
citations?: Array<{
title: string;
url: string;
}>;
tags?: string[];
constraints?: string[];
template?: {
systemPrompt?: string;
userPrefix?: string;
};
tokenBudget?: {
maxContextTokens?: number;
dropLowRelevanceFirst?: boolean;
};
}
export declare class RequestFormatter {
static format(input: RequestFormatterInput): LLMRequest;
private static buildSystemPrompt;
private static estimateTokens;
private static sanitize;
}
//# sourceMappingURL=request-formatter.d.ts.map