Skip to main content

Function: recheckStructuredReply()

recheckStructuredReply(finalText, previous, resolved): StructuredReplyOutput

Defined in: packages/agentos/src/api/runtime/structuredReply.ts:204

The check after the output guardrails: a sanitizer that rewrote the final text may have broken the shape the model matched. Returns the output as it stands after the rewrite, with stage: 'post_guardrail'.

Parameters​

finalText​

string | null

previous​

StructuredReplyOutput

resolved​

ResolvedStructuredReply

Returns​

StructuredReplyOutput