Check Content
Guardrail check request.
Returns 422 when rail_types includes a type with no configured flows, when
the serving engine cannot run a tool check it was asked for: a tool rail type, or
tools, on a config the IORails engine does not serve, or when tools holds an
entry that isn’t a function tool.
Request
The LLM model to use for chat completion (e.g., ‘gpt-4o’, ‘llama-3.1-8b’).
If set, partial message deltas will be sent as server-sent events.
Tools that tool_call rails validate calls against: the allowlist and each tool’s argument schema. Each entry is a Chat Completions function tool, with a function object and a non-empty name; any other entry returns 422. Only the IORails engine runs tool checks; on LLMRails a request with tools returns 422.
Top-p sampling parameter.
Response
Overall check result: passed, modified, or blocked.
The tool calls or tool results a tool rail blocked, each with a violation_type to switch on. Present only when a tool rail blocked (IORails).