MemorySearchTool Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A tool for integrating memories into the agent.
public class MemorySearchTool : Azure.AI.AgentServer.Contracts.Generated.OpenAI.Tool, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemorySearchTool>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.MemoryStore.MemorySearchTool>
type MemorySearchTool = class
inherit Tool
interface IUtf8JsonSerializable
interface IJsonModel<MemorySearchTool>
interface IPersistableModel<MemorySearchTool>
Public Class MemorySearchTool
Inherits Tool
Implements IJsonModel(Of MemorySearchTool), IPersistableModel(Of MemorySearchTool)
- Inheritance
- Implements
Constructors
| Name | Description |
|---|---|
| MemorySearchTool() |
Initializes a new instance of MemorySearchTool for deserialization. |
| MemorySearchTool(String, String) |
Initializes a new instance of MemorySearchTool. |
| MemorySearchTool(ToolType, IDictionary<String,BinaryData>, String, String, MemorySearchOptions, Nullable<TimeSpan>) |
Initializes a new instance of MemorySearchTool. |
Properties
| Name | Description |
|---|---|
| MemoryStoreId |
The ID of the memory store to use. |
| Scope |
The namespace used to group and isolate memories, such as a user ID. Limits which memories can be retrieved or updated. |
| SearchOptions |
Options for searching the memory store. |
| Type |
Gets or sets the type. (Inherited from Tool) |
| UpdateDelay |
The amount of time to wait after inactivity before updating memories with messages from the call (e.g., '0s', '5m'). Defaults to '60s'. |
Methods
| Name | Description |
|---|---|
| DeserializeMemorySearchTool(JsonElement, ModelReaderWriterOptions) | |
| FromResponse(Response) |
Deserializes the model from a raw response. |
| JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
| ToRequestContent() |
Convert into a RequestContent. |