AgentEntityInfo
Record net10.0
Describes an AI agent exposed by an agent service backend, used for entity discovery in DevUI.
namespace Aspire.Hosting.AgentFramework;
public record AgentEntityInfo : System.IEquatable<Aspire.Hosting.AgentFramework.AgentEntityInfo>{ // ...} IEquatable<AgentEntityInfo>
14 members
Remarks
Section titled Remarks When added via AgentFrameworkBuilderExtensions.WithAgentService, agent metadata is declared at the AppHost level so that the DevUI aggregator can build the entity listing without querying each backend's /v1/entities endpoint.
Agent services only need to expose the standard OpenAI Responses and Conversations API endpoints ( MapOpenAIResponses and MapOpenAIConversations), not a custom discovery endpoint.
Constructors1
Section titled ConstructorsProperties5
Section titled PropertiesDescriptionget; initstring?A short description of the agent's capabilities.
Frameworkget; initstring Gets the framework identifier. Defaults to
"agent_framework". Idget; initstringThe unique identifier for the agent, typically matching the name passed to
AddAIAgent.Nameget; initstring Gets the display name for the agent. Defaults to
AgentEntityInfo.Id if not specified. Typeget; initstring Gets the entity type. Defaults to
"agent". Methods8
Section titled Methods<Clone>$virtualDeconstruct(string, string?)Equals(object?)boolDetermines whether the specified object is equal to the current object.
Equals(AgentEntityInfo?)virtualboolIndicates whether the current object is equal to another object of the same type.
GetHashCodeintServes as the default hash function.
op_Equality(AgentEntityInfo?, AgentEntityInfo?)staticboolop_Inequality(AgentEntityInfo?, AgentEntityInfo?)staticboolToStringstringReturns a string that represents the current object.