# AgentEntityInfo Methods

- Package: [Aspire.Hosting.AgentFramework.DevUI](/reference/api/csharp/aspire.hosting.agentframework.devui.md)
- Type: [AgentEntityInfo](/reference/api/csharp/aspire.hosting.agentframework.devui/agententityinfo.md)
- Kind: `Methods`
- Members: `8`

Describes an AI agent exposed by an agent service backend, used for entity discovery in DevUI.

## <Clone>$

- Name: `<Clone>$`
- Modifiers: `virtual`
- Returns: [AgentEntityInfo](/reference/api/csharp/aspire.hosting.agentframework.devui/agententityinfo.md)

```csharp
public record AgentEntityInfo
{
    public virtual AgentEntityInfo <Clone>$()
    {
        // ...
    }
}
```

## Deconstruct(string, string?)

- Name: `Deconstruct(string, string?)`

```csharp
public record AgentEntityInfo
{
    public void Deconstruct(
        out string Id,
        out string? Description)
    {
        // ...
    }
}
```

## Parameters

- `Id` (`string`)
- `Description` (`string?`)

## Equals(object?)

- Name: `Equals(object?)`
- Modifiers: `override`
- Returns: `bool`

Determines whether the specified object is equal to the current object.

```csharp
public record AgentEntityInfo
{
    public override bool Equals(
        object? obj)
    {
        // ...
    }
}
```

## Parameters

- `obj` (`object?`)
  The object to compare with the current object.

## Returns

`bool` -- `true` if the specified object is equal to the current object; otherwise, `false`.

## Equals(AgentEntityInfo?)

- Name: `Equals(AgentEntityInfo?)`
- Modifiers: `virtual`
- Returns: `bool`

Indicates whether the current object is equal to another object of the same type.

```csharp
public record AgentEntityInfo
{
    public virtual bool Equals(
        AgentEntityInfo? other)
    {
        // ...
    }
}
```

## Parameters

- `other` ([AgentEntityInfo?](/reference/api/csharp/aspire.hosting.agentframework.devui/agententityinfo.md))
  An object to compare with this object.

## Returns

`bool` -- `true` if the current object is equal to the `other` parameter; otherwise, `false`.

## GetHashCode

- Name: `GetHashCode`
- Modifiers: `override`
- Returns: `int`

Serves as the default hash function.

```csharp
public record AgentEntityInfo
{
    public override int GetHashCode()
    {
        // ...
    }
}
```

## Returns

`int` -- A hash code for the current object.

## op_Equality(AgentEntityInfo?, AgentEntityInfo?)

- Name: `op_Equality(AgentEntityInfo?, AgentEntityInfo?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record AgentEntityInfo
{
    public static bool operator ==(
        AgentEntityInfo? left,
        AgentEntityInfo? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([AgentEntityInfo?](/reference/api/csharp/aspire.hosting.agentframework.devui/agententityinfo.md))
- `right` ([AgentEntityInfo?](/reference/api/csharp/aspire.hosting.agentframework.devui/agententityinfo.md))

## op_Inequality(AgentEntityInfo?, AgentEntityInfo?)

- Name: `op_Inequality(AgentEntityInfo?, AgentEntityInfo?)`
- Modifiers: `static`
- Returns: `bool`

```csharp
public record AgentEntityInfo
{
    public static bool operator !=(
        AgentEntityInfo? left,
        AgentEntityInfo? right)
    {
        // ...
    }
}
```

## Parameters

- `left` ([AgentEntityInfo?](/reference/api/csharp/aspire.hosting.agentframework.devui/agententityinfo.md))
- `right` ([AgentEntityInfo?](/reference/api/csharp/aspire.hosting.agentframework.devui/agententityinfo.md))

## ToString

- Name: `ToString`
- Modifiers: `override`
- Returns: `string`

Returns a string that represents the current object.

```csharp
public record AgentEntityInfo
{
    public override string ToString()
    {
        // ...
    }
}
```

## Returns

`string` -- A string that represents the current object.
