From 1ecc3cd604c842d2c318d4c44ff6023480190df6 Mon Sep 17 00:00:00 2001 From: Twisha Bansal Date: Mon, 9 Feb 2026 12:27:03 +0530 Subject: [PATCH] add to docs --- docs/en/samples/pre_post_processing/python.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/en/samples/pre_post_processing/python.md b/docs/en/samples/pre_post_processing/python.md index bae91eaed6..20911c3439 100644 --- a/docs/en/samples/pre_post_processing/python.md +++ b/docs/en/samples/pre_post_processing/python.md @@ -16,7 +16,14 @@ This guide demonstrates how to implement these patterns in your Toolbox applicat {{< tabpane persist=header >}} {{% tab header="ADK" text=true %}} -Coming soon. +The following example demonstrates how to use `ToolboxToolset` with ADK's pre and post processing hooks to implement pre and post processing for tool calls. + +```py +{{< include "python/adk/agent.py" >}} +``` +You can also add model-level (`before_model_callback`, `after_model_callback`) and agent-level (`before_agent_callback`, `after_agent_callback`) hooks to intercept messages at different stages of the execution loop. + +For more information, see the [ADK Callbacks documentation](https://google.github.io/adk-docs/callbacks/types-of-callbacks/). {{% /tab %}} {{% tab header="Langchain" text=true %}} The following example demonstrates how to use `ToolboxClient` with LangChain's middleware to implement pre and post processing for tool calls.