# TreatmentRequest

Describes an AI treatment job over supplied artifacts.

Class 

`IntelligenceX.Treatment`

**Namespace**

`IntelligenceX.Treatment`

**Assembly**

`IntelligenceX`

**Source**

[TreatmentContracts.cs:60](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L60)

**Modifiers**

sealed

Describes an AI treatment job over supplied artifacts.

## Inheritance

- object
- TreatmentRequest

## Usage

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

### Accepted by parameters 5

- Method [ITreatmentProvider.RunAsync](/api/intelligencex-treatment-itreatmentprovider/#method-runasync-intelligencex-treatment-treatmentrequest-threading-cancellationtoken) parameter `request`
- Method [OpenAIChatTreatmentProvider.RunAsync](/api/intelligencex-treatment-openaichattreatmentprovider/#method-runasync-intelligencex-treatment-treatmentrequest-threading-cancellationtoken) parameter `request`
- Method [TreatmentEngine.RunAsync](/api/intelligencex-treatment-treatmentengine/#method-runasync-intelligencex-treatment-treatmentrequest-threading-cancellationtoken) parameter `request`
- Method [TreatmentPromptBuilder.Build](/api/intelligencex-treatment-treatmentpromptbuilder/#method-build-intelligencex-treatment-treatmentrequest) parameter `request`
- Method [TreatmentPromptBuilder.Validate](/api/intelligencex-treatment-treatmentpromptbuilder/#method-validate-intelligencex-treatment-treatmentrequest) parameter `request`

Filter members 

Show inherited

## Constructors

`public TreatmentRequest()` [#](#constructor-ctor)

[TreatmentContracts.cs:60](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L60)

## 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 string? Id { get; set; }` [#](#property-id)

[TreatmentContracts.cs:16](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L16)

Optional caller supplied request id.

`public string? Name { get; set; }` [#](#property-name)

[TreatmentContracts.cs:20](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L20)

Optional human readable treatment name.

`public string? Instructions { get; set; }` [#](#property-instructions)

[TreatmentContracts.cs:24](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L24)

System or persona instructions for the treatment run.

`public string? Prompt { get; set; }` [#](#property-prompt)

[TreatmentContracts.cs:28](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L28)

User-facing brief or task prompt.

`public string? Model { get; set; }` [#](#property-model)

[TreatmentContracts.cs:32](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L32)

Optional model override.

`public ReasoningEffort? ReasoningEffort { get; set; }` [#](#property-reasoningeffort)

[TreatmentContracts.cs:36](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L36)

Optional reasoning effort hint.

`public TextVerbosity? TextVerbosity { get; set; }` [#](#property-textverbosity)

[TreatmentContracts.cs:40](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L40)

Optional text verbosity hint.

`public double? Temperature { get; set; }` [#](#property-temperature)

[TreatmentContracts.cs:44](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L44)

Optional sampling temperature.

`public string? WorkingDirectory { get; set; }` [#](#property-workingdirectory)

[TreatmentContracts.cs:48](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L48)

Working directory for provider-side file operations.

`public string? Workspace { get; set; }` [#](#property-workspace)

[TreatmentContracts.cs:52](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L52)

Workspace path for provider-side file access.

`public bool AllowNetwork { get; set; }` [#](#property-allownetwork)

[TreatmentContracts.cs:56](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L56)

Whether the treatment provider may use network access.

`public bool NewThread { get; set; }` [#](#property-newthread)

[TreatmentContracts.cs:60](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L60)

Whether to force a fresh provider conversation for this treatment run.

`public IReadOnlyList<TreatmentInputArtifact> Inputs { get; set; }` [#](#property-inputs)

[TreatmentContracts.cs:64](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L64)

Input artifacts available to the model.

`public IReadOnlyList<TreatmentOutputSpec> Outputs { get; set; }` [#](#property-outputs)

[TreatmentContracts.cs:68](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L68)

Expected outputs for the model to produce.

`public TreatmentOutputSchema? OutputSchema { get; set; }` [#](#property-outputschema)

[TreatmentContracts.cs:72](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L72)

Optional structured output contract.

`public bool EnforceOutputSchema { get; set; }` [#](#property-enforceoutputschema)

[TreatmentContracts.cs:74](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L74)

Requests transport-level schema enforcement. False retains the existing prompted-contract behavior.

`public int MaxInlineImageBytes { get; set; }` [#](#property-maxinlineimagebytes)

[TreatmentContracts.cs:76](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L76)

Maximum aggregate inline image bytes; local paths retain their own caller policy.

`public long? MaxResponseBytes { get; set; }` [#](#property-maxresponsebytes)

[TreatmentContracts.cs:78](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L78)

Optional maximum provider response wire bytes, including streaming protocol overhead.

`public bool Ephemeral { get; set; }` [#](#property-ephemeral)

[TreatmentContracts.cs:80](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L80)

Executes without retaining local conversation state after the provider request settles.

`public TreatmentImageOptions? ImageGeneration { get; set; }` [#](#property-imagegeneration)

[TreatmentContracts.cs:84](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L84)

Optional image generation settings.

`public IReadOnlyDictionary<string, string> Metadata { get; set; }` [#](#property-metadata)

[TreatmentContracts.cs:88](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L88)

Caller metadata that should travel with the run.

`public bool InlineLocalInputFiles { get; set; }` [#](#property-inlinelocalinputfiles)

[TreatmentContracts.cs:92](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L92)

Whether local text-like input files should be inlined into provider prompts.

`public int? MaxInlineFileCharacters { get; set; }` [#](#property-maxinlinefilecharacters)

[TreatmentContracts.cs:96](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Treatment/TreatmentContracts.cs#L96)

Maximum characters to inline per local input file.

<!-- PowerForge markdown artifact sha256:8821C7567C7EA0BFD3C7380B2F6A8543D30AA0B7CAB349ECA168BED806D26272 -->
