ludmi
Version:
LU (Layer Understanding) is a lightweight framework for controlled chatbot interactions with LLMs, action orchestration, and retrieval-augmented generation (RAG).
31 lines (30 loc) • 787 B
TypeScript
import { Messages } from "../types/luTypes";
interface getTopicProps {
metadata?: any;
topics: any;
conversation: Messages;
revised?: string;
prompts?: {
revised?: string;
topic?: string;
};
temperature?: number;
model?: string;
}
export interface classifierProps {
topics: any;
input: string;
prompt?: string;
model?: string;
temperature?: number;
}
export declare const getTopic: ({ topics, conversation, revised, prompts, model, temperature, metadata }: getTopicProps) => Promise<{
price: number;
revised_prompt: string;
topic: string;
}>;
export declare const classifier: ({ topics, input, prompt, model, temperature }: classifierProps) => Promise<{
price: number;
topic: string;
}>;
export {};