//! JSON rendering adapter for [`super::AgentContext`].
//!
//! This module keeps JSON formatting policy outside the agent-context schema
//! model while providing the compact and pretty renderings used by adapters.
use AgentContext;
/// Serializes an agent context as compact JSON with a trailing newline.
///
/// # Errors
///
/// Returns a [`serde_json::Error`] when serialization fails.
/// Serializes an agent context as indented JSON without a trailing newline.
///
/// # Errors
///
/// Returns a [`serde_json::Error`] when serialization fails.