# TreatmentOutputSchema

Describes a structured output contract expected from the provider.

Class 

`IntelligenceX.Treatment`

**Namespace**

`IntelligenceX.Treatment`

**Assembly**

`IntelligenceX`

**Source**

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

**Modifiers**

sealed

Describes a structured output contract expected from the provider.

## Inheritance

- object
- TreatmentOutputSchema

## 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

- Property [TreatmentRequest.OutputSchema](/api/intelligencex-treatment-treatmentrequest/#property-outputschema)

Filter members 

Show inherited

## Constructors

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

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

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

Contract name or version.

`public JsonObject? JsonSchema { get; set; }` [#](#property-jsonschema)

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

JSON schema for the expected output.

`public JsonObject? ExampleJson { get; set; }` [#](#property-examplejson)

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

Example JSON for providers that do not support strict schema mode.

`public bool Strict { get; set; }` [#](#property-strict)

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

Whether the provider should treat the schema as strict when possible.

<!-- PowerForge markdown artifact sha256:BF92E37BFD132C383FE2B07D4757826FA8A7ED6D21CECAFF1FDCE76713AEB248 -->
