import { createQueryRewriterAgent } from 'praisonai';
const agent = createQueryRewriterAgent({
llm: 'openai/gpt-4o-mini',
defaultStrategy: 'auto'
});
const result = await agent.rewrite('best programming language');
// Result:
// {
// original: 'best programming language',
// rewritten: [
// 'What is the top programming language?',
// 'Which programming language is considered the best?',
// 'What is the most highly regarded programming language?'
// ],
// strategy: 'rephrase',
// confidence: 0.85
// }