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