Expand description
G — Guard composition.
Compose output guards with | for validation and safety checks.
§Wiring
A GComposite attached via AgentBuilder::guard is installed on the
compiled LlmTextAgent as an after_model middleware layer (see
GComposite::into_middleware). Every model response is checked against
all guards; if any guard rejects the output the agent run fails with an
AgentError enumerating the violations, vetoing the response.
Structs§
- G
- The
Gnamespace — static factory methods for guards. - GComposite
- A composite of guards — all must pass for output to be accepted.
- GGuard
- A guard that validates agent output.