test_postprocessor

async test_postprocessor.main()[source]

Smoke-test postprocess_response() against header/tool-call inputs.

Drives response_postprocessor.postprocess_response over a small list of hard-coded sample responses and prints the repr of each result so the full postprocessing pipeline (thought stripping, header normalization, LaTeX/table conversion, metadata stripping, etc.) can be eyeballed. The three fixtures here focus on the first-line bracket header in combination with: a bare header, a header followed by a <tool_call> JSON block, and a header preceded by a <thought> block.

This is a manual developer harness, not an assertion-based test: it makes no assertions and touches no external systems (no Redis streams, knowledge graph, LLM, or HTTP), only writing to stdout. The function is async and invoked via asyncio.run purely for a consistent entrypoint; postprocess_response itself is synchronous, so nothing is awaited.

Called by the module-level asyncio.run(main()) at the bottom of this file; no other internal callers were found.

Returns:

None. Each test case’s output is emitted to stdout via print.