Refactor DashBot

This commit is contained in:
Ankit Mahato
2025-09-29 07:25:22 +05:30
parent bd86a71fa8
commit f38ee9f5bf
130 changed files with 391 additions and 521 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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);
}
}