From e2b2c2b2810bf6ed0bcb348fb80a04a20e4d5e03 Mon Sep 17 00:00:00 2001 From: adk-bot Date: Thu, 5 Feb 2026 19:09:16 +0000 Subject: [PATCH] docs: Update openapi-tools.md to mention httpx --- docs/tools-custom/openapi-tools.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tools-custom/openapi-tools.md b/docs/tools-custom/openapi-tools.md index ab14ea1e7..b119b8bc3 100644 --- a/docs/tools-custom/openapi-tools.md +++ b/docs/tools-custom/openapi-tools.md @@ -33,7 +33,7 @@ The process involves these main steps when you use `OpenAPIToolset`: 4. **`RestApiTool` Functionality**: Each generated `RestApiTool`: * **Schema Generation**: Dynamically creates a `FunctionDeclaration` based on the operation's parameters and request body. This schema tells the LLM how to call the tool (what arguments are expected). - * **Execution**: When called by the LLM, it constructs the correct HTTP request (URL, headers, query params, body) using the arguments provided by the LLM and the details from the OpenAPI spec. It handles authentication (if configured) and executes the API call using the `requests` library. + * **Execution**: When called by the LLM, it constructs the correct HTTP request (URL, headers, query params, body) using the arguments provided by the LLM and the details from the OpenAPI spec. It handles authentication (if configured) and executes the API call asynchronously using the `httpx` library (previously `requests`). * **Response Handling**: Returns the API response (typically JSON) back to the agent flow. 5. **Authentication**: You can configure global authentication (like API keys or OAuth - see [Authentication](/adk-docs/tools/authentication/) for details) when initializing `OpenAPIToolset`. This authentication configuration is automatically applied to all generated `RestApiTool` instances. @@ -81,4 +81,4 @@ This example demonstrates generating tools from a simple Pet Store OpenAPI spec ```python title="openapi_example.py" --8<-- "examples/python/snippets/tools/openapi_tool.py" - ``` + ``` \ No newline at end of file