Skip to content
Docs Try Aspire
Docs Try

AgentServiceAnnotation Properties

Class Properties 3 members
An annotation that tracks an agent service backend referenced by a DevUI resource.
Gets the list of agents declared by this backend.
public IReadOnlyList<AgentEntityInfo> Agents { get; }
When non-empty, the DevUI aggregator uses these declarations to build the entity listing without querying the backend. When empty, the aggregator falls back to calling GET /v1/entities on the backend for discovery.
AgentService Section titled AgentService IResource
Gets the agent service resource that exposes AI agents.
public IResource AgentService { get; }
EntityIdPrefix Section titled EntityIdPrefix nullable string?
Gets the prefix to use for entity IDs from this backend.
public string? EntityIdPrefix { get; }
When null, the resource name will be used as the prefix. Entity IDs will be formatted as "{prefix}/{entityId}" to ensure uniqueness across multiple agent backends.