# IntelligenceXOfficeAiExecutor

Thin adapter to IX Treatment. Each request starts fresh and supplies only inline evidence.

Class 

`OfficeIMO.AI.IntelligenceX`

**Namespace**

`OfficeIMO.AI.IntelligenceX`

**Assembly**

`OfficeIMO.AI.IntelligenceX`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[IntelligenceXOfficeAiExecutor.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L78)

**Implements**

`IOfficeAiExecutor` `IDisposable`

**Modifiers**

sealed

Thin adapter to IX Treatment. Each request starts fresh and supplies only inline evidence.

## Inheritance

- object
- IntelligenceXOfficeAiExecutor

## Usage

Explore 1 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.

### Returned or exposed by 1

- Method [IntelligenceXOfficeAiExecutor.ConnectAsync](/api/ai-intelligence-x/officeimo-ai-intelligencex-intelligencexofficeaiexecutor/#method-connectasync-officeimo-ai-officeaiexecutionprofile-officeimo-ai-intelligencex-officeaiintelligencexoptions-threading-cancellationtoken)

Filter members 

Show inherited

## Methods

`public static async Task<IntelligenceXOfficeAiExecutor> ConnectAsync(OfficeAiExecutionProfile profile, OfficeAiIntelligenceXOptions? connection = null, CancellationToken cancellationToken = default)` [#](#method-connectasync-officeimo-ai-officeaiexecutionprofile-officeimo-ai-intelligencex-officeaiintelligencexoptions-threading-cancellationtoken)

Connects a restricted SDK client. Local profiles require an explicit loopback-compatible endpoint.

Parameters

**profile OfficeIMO.AI.OfficeAiExecutionProfile required**

**connection OfficeIMO.AI.IntelligenceX.OfficeAiIntelligenceXOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<IntelligenceXOfficeAiExecutor>`

`public void Dispose()` [#](#method-dispose)

[IntelligenceXOfficeAiExecutor.cs:161](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L161)

Rejects new operations and disposes the owned SDK connection after any active operation settles.

`public async Task<OfficeAiExecutionResponse> ExecuteAsync(OfficeAiExecutionRequest request, CancellationToken cancellationToken = default)` [#](#method-executeasync-officeimo-ai-officeaiexecutionrequest-threading-cancellationtoken)

Runs exactly one bounded request. Output is untrusted until the document engine validates it.

Parameters

**request OfficeIMO.AI.OfficeAiExecutionRequest required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<OfficeAiExecutionResponse>`

`public Task<AccountInfo> GetAccountAsync(CancellationToken cancellationToken = default)` [#](#method-getaccountasync-threading-cancellationtoken)

[IntelligenceXOfficeAiExecutor.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L82)

Reads the selected account without starting an inference request.

Parameters

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<AccountInfo>`

`public Task<ModelListResult> ListModelsAsync(CancellationToken cancellationToken = default)` [#](#method-listmodelsasync-threading-cancellationtoken)

[IntelligenceXOfficeAiExecutor.cs:78](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L78)

Lists models available through this connection without sending document evidence.

Parameters

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<ModelListResult>`

`public Task LoginChatGptAsync(Action<string> onUrl, CancellationToken cancellationToken = default)` [#](#method-loginchatgptasync-action-system-string-threading-cancellationtoken)

[IntelligenceXOfficeAiExecutor.cs:86](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L86)

Signs in through the native ChatGPT browser flow; no agent CLI is launched.

Parameters

**onUrl System.Action<string> required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task`

`public Task<AccountInfo> LoginCopilotAsync(Action<GitHubDeviceAuthorization> onCode, CancellationToken cancellationToken = default)` [#](#method-logincopilotasync-action-intelligencex-authentication-github-githubdeviceauthorization-threading-cancellationtoken)

[IntelligenceXOfficeAiExecutor.cs:95](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L95)

Signs in through the native GitHub device flow using the configured registered app.

Parameters

**onCode System.Action<IntelligenceX.Authentication.GitHub.GitHubDeviceAuthorization> required**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<AccountInfo>`

`public Task LogoutAsync(CancellationToken cancellationToken = default)` [#](#method-logoutasync-threading-cancellationtoken)

[IntelligenceXOfficeAiExecutor.cs:99](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L99)

Signs out of this connection's selected account.

Parameters

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task`

`public int MeasureRequestCharacters(OfficeAiExecutionRequest request)` [#](#method-measurerequestcharacters-officeimo-ai-officeaiexecutionrequest)

[IntelligenceXOfficeAiExecutor.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L136)

Measures request text including transport prompt wrappers, excluding encoded image bytes. Must not execute or send evidence.

Parameters

**request OfficeIMO.AI.OfficeAiExecutionRequest required**

Returns

`int`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeAiExecutionProfile Profile { get; }` [#](#property-profile)

[IntelligenceXOfficeAiExecutor.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.AI.IntelligenceX/IntelligenceXOfficeAiExecutor.cs#L22)

Immutable profile describing this executor's actual configured route.

<!-- PowerForge markdown artifact sha256:1FFFC9A9AA78F64DEB377BA714A809F10BFD6870D6FF24B681291FF9558F1C4A -->
