pub fn parse_reflection_response(
response: &str,
session_id: &str,
) -> Option<AgentReflection>Expand description
Parse a structured reflection from an LLM response.
Expects the format produced by build_reflection_prompt and intentionally
fails closed if any of the core fields are missing. The runtime treats an
unparsable reflection as non-durable so it does not enter session or
long-term memory in a malformed shape.