Skip to content
DocsTry Aspire
DocsTry

SquadResource Constructors

ClassConstructors1 member
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.
Initialises a new SquadResource, auto-discovering agents from .squad/team.md.
public sealed class SquadResource
{
public SquadResource(
string name,
string teamRoot)
{
// ...
}
}
namestringThe Aspire resource name.
teamRootstring Absolute path to the workspace root (the directory that contains the .squad/ folder).