IntelligenceX

API Reference

Class

CommandExecResult

Namespace IntelligenceX.OpenAI.AppServer.Models
Assembly IntelligenceX
Modifiers sealed

Represents the result of a command execution.

Inheritance

  • Object
  • CommandExecResult

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public CommandExecResult(Int32? exitCode, String? stdout, String? stderr, JsonObject raw, JsonObject? additional) #

Initializes a new command execution result.

Parameters

exitCode System.Int32? requiredposition: 0
stdout System.String? requiredposition: 1
stderr System.String? requiredposition: 2
raw IntelligenceX.Json.JsonObject requiredposition: 3
additional IntelligenceX.Json.JsonObject? requiredposition: 4

Methods

public static CommandExecResult FromJson(JsonObject obj) #
Returns: CommandExecResult

Parses a command execution result from JSON.

Parameters

obj IntelligenceX.Json.JsonObject requiredposition: 0
Source JSON object.

Returns

The parsed result.

Properties

public Int32? ExitCode { get; } #

Gets the exit code when available.

public String? Stdout { get; } #

Gets standard output.

public String? Stderr { get; } #

Gets standard error.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject? Additional { get; } #

Gets unrecognized fields from the payload.