Update docs/en/samples/pre_post_processing/_index.md

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Twisha Bansal
2026-02-09 11:55:18 +05:30
committed by GitHub
parent 33a98db375
commit 2d6a2a76d6

View File

@@ -61,7 +61,7 @@ It is helpful to understand how tool-level processing differs from other scopes:
### Observability & Debugging
- **Structured Logging**: Instead of simple print statements, use structured JSON logging with correlation IDs. This allows you to trace a single user request through multiple agent turns and tool calls.
- **Redundant Logging for Testability**: LLM responses are non-deterministic and may summarize away key details.
- **Logging for Testability**: LLM responses are non-deterministic and may summarize away key details.
- **Pattern**: Add explicit logging markers in your post-processing middleware (e.g., `logger.info("ACTION_SUCCESS: <id>")`).
- **Benefit**: Your integration tests can grep logs for these stable markers to verify tool success, rather than painfully parsing variable natural language responses.