mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 14:30:17 +08:00
17 lines
445 B
TypeScript
17 lines
445 B
TypeScript
import { LLMClient, LLMClientConfig } from '../../../utils/llm-client';
|
|
|
|
export class MockLLMClient implements LLMClient {
|
|
constructor(private mockResponse: string = '{"queries": ["test query"]}') {}
|
|
|
|
getGenerativeModel(config: LLMClientConfig) {
|
|
return {
|
|
generateContent: async () => ({
|
|
response: {
|
|
text: () => this.mockResponse,
|
|
usageMetadata: { totalTokenCount: 100 }
|
|
}
|
|
})
|
|
};
|
|
}
|
|
}
|