2025-01-04 13:11:32 +00:00
|
|
|
namespace AIStudio.Provider;
|
|
|
|
|
|
|
|
public interface IResponseStreamLine
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Checks if the response line contains any content.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>True when the response line contains content, false otherwise.</returns>
|
|
|
|
public bool ContainsContent();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the content of the response line.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The content of the response line.</returns>
|
2025-08-31 12:27:35 +00:00
|
|
|
public ContentStreamChunk GetContent();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Checks if the response line contains any sources.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>True when the response line contains sources, false otherwise.</returns>
|
|
|
|
public bool ContainsSources() => false;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets the sources of the response line.
|
|
|
|
/// </summary>
|
|
|
|
/// <returns>The sources of the response line.</returns>
|
|
|
|
public IList<ISource> GetSources() => [];
|
2025-01-04 13:11:32 +00:00
|
|
|
}
|