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

# nemoguardrails.library.self_check.output_check.actions

## Module Contents

### Functions

| Name                                                                                             | Description                        |
| ------------------------------------------------------------------------------------------------ | ---------------------------------- |
| [`self_check_output`](#nemoguardrails-library-self_check-output_check-actions-self_check_output) | Checks if the output from the bot. |

### Data

[`log`](#nemoguardrails-library-self_check-output_check-actions-log)

### API

```python
nemoguardrails.library.self_check.output_check.actions.self_check_output(
    llm_task_manager: nemoguardrails.llm.taskmanager.LLMTaskManager,
    context: typing.Optional[dict] = None,
    llm: typing.Optional[nemoguardrails.types.LLMModel] = None,
    config: typing.Optional[nemoguardrails.RailsConfig] = None,
    kwargs = {}
)
```

async

Checks if the output from the bot.

Prompt the LLM, using the `self_check_output` task prompt, to determine if the output
from the bot should be allowed or not.

The LLM call should return "yes" if the output is bad and should be blocked
(this is consistent with self\_check\_input\_prompt).

**Returns:**

True if the output should be allowed, False otherwise.

```python
nemoguardrails.library.self_check.output_check.actions.log = logging.getLogger(__name__)
```