mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
REFACTOR: GenAIAgenticService -> AIAgentService
This commit is contained in:
@@ -16,7 +16,7 @@ class APIDashAgentCaller {
|
||||
throw Exception('NO_DEFAULT_LLM');
|
||||
}
|
||||
final baseAIRequestObject = AIRequestModel.fromJson(defaultAIModel);
|
||||
final ans = await GenAIAgenticService.callAgent(
|
||||
final ans = await AIAgentService.callAgent(
|
||||
agent,
|
||||
baseAIRequestObject,
|
||||
query: input.query,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import 'package:genai/agentic_engine/blueprint.dart';
|
||||
import 'package:genai/genai.dart';
|
||||
|
||||
class GenAIAgenticService {
|
||||
class AIAgentService {
|
||||
static Future<String?> _call_provider({
|
||||
required AIRequestModel baseAIRequestObject,
|
||||
required String systemPrompt,
|
||||
@@ -58,7 +58,7 @@ class GenAIAgenticService {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
"APIDashAIService::Governor: Exception Occured: $e";
|
||||
"AIAgentService::Governor: Exception Occured: $e";
|
||||
}
|
||||
// Exponential Backoff
|
||||
if (RETRY_COUNT < backoffDelays.length) {
|
||||
|
||||
Reference in New Issue
Block a user