-
Notifications
You must be signed in to change notification settings - Fork 863
Expand file tree
/
Copy pathCodeInterpreterToolResultContent.cs
More file actions
34 lines (30 loc) · 1.29 KB
/
CodeInterpreterToolResultContent.cs
File metadata and controls
34 lines (30 loc) · 1.29 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
// 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;
using Microsoft.Shared.DiagnosticIds;
namespace Microsoft.Extensions.AI;
/// <summary>
/// Represents the result of a code interpreter tool invocation by a hosted service.
/// </summary>
[Experimental(DiagnosticIds.Experiments.AICodeInterpreter, UrlFormat = DiagnosticIds.UrlFormat)]
public sealed class CodeInterpreterToolResultContent : ToolResultContent
{
/// <summary>
/// Initializes a new instance of the <see cref="CodeInterpreterToolResultContent"/> class.
/// </summary>
/// <param name="callId">The tool call ID.</param>
public CodeInterpreterToolResultContent(string callId)
: base(callId)
{
}
/// <summary>
/// Gets or sets the output of code interpreter tool.
/// </summary>
/// <remarks>
/// Outputs can include various types of content such as <see cref="HostedFileContent"/> for files,
/// <see cref="DataContent"/> for binary data, <see cref="TextContent"/> for standard output text,
/// or other <see cref="AIContent"/> types as supported by the service.
/// </remarks>
public IList<AIContent>? Outputs { get; set; }
}