forked from dotnet/extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageGenerationToolResultContent.cs
More file actions
39 lines (34 loc) · 1.37 KB
/
ImageGenerationToolResultContent.cs
File metadata and controls
39 lines (34 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Extensions.AI;
/// <summary>
/// Represents an image generation tool call invocation by a hosted service.
/// </summary>
/// <remarks>
/// This content type represents when a hosted AI service invokes an image generation tool.
/// It is informational only and represents the call itself, not the result.
/// </remarks>
[Experimental("MEAI001")]
public sealed class ImageGenerationToolResultContent : AIContent
{
/// <summary>
/// Initializes a new instance of the <see cref="ImageGenerationToolResultContent"/> class.
/// </summary>
public ImageGenerationToolResultContent()
{
}
/// <summary>
/// Gets or sets the unique identifier of the image generation item.
/// </summary>
public string? ImageId { get; set; }
/// <summary>
/// Gets or sets the generated content items.
/// </summary>
/// <remarks>
/// Content is typically <see cref="DataContent"/> for images streamed from the tool, or <see cref="UriContent"/> for remotely hosted images, but
/// can also be provider-specific content types that represent the generated images.
/// </remarks>
public IList<AIContent>? Outputs { get; set; }
}