adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

OpenAPIToolset: add header_provider, as McpToolsset has

Open asnowfix opened this issue 1 month ago • 0 comments

** Please make sure you read the contribution guide and file the issues in the right place. ** Contribution guide.

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

In order to work with OpenAPI's & in particular set/read/delete non-standard headers, we need to have R/W access to the ADK-set request headers & later to the API-set response headers.

McpToolset provides header_provider kwargs that does the job.

Describe the solution you'd like A clear and concise description of what you want to happen.

We want header_provider in OpenAPIToolset the same way as it is provided by McpToolset.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Use LangGraph

Additional context Add any other context or screenshots about the feature request here.

This issue could be an alternative to https://github.com/google/adk-python/issues/3780

This Issue relates to our enterprise usage attempt of ADK:

  • https://github.com/google/adk-python/issues/3720
  • https://github.com/google/adk-python/issues/3779
  • https://github.com/google/adk-python/issues/3780
  • https://github.com/google/adk-python/issues/3782

asnowfix avatar Dec 02 '25 10:12 asnowfix