mirror of
https://github.com/googleapis/genai-toolbox.git
synced 2026-04-09 03:02:26 -04:00
950 B
950 B
title, type, weight, description
| title | type | weight | description |
|---|---|---|---|
| (JS) Pre and post processing | docs | 5 | How to add pre and post processing to your JS toolbox applications. |
Prerequisites
This tutorial assumes that you have set up a basic toolbox application as described in the local quickstart.
This guide demonstrates how to implement these patterns in your Toolbox applications.
Implementation
{{< tabpane persist=header >}}
{{% tab header="ADK" text=true %}}
Coming soon.
{{% /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.
{{< include "js/langchain/agent.js" >}}
For more information, see the LangChain Middleware documentation. {{% /tab %}} {{< /tabpane >}}