SquadResource
Classsealednet10.0
Represents a Squad AI-agent team as a first-class Aspire resource. Implements
ApplicationModel.IResourceWithConnectionString so that downstream services can reference the team with .WithReference(squad) and receive a custom squad:// descriptor that encodes the resource name, team root, and agent roster. The resource is a logical Aspire resource; it does not start a listener by itself. namespace Aspire.Hosting.ApplicationModel;
public sealed class SquadResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IExpressionValue, Aspire.Hosting.ApplicationModel.IManifestExpressionProvider, Aspire.Hosting.ApplicationModel.IResource, Aspire.Hosting.ApplicationModel.IResourceWithConnectionString, Aspire.Hosting.ApplicationModel.IValueProvider, Aspire.Hosting.ApplicationModel.IValueWithReferences{ // ...}ResourceIExpressionValueIManifestExpressionProviderIResourceIResourceWithConnectionStringIValueProviderIValueWithReferences
Constructors1
Section titled ConstructorsSquadResource(string, string) Initialises a new
SquadResource, auto-discovering agents from .squad/team.md. Properties3
Section titled PropertiesAgentsgetIReadOnlyList<string>Gets the list of agent names discovered from
.squad/team.md.ConnectionStringExpressiongetReferenceExpression Describes the connection string format string used for this resource.
TeamRootgetstring Gets the absolute path to the directory that contains the
.squad/ folder (i.e., the workspace root, not the .squad/ sub-directory itself).