mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
8dca006edd
* Add a file memory provider * Address PR comments * Fix review comments. * Add additional unit tests * Addressing PR comments.
27 lines
765 B
C#
27 lines
765 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Text.Json.Serialization;
|
|
using Microsoft.Shared.DiagnosticIds;
|
|
|
|
namespace Microsoft.Agents.AI;
|
|
|
|
/// <summary>
|
|
/// Represents a match found within a file during a search operation.
|
|
/// </summary>
|
|
[Experimental(DiagnosticIds.Experiments.AgentsAIExperiments)]
|
|
public sealed class FileSearchMatch
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the 1-based line number where the match was found.
|
|
/// </summary>
|
|
[JsonPropertyName("lineNumber")]
|
|
public int LineNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the content of the matching line.
|
|
/// </summary>
|
|
[JsonPropertyName("line")]
|
|
public string Line { get; set; } = string.Empty;
|
|
}
|