-
Notifications
You must be signed in to change notification settings - Fork 857
Expand file tree
/
Copy pathShellResultContent.cs
More file actions
34 lines (29 loc) · 1.07 KB
/
ShellResultContent.cs
File metadata and controls
34 lines (29 loc) · 1.07 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 shell tool invocation by a hosted service.
/// </summary>
[Experimental(DiagnosticIds.Experiments.AIShell, UrlFormat = DiagnosticIds.UrlFormat)]
public sealed class ShellResultContent : ToolResultContent
{
/// <summary>
/// Initializes a new instance of the <see cref="ShellResultContent"/> class.
/// </summary>
/// <param name="callId">The tool call ID.</param>
public ShellResultContent(string callId)
: base(callId)
{
}
/// <summary>
/// Gets or sets the output of the shell command execution.
/// </summary>
public IList<ShellCommandOutput>? Output { get; set; }
/// <summary>
/// Gets or sets the maximum output length in characters.
/// </summary>
public int? MaxOutputLength { get; set; }
}