# SkillScriptExecutionResult

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.skillscriptexecutionresult/
> Summary: SkillScriptExecutionResult: What one skill script run did, as an ISkillScriptExecutor reports it.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

What one skill script run did, as an [ISkillScriptExecutor](/api/tracon.iskillscriptexecutor/) reports it.

```csharp
public sealed record SkillScriptExecutionResult : IEquatable<SkillScriptExecutionResult>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.skillscriptexecutionresult/">SkillScriptExecutionResult</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;SkillScriptExecutionResult&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Remarks

A consistent result has an exit code when [SkillScriptExecutionResult.TimedOut](/api/tracon.skillscriptexecutionresult/#Tracon_SkillScriptExecutionResult_TimedOut) is
[false](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool) and no exit code when it is [true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool).
Tracon refuses any other shape: the tool call fails and is recorded as an
executor failure.

The duration is not part of the result: Tracon measures it around the call.

## Constructors

### <a id="Tracon_SkillScriptExecutionResult__ctor"></a> SkillScriptExecutionResult\(\)

```csharp
public SkillScriptExecutionResult()
```

## Properties

### <a id="Tracon_SkillScriptExecutionResult_ExitCode"></a> ExitCode

The script's exit code, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when it timed out.

```csharp
public int? ExitCode { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)?

### <a id="Tracon_SkillScriptExecutionResult_StandardError"></a> StandardError

The script's standard error, at most the request's byte limit.

```csharp
public string StandardError { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_SkillScriptExecutionResult_StandardOutput"></a> StandardOutput

The script's standard output, at most the request's byte limit.

```csharp
public string StandardOutput { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="Tracon_SkillScriptExecutionResult_Succeeded"></a> Succeeded

Gets a value that indicates whether the script finished in time with exit code zero.

```csharp
public bool Succeeded { get; }
```

#### Property Value

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SkillScriptExecutionResult_TimedOut"></a> TimedOut

Gets a value that indicates whether the script ran past its timeout and was stopped.

```csharp
public bool TimedOut { get; init; }
```

#### Property Value

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SkillScriptExecutionResult_Truncated"></a> Truncated

Gets a value that indicates whether an output stream was cut at its limit.

```csharp
public bool Truncated { get; init; }
```

#### Property Value

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

#### Remarks

Do not append a notice to the text; Tracon adds it.

## Methods

### <a id="Tracon_SkillScriptExecutionResult_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SkillScriptExecutionResult_Equals_Tracon_SkillScriptExecutionResult_"></a> Equals\(SkillScriptExecutionResult?\)

```csharp
public bool Equals(SkillScriptExecutionResult? other)
```

#### Parameters

`other` [SkillScriptExecutionResult](/api/tracon.skillscriptexecutionresult/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SkillScriptExecutionResult_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_SkillScriptExecutionResult_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_SkillScriptExecutionResult_op_Equality_Tracon_SkillScriptExecutionResult_Tracon_SkillScriptExecutionResult_"></a> operator ==\(SkillScriptExecutionResult?, SkillScriptExecutionResult?\)

```csharp
public static bool operator ==(SkillScriptExecutionResult? left, SkillScriptExecutionResult? right)
```

#### Parameters

`left` [SkillScriptExecutionResult](/api/tracon.skillscriptexecutionresult/)?

`right` [SkillScriptExecutionResult](/api/tracon.skillscriptexecutionresult/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SkillScriptExecutionResult_op_Inequality_Tracon_SkillScriptExecutionResult_Tracon_SkillScriptExecutionResult_"></a> operator \!=\(SkillScriptExecutionResult?, SkillScriptExecutionResult?\)

```csharp
public static bool operator !=(SkillScriptExecutionResult? left, SkillScriptExecutionResult? right)
```

#### Parameters

`left` [SkillScriptExecutionResult](/api/tracon.skillscriptexecutionresult/)?

`right` [SkillScriptExecutionResult](/api/tracon.skillscriptexecutionresult/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
