Normandy.Agents.ConverseResult (normandy v1.3.0)

View Source

Flattens the dual-shaped Normandy.Agents.Model.converse/7 return — struct() or {struct(), usage} (and, in raw mode, binary() / {binary(), usage}) — into a single {response, usage} tuple, so callers stop assuming one shape. The protocol contract is intentionally left dual-shaped for backward compatibility; this is the single place consumers normalize it.

Summary

Functions

normalize(response)

@spec normalize(term()) :: {term(), map() | nil}