Skip to main content

Diff two agent specs

POST 

https://platform.docana.com/api/v1/agents/diff/

Compares two agent specs and reports the semantic changes between them: workflow nodes added, removed or modified; reasonings (decision-node evaluation criteria, matched by name) added, removed or modified; nodes whose routing rules (transitions) changed; and changed top-level fields. Each side is an agent in this deployment (agentId) or an inline spec / export bundle (spec), so two different agents can be compared — for example a production agent against its development copy. Specs are normalized before comparison (ids and per-environment criteria references are neutralized), and the normalized specs are returned for stable textual diffs.

Request

Responses

The semantic diff between the two specs