-
Notifications
You must be signed in to change notification settings - Fork 857
Expand file tree
/
Copy pathShellCommandOutput.cs
More file actions
34 lines (28 loc) · 1.07 KB
/
ShellCommandOutput.cs
File metadata and controls
34 lines (28 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.Diagnostics.CodeAnalysis;
using Microsoft.Shared.DiagnosticIds;
namespace Microsoft.Extensions.AI;
/// <summary>
/// Represents the output of a single shell command execution.
/// </summary>
[Experimental(DiagnosticIds.Experiments.AIShell, UrlFormat = DiagnosticIds.UrlFormat)]
public class ShellCommandOutput : AIContent
{
/// <summary>
/// Gets or sets the standard output of the command.
/// </summary>
public string? Stdout { get; set; }
/// <summary>
/// Gets or sets the standard error output of the command.
/// </summary>
public string? Stderr { get; set; }
/// <summary>
/// Gets or sets the exit code of the command, or <see langword="null"/> if the command timed out.
/// </summary>
public int? ExitCode { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the command execution timed out.
/// </summary>
public bool TimedOut { get; set; }
}