mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 18:07:21 +00:00
Added PowerPoint templates to the Slide Assistant (#1055)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
8c5cfa78b6
commit
6eb23ebbcb
136 files changed
+16535
-522
No files matched your search
@@ -0,0 +1,21 @@
|
||||
namespace AIStudio.Tools.PowerPoint;
|
||||
|
||||
/// <summary>
|
||||
/// What a picture library offers for one request.
|
||||
/// </summary>
|
||||
/// <param name="Pictures">The pictures the LLM may choose from, sorted by name: all of them, or a random sample of a large library.</param>
|
||||
/// <param name="PictureCount">How many pictures the folder holds in all.</param>
|
||||
/// <param name="IconCount">How many of them are icons.</param>
|
||||
/// <param name="SkippedFileCount">How many files the folder holds which are neither PNG nor JPEG, e.g., SVG icons.</param>
|
||||
internal sealed record PictureLibraryContent(IReadOnlyList<LibraryPicture> Pictures, int PictureCount, int IconCount, int SkippedFileCount)
|
||||
{
|
||||
/// <summary>
|
||||
/// No library at all.
|
||||
/// </summary>
|
||||
public static readonly PictureLibraryContent NONE = new([], 0, 0, 0);
|
||||
|
||||
/// <summary>
|
||||
/// Whether the folder holds more pictures than the LLM reads about, so that it gets a random sample.
|
||||
/// </summary>
|
||||
public bool IsSampled => this.PictureCount > this.Pictures.Count;
|
||||
}
|
||||
Reference in new issue
Block a user