Skip to main content
Sage plugs in through @ai-sdk/openai’s decision model, pointed at Levanto:

Decisions

Every answer comes back, so set your own threshold on probability. It calls the OpenAI Decisions API.

Check input

A ClassifierProcessor asks Sage about each message before the agent sees it:
A blocked message ends the run with tripwire set. The same processor works as an output processor.

Approve tool calls

Ask Sage about each tool call, and hold the risky ones for a person:
A held call ends the run with finishReason: 'suspended' until you approve or decline it. To judge a call against the whole conversation, see Guard tool calls.

Check it worked

(await triage.decide({ state: 'test' })).response.modelId is levanto-sage-2.