Expand description
Shared decision-translation helpers for converting SuspensionResponse
values into ToolCallDecision commands.
Both the AG-UI and AI-SDK protocol adapters delegate to these functions so that approval/denial semantics are defined in exactly one place.
Functionsยง
- current_
unix_ millis - Current time as milliseconds since the Unix epoch.
- decision_
action_ from_ result - Determine whether a result value represents approval or denial.
- decision_
reason_ from_ result - Extract a human-readable reason string from a denial result.
- is_
denied_ token - Return
trueif a string value represents a denial intent. - suspension_
response_ to_ decision - Convert a
SuspensionResponseinto a routableToolCallDecision.