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

# AiConfig

<span id="atoti_ai.AiConfig" />

> atoti\_ai.AiConfig(<br />
>     \*,<br />
>     *connection*: [ConnectionConfig](./atoti_ai.ConnectionConfig#atoti_ai.ConnectionConfig) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *chat*: [ChatConfig](./atoti_ai.ChatConfig#atoti_ai.ChatConfig) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
>     *disclaimer*: [str](https://docs.python.org/3/library/stdtypes.html#str) | [None](https://docs.python.org/3/library/constants.html#None) = `None`,<br />
> )

Atoti Intelligence configuration.

When [`disclaimer`](#atoti_ai.AiConfig.disclaimer) is `None`, it defaults to:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> _fetch_ai_disclaimer(session_with_ai)
'AI can make mistakes, please double check response.'
```

Changing the disclaimer:

```pycon theme={"languages":{"custom":["/engine/python-sdk/0.9/languages/pycon.tmLanguage.json"]}}
>>> import os
>>> from atoti_ai import AiConfig
>>> from atoti_ai_amazon_bedrock import ConnectionConfig, ChatConfig
>>> connection_config = ConnectionConfig(
...     aws_access_key=os.environ["AWS_ACCESS_KEY_ID"],
...     aws_secret_key=os.environ["AWS_SECRET_ACCESS_KEY"],
...     aws_region="eu-west-3",
... )
>>> chat_config = ChatConfig(
...     model="eu.mistral.pixtral-large-2502-v1:0",
... )
>>> custom_disclaimer = "Custom disclaimer."
>>> ai_config = AiConfig(
...     connection=connection_config,
...     chat=chat_config,
...     disclaimer=custom_disclaimer,
... )
>>> session_config = tt.SessionConfig(ai=ai_config)
```

<Callout icon="link">
  **See also**:
  [`atoti.Cube.auto_explain`](./atoti.Cube.auto_explain#atoti.Cube.auto_explain) and [`atoti.Session.chat`](./atoti.Session.chat#atoti.Session.chat).
</Callout>

### Attributes

<h4 id="atoti_ai.AiConfig.connection">
  *connection*
</h4>

The configuration of the connection to the LLM provider.

<h4 id="atoti_ai.AiConfig.chat">
  *chat*
</h4>

The configuration of the chat model.

<h4 id="atoti_ai.AiConfig.disclaimer">
  *disclaimer*
</h4>

The disclaimer displayed in Atoti UI next to AI-generated content.
