test_inject
- async test_inject.main()[source]
Smoke-test
inject_header_tool_emojis()from the command line.Builds a single hard-coded response string that already contains a first-line bracket header (
[ model :: emojis :: thought ]), then callsresponse_postprocessor.inject_header_tool_emojiswith a sampletools_executedlist of["brave_web_search"]and prints thereprof the returned string so the inserted tool-category emoji section can be inspected.This is a standalone developer/debugging harness rather than part of an automated suite: it performs no assertions, touches no external systems (no Redis streams, knowledge graph, LLM, or HTTP calls), and only writes to stdout. Despite being declared
asyncit awaits nothing, sinceinject_header_tool_emojisis a pure synchronous string transform; the coroutine exists only so the module can be driven uniformly viaasyncio.run.Called by the module-level
asyncio.run(main())at the bottom of this file; no other internal callers were found.- Returns:
None. Output is emitted to stdout via
print.