Hi,
I'm having trouble working out how to add new settings to the react UI, the AI Agent isn't working as it keeps going into an endless searching mode which just sits there and is burning credits like crazy. I've created new settings for SendGrid emailing, from the information I found that the admin console is supposed to automatically identify the settings and render them, but I couldn't get this to work.
Here's what I have so far:
public static class SendGridSettings { private const string Prefix = "SendGrid";
public const string Enabled = Prefix + ".Enabled";
public const string FromName = Prefix + ".FromName";
public const string FromAddress = Prefix + ".FromAddress";
public const string ApiKey = Prefix + ".ApiKey";
}
public class SendGridSettingDefinitionProvider : SettingDefinitionProvider { public override void Define(ISettingDefinitionContext context) { context.Add( new SettingDefinition(SendGridSettings.Enabled, defaultValue: false.ToString(), isVisibleToClients: true), new SettingDefinition(SendGridSettings.FromName, defaultValue: "<my email sender name>", isVisibleToClients: true), new SettingDefinition(SendGridSettings.FromAddress, defaultValue: "<my email sender>", isVisibleToClients: true), new SettingDefinition(SendGridSettings.ApiKey, isEncrypted: true, isVisibleToClients: true) ); } }
public static class SendGridPermissions { public const string GroupName = "SettingManagement";
public const string SendGrid = GroupName + ".SendGrid";
}
public class SendGridPermissionDefinitionProvider : PermissionDefinitionProvider { public override void Define(IPermissionDefinitionContext context) { var settingManagementGroup = context.GetGroupOrNull("SettingManagement"); if (settingManagementGroup == null) { settingManagementGroup = context.AddGroup("SettingManagement", L("Permission:SettingManagement")); }
settingManagementGroup.AddPermission(SendGridPermissions.SendGrid, L("Permission:SendGrid"));
}
private static LocalizableString L(string name)
{
return LocalizableString.Create<MyResource>(name);
}
}
This didn't create a new tab in the admin console so i tried creating a pSendGridSettings.tsx in react/src/pages/settings but I couldn't get this to work with the correct imports as I couldn't find any documentation on how to do this.
What is the best way to add new settings to the admin console?
Regards Raff
Thanks, I imported these, hopefully it will help.
Thanks I think that will help.
Do you have any of these rules, skills or playbooks available for me to plug into my MVC Tiered solution? Ones that you would use in the development of new features, modules etc...
Thanks Raff
Hi,
Understood, thanks.
Does the agent have some sort of learning capability where it learns or remembers from what I'm asking it?
Does it have a memory or a capability to add my own skills? playbooks or commands?
Regards Raff
Hi,
I'm having some issues with the AI agent in ABP Studio v3.0.2, It doesn't seem to complete tasks, gets a lot of things wrong, keeps repeating the same errors. Even though I get it to create a plan which looks correct and give it very specific prompts, it just doesn't get anything right for the ABP framework.
For example, I gave it this prompt:
it went away and created a plan like this:
Then i switch to Agent mode to implement the plan and after a long time of creating errors and trying to fix them it fails and I get this message:
Instead it created some components and razor pages that won't compile and have errors etc.
I've tried various new features and additions to the solution I created and It never creates anything correctly, I spend more time reviewing the code and trying to make it work with the AI Agent than it would take me to write it myself.
On top of that is using a whole bunch of credits on getting things wrong, at this point it feels like a waste of money more than it helps.
What can I do to improve the functionality of this agent?
Regards Raff
Hi,
Ahh right, didn't realise wasm doesn't read secrets files, I didn't think it was a good idea to put the token in the appsettings.json in the wwwroot folder so I went with the simpler approach and hard coded it into the module.
Tested it and the annoying message has now gone.
Thanks Raff
Hi,
I'm still having an issue with this. I'm sure that I'm using the correct product token, have cleared all caches, cleaned the solutions by removing all obj and bin directories and deleted all web browser cookies and other session stored information and cache.
I added some breakpoints in the solution to stop and see if the token is being read, I can see the token being read correctly in the .Blazor project but the breakpoint in the Blazor.Client project is not hitting the ConfigureBlazorise method at all, i'm not sure if this is because the Client is just a library but it should be reading the same token information.
At first it appears to be working and the landing page doesn't show the message in the footer, but then switching to any other page like the Dashboard or administrative pages the footer appears straight away, even switching back to the landing page after this happens shows the footer on the landing page also.
Regards Raff
Hey,
Thanks, I'll out for the update.
I'm using the latest version of ABP Studio 3.0.2