# Application utils

> Application utils - datarobot[application-utils]provides building blocks for stateful agent
> applications on top of the DataRobot Agentic Memory Service — a typed async ORM and an AG-UI chat-
> history layer built on it. Both use your existingDATAROBOT_ENDPOINT/DATAROBOT_API_TOKENcredentials.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-09-02T14:13:36.418997+00:00` (UTC).

## Primary page

- [Application utils](https://docs.datarobot.com/en/docs/api/reference/sdk/application-utils/index.html.md): Full documentation for this topic (Markdown sidecar).

## Sections on this page

- [Installation](https://docs.datarobot.com/en/docs/api/reference/sdk/application-utils/index.html.md#installation): In-page section heading.
- [Guides](https://docs.datarobot.com/en/docs/api/reference/sdk/application-utils/index.html.md#guides): In-page section heading.
- [Environment variables](https://docs.datarobot.com/en/docs/api/reference/sdk/application-utils/index.html.md#environment-variables): In-page section heading.

## Related documentation

- [Developer documentation](https://docs.datarobot.com/en/docs/api/index.html.md): Linked from this page.
- [API reference](https://docs.datarobot.com/en/docs/api/reference/index.html.md): Linked from this page.
- [Memory Service ORM](https://docs.datarobot.com/en/docs/api/reference/sdk/application-utils/memory-orm.html.md): Linked from this page.
- [AG-UI Chat History](https://docs.datarobot.com/en/docs/api/reference/sdk/application-utils/chat-history.html.md): Linked from this page.

## Documentation content

`datarobot[application-utils]` provides building blocks for stateful agent
applications on top of the DataRobot Agentic Memory Service — a typed async ORM
and an AG-UI chat-history layer built on it. Both use your existing `DATAROBOT_ENDPOINT` / `DATAROBOT_API_TOKEN` credentials.

## Installation

```
pip install "datarobot[application-utils]"
```

The whole extra requires Python 3.11+ — a higher floor than the rest of the
SDK. On an older interpreter the dependencies resolve to nothing and importing `datarobot.application_utils` raises a `RuntimeError` naming the requirement.

## Guides

| Doc | Focus |
| --- | --- |
| Memory Service ORM | The Memory Service light ORM: DRMemorySpace, DRSession, DREvent, range-key encoding, optimistic concurrency, batch ops, typed (de)serialization. |
| AG-UI Chat History | The AG-UI chat-history layer: Chat / Message models, repositories, the AGUIStorageAgent state machine, disconnect survival and cancellation via StreamPersistenceManager, and the four extensibility points. |

## Environment variables

| Variable | Description |
| --- | --- |
| DATAROBOT_ENDPOINT | Full DataRobot API base URL, e.g., https://app.datarobot.com/api/v2. |
| DATAROBOT_API_TOKEN | DataRobot API bearer token. |

Both are resolved automatically; pass them as constructor arguments to override.
