mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
included a data container for document image data and page number
This commit is contained in:
parent
35829302e9
commit
5b737543ce
12
app/MindWork AI Studio/Tools/ContentStreamDocumentDetails.cs
Normal file
12
app/MindWork AI Studio/Tools/ContentStreamDocumentDetails.cs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
namespace AIStudio.Tools;
|
||||||
|
|
||||||
|
public sealed class ContentStreamDocumentDetails
|
||||||
|
{
|
||||||
|
[JsonPropertyName("page_number")]
|
||||||
|
public int? PageNumber { get; init; }
|
||||||
|
|
||||||
|
[JsonPropertyName("image")]
|
||||||
|
public ContentStreamPptxImageData? Image { get; init; }
|
||||||
|
}
|
||||||
@ -1,4 +1,10 @@
|
|||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace AIStudio.Tools;
|
namespace AIStudio.Tools;
|
||||||
|
|
||||||
// ReSharper disable ClassNeverInstantiated.Global
|
// ReSharper disable ClassNeverInstantiated.Global
|
||||||
public sealed class ContentStreamDocumentMetadata : ContentStreamSseMetadata;
|
public sealed class ContentStreamDocumentMetadata : ContentStreamSseMetadata
|
||||||
|
{
|
||||||
|
[JsonPropertyName("Document")]
|
||||||
|
public ContentStreamDocumentDetails? Document { get; init; }
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user