ReportDoc: genai examples changed + PR status changed

This commit is contained in:
Manas Hejmadi
2025-08-31 17:03:55 +05:30
parent ce5f93473c
commit f23d0de853

View File

@@ -140,18 +140,20 @@ As a result, developers can easily build features that leverage generative AI wi
Example of simplified usage (model-agnostic, works with any LLM out of the box) Example of simplified usage (model-agnostic, works with any LLM out of the box)
```dart ```dart
final LLMModel model = LLMProvider.gemini.getLLMByIdentifier('gemini-2.0-flash'); final request = AIRequestModel(
final ModelController controller = model.provider.modelController; modelApiProvider: ModelAPIProvider.gemini, // or openai, anthropic, etc.
model: "gemini-2.0-flash",
final payload = controller.inputPayload apiKey: "<YOUR_API_KEY>",
..systemPrompt = 'Say YES or NO' url: kGeminiUrl,
..userPrompt = 'The sun sets in the west' systemPrompt: "You are a helpful assistant.",
..credential = 'AIza....'; userPrompt: "Explain quantum entanglement simply.",
stream: false, // set true for streaming
final genAIRequest = controller.createRequest(model, payload); );
final answer = await GenerativeAI.executeGenAIRequest(model, genAIRequest); await callGenerativeModel(
request,
print(answer); onAnswer: (ans) => print("AI Output: $ans"),
onError: (err) => print("Error: $err"),
);
``` ```
#### Agentic Infrastructure #### Agentic Infrastructure
@@ -162,7 +164,7 @@ When developing AI-powered features in any application, the process typically in
The core idea is straightforward: an AI agent in apidash is simply a Dart file containing a class that extends the base class `APIDashAIAgent`, defined as: The core idea is straightforward: an AI agent in apidash is simply a Dart file containing a class that extends the base class `APIDashAIAgent`, defined as:
```dart ```dart
abstract class APIDashAIAgent { abstract class AIAgent {
String get agentName; String get agentName;
String getSystemPrompt(); String getSystemPrompt();
Future<bool> validator(String aiResponse); Future<bool> validator(String aiResponse);
@@ -179,7 +181,7 @@ These agents operate within an orchestrator and governor framework that manages
```dart ```dart
//simple_func_agent.dart //simple_func_agent.dart
class SimpleFuncGenerator extends APIDashAIAgent { class SimpleFuncGenerator extends AIAgent {
@override @override
String get agentName => 'SIMPLE_FUNCGEN'; String get agentName => 'SIMPLE_FUNCGEN';
@@ -465,9 +467,9 @@ class SDUIWidget extends StatelessWidget {
|SSE Feature Foundations|[#860](https://github.com/foss42/apidash/pull/860)||Closed|Mentor requested changes and rebase to main branch| |SSE Feature Foundations|[#860](https://github.com/foss42/apidash/pull/860)||Closed|Mentor requested changes and rebase to main branch|
|SSE & Streaming Support|[#861](https://github.com/foss42/apidash/pull/861)|[#116](https://github.com/foss42/apidash/issues/116)|Merged|| |SSE & Streaming Support|[#861](https://github.com/foss42/apidash/pull/861)|[#116](https://github.com/foss42/apidash/issues/116)|Merged||
|`genai` & AI Requests Feature|[#870](https://github.com/foss42/apidash/pull/870)|[#871](https://github.com/foss42/apidash/issues/871)|Merged|| |`genai` & AI Requests Feature|[#870](https://github.com/foss42/apidash/pull/870)|[#871](https://github.com/foss42/apidash/issues/871)|Merged||
|`genai` package: Testing|[#882](https://github.com/foss42/apidash/pull/882)||Open|Under Review |`genai` package: Testing|[#882](https://github.com/foss42/apidash/pull/882)||Merged||
Foundations: Agents & AI UI Designer + Tool Generation |[#874](https://github.com/foss42/apidash/pull/874)||Closed|Mentor requested to make a new PR that was based on top of main branch code| Foundations: Agents & AI UI Designer + Tool Generation |[#874](https://github.com/foss42/apidash/pull/874)||Closed|Mentor requested to make a new PR that was based on top of main branch code|
|AI UI Designer & Tool Generator|[#880](https://github.com/foss42/apidash/pull/880)|[#617](https://github.com/foss42/apidash/issues/617)|Open|Under Review |AI UI Designer & Tool Generator|[#880](https://github.com/foss42/apidash/pull/880)|[#617](https://github.com/foss42/apidash/issues/617), [#884](https://github.com/foss42/apidash/issues/884)|Open|Under Review
|Final Report Documentation|[#878](https://github.com/foss42/apidash/pull/878)||Open|Under Review |Final Report Documentation|[#878](https://github.com/foss42/apidash/pull/878)||Open|Under Review
--- ---