feat: extract MyAgent core and web console
This commit is contained in:
commit
e491b1a35b
83 files changed
+13651
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using MyAgent.Core;
|
||||
using Xunit;
|
||||
|
||||
namespace MyAgent.Tests.Core;
|
||||
|
||||
public sealed class SubagentRegistryTests
|
||||
{
|
||||
[Fact]
|
||||
public void Registry_ContainsOnlyControlledRoles()
|
||||
{
|
||||
var registry = new SubagentRegistry();
|
||||
|
||||
Assert.Equal(["analyst", "memory-recall", "tool"], registry.List().Select(x => x.Id).ToArray());
|
||||
Assert.False(registry.TryGet("System.IO.File", out _));
|
||||
Assert.True(registry.TryGet("tool", out var tool));
|
||||
Assert.Equal(4, tool.MaxInstancesPerPlan);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user