mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-03 20:02:02 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
20 lines
959 B
C#
20 lines
959 B
C#
namespace AIStudio.Tools.AssistantSessions;
|
|
|
|
/// <summary>
|
|
/// A value of an assistant session which tells by itself whether another value holds the same.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// A snapshot compares most values by their reference, since an object may change without getting a new
|
|
/// one, see IAssistantSessionSnapshotField.HasSameValueAs. A value which the assistant captures as a copy
|
|
/// of its own, such as the state of an assistant plugin, gets a new reference with every snapshot, though,
|
|
/// and would always count as changed. Such a value compares its content instead.
|
|
/// </remarks>
|
|
public interface IAssistantSessionValue
|
|
{
|
|
/// <summary>
|
|
/// Tells whether another value holds the same content as this one.
|
|
/// </summary>
|
|
/// <param name="other">The value to compare with.</param>
|
|
/// <returns><c>true</c> when both values hold the same content; otherwise, <c>false</c>.</returns>
|
|
bool HasSameValueAs(object other);
|
|
} |