@sqlrooms/ai-core / formatAbortSnapshot
Function: formatAbortSnapshot()
formatAbortSnapshot(
snapshot,indent):string
Format an AgentProgressSnapshot into a human-readable string that can be embedded in error text for LLM visibility. Recurses into childSnapshot to render arbitrarily deep nesting.
Parameters
| Parameter | Type | Default value |
|---|---|---|
snapshot | AgentProgressSnapshot | undefined |
indent | string | '' |
Returns
string
