You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a custom ADK tool that authenticates to an external API. I have a basic function but I'm not sure how to handle API keys properly within the tool definition.
defmy_api_tool(query: str) ->dict:
# How should I handle auth here?response=requests.get("https://api.example.com", params={"q": query})
returnresponse.json()
What's the recommended pattern for secure credential management in ADK custom tools?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a custom ADK tool that authenticates to an external API. I have a basic function but I'm not sure how to handle API keys properly within the tool definition.
What's the recommended pattern for secure credential management in ADK custom tools?
Beta Was this translation helpful? Give feedback.
All reactions