# SearchKnowledgeRequest

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.searchknowledgerequest/
> Summary: SearchKnowledgeRequest: A semantic search request.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.AspNetCore.dll</code></div>

A semantic search request.

```csharp
public sealed record SearchKnowledgeRequest : IEquatable<SearchKnowledgeRequest>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.searchknowledgerequest/">SearchKnowledgeRequest</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;SearchKnowledgeRequest&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_SearchKnowledgeRequest__ctor"></a> SearchKnowledgeRequest\(\)

```csharp
public SearchKnowledgeRequest()
```

## Properties

### <a id="Tracon_SearchKnowledgeRequest_Query"></a> Query

Natural language query to search.

```csharp
public required string Query { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_SearchKnowledgeRequest_Top"></a> Top

Number of results to return. If not given, the default in configuration is used.

```csharp
public int? Top { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)?

## Methods

### <a id="Tracon_SearchKnowledgeRequest_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SearchKnowledgeRequest_Equals_Tracon_SearchKnowledgeRequest_"></a> Equals\(SearchKnowledgeRequest?\)

```csharp
public bool Equals(SearchKnowledgeRequest? other)
```

#### Parameters

`other` [SearchKnowledgeRequest](/api/tracon.searchknowledgerequest/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SearchKnowledgeRequest_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_SearchKnowledgeRequest_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_SearchKnowledgeRequest_op_Equality_Tracon_SearchKnowledgeRequest_Tracon_SearchKnowledgeRequest_"></a> operator ==\(SearchKnowledgeRequest?, SearchKnowledgeRequest?\)

```csharp
public static bool operator ==(SearchKnowledgeRequest? left, SearchKnowledgeRequest? right)
```

#### Parameters

`left` [SearchKnowledgeRequest](/api/tracon.searchknowledgerequest/)?

`right` [SearchKnowledgeRequest](/api/tracon.searchknowledgerequest/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SearchKnowledgeRequest_op_Inequality_Tracon_SearchKnowledgeRequest_Tracon_SearchKnowledgeRequest_"></a> operator \!=\(SearchKnowledgeRequest?, SearchKnowledgeRequest?\)

```csharp
public static bool operator !=(SearchKnowledgeRequest? left, SearchKnowledgeRequest? right)
```

#### Parameters

`left` [SearchKnowledgeRequest](/api/tracon.searchknowledgerequest/)?

`right` [SearchKnowledgeRequest](/api/tracon.searchknowledgerequest/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
