> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/relay/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct AcgLearner

> Learner that derives prompt stability state for ACG.

Generated from `cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi`.

```rust
pub struct AcgLearner { /* private fields */ }
```

Learner that derives prompt stability state for ACG.

This learner groups annotated LLM requests by derived ACG profile key, builds prompt IR observations, persists a bounded observation window, and updates the hot cache with the latest stability results.

## Implementations

### `impl AcgLearner`

<pre />

#### `new`

<pre />

Create a new ACG learner.

##### Parameters

* `agent_id`: Agent identifier whose observations should be updated.
* `observation_window`: Maximum number of observations to retain per profile.
* `thresholds`: Stability thresholds used during analysis.

##### Returns

A configured [`AcgLearner`](/reference/api/rust-library-reference/nemo-relay-adaptive/acg_learner/struct-acglearner).

## Trait Implementations

### `impl Learner for AcgLearner`

<pre />

#### `process_run`

<pre />