> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokenfactory.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ContreeConfig

<a id="contree_sdk.config.ContreeConfig" />

## `class ContreeConfig`

```python theme={null}
class contree_sdk.config.ContreeConfig(auth, transport_timeout, file_upload_chunk_size, operation_import_timeout, operation_run_timeout, operation_timeout, operation_poll_secs_min, operation_poll_secs_max, operation_poll_secs_backoff_grow, operation_poll_not_found_limit, default_truncate_output_at, token_expiration_warning_threshold, images_list_batch_size)
```

Configuration for the ConTree SDK client.

The `auth` field controls authentication and the target URL. String fields
on auth objects support env var lookup: if the value matches an existing
environment variable name, the value is loaded from it.

<div className="pl-4 ml-1 my-4">
  ### Attributes

  <a id="contree_sdk.config.ContreeConfig.auth" />

  <ResponseField name="auth" type="IAMAuth | JWTAuth">
    [`IAMAuth`](./auth#contree_sdk.auth.IAMAuth) | [`JWTAuth`](./auth#contree_sdk.auth.JWTAuth)

    Authentication configuration. Use `IAMAuth` for Nebius IAM tokens or `JWTAuth` for legacy tokens.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.transport_timeout" />

  <ResponseField name="transport_timeout" type="float">
    HTTP timeout in seconds.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.file_upload_chunk_size" />

  <ResponseField name="file_upload_chunk_size" type="int">
    Chunk size in bytes for uploads.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.operation_import_timeout" />

  <ResponseField name="operation_import_timeout" type="float | None">
    Import operation timeout, falls back to operation\_timeout.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.operation_run_timeout" />

  <ResponseField name="operation_run_timeout" type="float | None">
    Run operation timeout, falls back to operation\_timeout.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.operation_timeout" />

  <ResponseField name="operation_timeout" type="float">
    Default timeout for operations.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.operation_poll_secs_min" />

  <ResponseField name="operation_poll_secs_min" type="float">
    Min polling interval for operation status checks.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.operation_poll_secs_max" />

  <ResponseField name="operation_poll_secs_max" type="float">
    Max polling interval for operation status checks.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.operation_poll_secs_backoff_grow" />

  <ResponseField name="operation_poll_secs_backoff_grow" type="float">
    Backoff multiplier between polls. Higher values mean faster backoff growth; recommended range is 1 to 2.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.operation_poll_not_found_limit" />

  <ResponseField name="operation_poll_not_found_limit" type="int">
    Maximum number of not found responses when awaiting operation
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.default_truncate_output_at" />

  <ResponseField name="default_truncate_output_at" type="int">
    Default truncate output at which to truncate stdout and stderr.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.token_expiration_warning_threshold" />

  <ResponseField name="token_expiration_warning_threshold" type="timedelta">
    Warn if token expires within this duration.
  </ResponseField>

  <a id="contree_sdk.config.ContreeConfig.images_list_batch_size" />

  <ResponseField name="images_list_batch_size" type="int">
    Batch size for listing images.
  </ResponseField>
</div>
