UNPKG

prompt-version-manager

Version:

Centralized prompt management system for Human Behavior AI agents

45 lines 1.19 kB
/** * Unified model interface with automatic tracking and chaining for TypeScript */ import { ModelResponse as IModelResponse, Model as IModel } from './types'; /** * ModelResponse implementation that enables automatic chaining */ export declare class ModelResponse implements IModelResponse { content: string | object; model: string; promptHash: string; executionId: string; metadata: { tag: string; provider: string; chainId?: string; tokens: { prompt: number; completion: number; total: number; }; latencyMs: number; structured: boolean; }; rawResponse?: any; _isPvmResponse: true; constructor(params: { content: string | object; model: string; promptHash: string; executionId: string; metadata: IModelResponse['metadata']; rawResponse?: any; }); /** * String representation returns the content */ toString(): string; /** * Convert response to prompt string for chaining */ toPrompt(): string; } export declare const model: IModel; //# sourceMappingURL=model.d.ts.map