AI-Studio/app/MindWork AI Studio/Provider/IAnnotationStreamLine.cs

19 lines
600 B
C#
Raw Normal View History

2025-09-03 08:08:04 +00:00
namespace AIStudio.Provider;
/// <summary>
/// A contract for a line in a response stream that can provide annotations such as sources.
/// </summary>
public interface IAnnotationStreamLine
{
/// <summary>
/// Checks if the response line contains any sources.
/// </summary>
/// <returns>True when the response line contains sources, false otherwise.</returns>
public bool ContainsSources();
/// <summary>
/// Gets the sources of the response line.
/// </summary>
/// <returns>The sources of the response line.</returns>
public IList<ISource> GetSources();
}