AgentServiceAnnotation
Class net10.0
An annotation that tracks an agent service backend referenced by a DevUI resource.
namespace Aspire.Hosting.ApplicationModel;
public class AgentServiceAnnotation : Aspire.Hosting.ApplicationModel.IResourceAnnotation{ // ...} IResourceAnnotation
Remarks
Section titled Remarks This annotation is used to configure DevUI to aggregate entities from multiple agent service backends. Each annotation represents one backend that DevUI should connect to for entity discovery and request routing.
Constructors1
Section titled ConstructorsAgentServiceAnnotation(IResource, string?, IReadOnlyList<AgentEntityInfo>) Initializes a new instance of the
AgentServiceAnnotation class. Properties3
Section titled PropertiesAgentsget Gets the list of agents declared by this backend.
AgentServicegetIResource Gets the agent service resource that exposes AI agents.
EntityIdPrefixgetstring? Gets the prefix to use for entity IDs from this backend.