> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# agent

**Experimental.** For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Runs an LLM-driven tool loop to help workflows choose remediation actions. Prompts and tool output are sent to the configured LLM provider.

### Prerequisites

* Configured [LLM module](https://github.com/dsx-ai-factory/remediation-orchestrator/blob/1785e695a8bff76c910115b3c96398a5a59a7183/fern/pages/reference/starlark/catalog.mdx#llm).

### Setup

* Enable the module in tenant TOML:

```toml
[modules.agent]
```

* See the [agent guide](https://github.com/dsx-ai-factory/remediation-orchestrator/blob/1785e695a8bff76c910115b3c96398a5a59a7183/modules/agent/README.md) for tools and workflow examples.

> **Note**
>
> This module must be enabled in your Remediation Orchestrator config before it is available to scripts.

This module provides Agentic breakfix capabilities.

## Members

* [execute](#execute)
* [generate_starlark](#generate_starlark)

## execute

run an ai agent with tools from registry or inline definitions

The prompt describing what are you fixing/doing?

The choices the agent can make before returning

List of tools: \[func1, func2] or \[\{tool: name, source: expr, approval_required: bool}, ...]. Functions use default options. Dicts specify source (inline) or omit for registry.

Parameters available to tools via param() function

Label to identify this agent in the index

Arbitrary key-value data stored alongside the agent run for later analysis

If true, after the agent chooses, run a best-effort reflection pass that returns capability gaps (missing tools/commands/output enrichment) on result.reflection_gaps for the platform. Off by default. Adds an LLM call; never affects the decision.

If true, after the agent chooses, run a best-effort reflection pass that returns suggested next-step commands for a human on result.reflection_handoff (advisory only, never executed). Off by default.

The choice the agent made

## generate_starlark

Generate Starlark code using LLM based on a prompt

The prompt describing what Starlark code to generate

The generated Starlark code and metadata