mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
Refactor DashBot
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
library apidash_core;
|
||||
|
||||
export 'consts.dart';
|
||||
export 'extensions/extensions.dart';
|
||||
export 'models/models.dart';
|
||||
@@ -9,3 +7,6 @@ export 'utils/utils.dart';
|
||||
// Export 3rd party packages
|
||||
export 'package:freezed_annotation/freezed_annotation.dart';
|
||||
export 'package:genai/genai.dart';
|
||||
export 'package:curl_parser/curl_parser.dart' show Curl;
|
||||
export 'package:openapi_spec/openapi_spec.dart'
|
||||
show OpenApi, Operation, ParameterHeader;
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import '../models/models.dart';
|
||||
import '../utils/utils.dart';
|
||||
import 'blueprint.dart';
|
||||
@@ -68,7 +69,7 @@ class AIAgentService {
|
||||
);
|
||||
}
|
||||
RETRY_COUNT += 1;
|
||||
print(
|
||||
debugPrint(
|
||||
"Retrying AgentCall for (${agent.agentName}): ATTEMPT: $RETRY_COUNT",
|
||||
);
|
||||
} while (RETRY_COUNT < 5);
|
||||
|
||||
@@ -7,7 +7,7 @@ abstract class AIAgent {
|
||||
|
||||
extension SystemPromptTemplating on String {
|
||||
String substitutePromptVariable(String variable, String value) {
|
||||
return this.replaceAll(":$variable:", value);
|
||||
return replaceAll(":$variable:", value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user