# Programowalne reguły przepływu rozmowy (rails)

EN: **Programmable dialogue rails** · id `programmablerails`

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Bezpieczeństwo i governance](https://aiatlasgraph.com/t/safety.md) › [Guardrails](https://aiatlasgraph.com/t/guardrails.md) › Programowalne reguły przepływu rozmowy (rails)

## Description

- PL: Reguły wpięte w różne etapy działania aplikacji LLM — na wejściu, w dialogu, przy wyszukiwaniu, przy wywołaniach narzędzi i na wyjściu — które trzymają rozmowę w temacie i w ustalonym scenariuszu.
- EN: Rules plugged into different stages of an LLM application — input, dialogue, retrieval, tool execution and output — that keep the conversation on topic and on script.

## In one sentence

- PL: To zapisane reguły sterujące dopuszczalnym przebiegiem rozmowy i używaniem narzędzi przez aplikację.
- EN: These written rules control an application's permitted conversation flow and tool use.

## Problem it solves

- PL: Asystent odchodzi od scenariusza albo próbuje wykonać działanie przed zebraniem wymaganych danych.
- EN: An assistant strays from the workflow or tries to act before gathering required details.

## What it does

- PL: Reguły w wybranych etapach sprawdzają warunki i określają kolejne przejścia, odpowiedzi lub dostępne narzędzia.
- EN: Rules at selected stages check conditions and specify the next transitions, responses or available tools.

## Everyday example

- PL: Asystent nie przechodzi do anulowania zamówienia, dopóki rozmówca nie poda numeru i nie potwierdzi zamiaru.
- EN: An assistant does not proceed to order cancellation until the caller provides its number and confirms the intention.

## This concerns you if you…

- PL: rozmowa musi przechodzić przez ustalone etapy
- PL: chcesz kontrolować warunki uruchomienia narzędzi
- EN: need conversations to follow defined stages
- EN: want to control when tools can run

## Keywords

NeMo Guardrails · Colang · input rails · dialogue rails · retrieval rails · execution rails · output rails

## How it works

- PL: Przepływ deklaruje dozwolone stany, zdarzenia i akcje, które orkiestrator sprawdza w czasie wykonania. Reguły wejścia, dialogu, retrieval, narzędzi oraz wyjścia łączą kontrolę treści z ograniczeniem dopuszczalnych przejść procesu.
- EN: A flow declares allowed states, events and actions checked by an orchestrator at runtime. Input, dialogue, retrieval, tool and output rules combine content checks with constraints on permitted process transitions.

## Limits

- PL: Kompletność zależy od objęcia wszystkich ścieżek wykonania. Reguły mogą blokować poprawne przypadki lub kolidować; klasyfikacja intencji przez model nie daje gwarancji deterministycznej polityki.
- EN: Completeness depends on covering all execution paths. Rules can block valid cases or conflict; model-based intent classification does not guarantee deterministic policy enforcement.

## Key terms

- PL: **rail dialogowy**: Reguła sterująca dozwolonym przebiegiem wymiany z użytkownikiem.
- PL: **polityka wykonania**: Warunki określające, które akcje można uruchomić w danym stanie.
- EN: **dialogue rail**: A rule controlling permitted user-interaction flow.
- EN: **execution policy**: Conditions defining which actions may run in a given state.

## Know first

- [Workflow i udział człowieka (Workflows and human-in-the-loop)](https://aiatlasgraph.com/t/workflows.md)
- [Architektura zdarzeniowa (Event-driven AI)](https://aiatlasgraph.com/t/eventdriven.md)

## Examples

- PL: rails wejściowe, dialogowe, wyszukiwania, wykonania i wyjściowe · ograniczanie tematu
- EN: input, dialogue, retrieval, execution and output rails · topic restriction

## Sources

- [NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails](<https://arxiv.org/abs/2310.10501>) `nemo-guardrails-2023` · by T. Rebedea, R. Dinu, M. Sreedhar, C. Parisien, J. Cohen (NVIDIA)

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/programmablerails · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
