Get started with the Squad integration
Este conteúdo não está disponível em sua língua ainda.
Squad organizes AI agents around a shared workspace. The Aspire Squad integration from the Aspire Community Toolkit adds that workspace to your AppHost as a logical resource and makes its metadata available to projects that reference it.
The integration does not start an agent process or service. Add the separate Squad.Agents.AI client package to a consuming app when you want to run the team.
Why use Squad with Aspire
Section titled “Why use Squad with Aspire”- Model a team workspace and its roster alongside your other AppHost resources.
- Pass the workspace path, agent roster, and protocol descriptor to a service with Aspire resource references.
- View resource metadata and dashboard commands for refreshing the roster, opening the team folder, launching Copilot CLI, and checking the decision inbox.
How the integration works
Section titled “How the integration works”architecture-beta group apphost(server)[AppHost] group consumer(server)[Consuming app] service hosting(server)[Squad resource] in apphost service team(database)[Squad workspace] in apphost service app(server)[Service] in consumer hosting:R --> L:team hosting:R --> L:app
AddSquad reads team metadata from the workspace. A project that references the resource receives a squad:// connection string containing the team root, roster, and protocol version. The service can use that descriptor with Squad.Agents.AI.
Get started
Section titled “Get started”-
Prepare a Squad workspace
Section titled “Prepare a Squad workspace”Set up a Squad workspace and identify the directory that contains its
.squad/folder. TheteamRootargument points to this parent directory. -
Add the team to the AppHost
Section titled “Add the team to the AppHost”Install the Community Toolkit hosting package and add a Squad resource. See Set up Squad in the AppHost.
-
Use the team from a service
Section titled “Use the team from a service”Reference the Squad resource from a project and use the injected connection string with
Squad.Agents.AI. See Connect to a Squad team.