Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies = [
"anyio>=4.9.0, <5.0.0", # For MCP Session Manager
"authlib>=1.6.6, <2.0.0", # For RestAPI Tool
"click>=8.1.8, <9.0.0", # For CLI tools
"fastapi>=0.124.1, <1.0.0", # FastAPI framework
"fastapi>=0.124.1,<1.0.0", # FastAPI framework
"google-api-python-client>=2.157.0, <3.0.0", # Google API client discovery
"google-auth[pyopenssl]>=2.47.0", # Google Auth library
"google-cloud-aiplatform[agent_engines]>=1.132.0, <2.0.0", # For VertexAI integrations, e.g. example store.
Expand All @@ -44,11 +44,11 @@ dependencies = [
"google-cloud-spanner>=3.56.0, <4.0.0", # For Spanner database
"google-cloud-speech>=2.30.0, <3.0.0", # For Audio Transcription
"google-cloud-storage>=2.18.0, <4.0.0", # For GCS Artifact service
"google-genai>=1.64.0, <2.0.0", # Google GenAI SDK
"google-genai>=1.64.0,<2.0.0", # Google GenAI SDK
"graphviz>=0.20.2, <1.0.0", # Graphviz for graph rendering
"httpx>=0.27.0, <1.0.0", # HTTP client library
"httpx>=0.27.0,<1.0.0", # HTTP client library
"jsonschema>=4.23.0, <5.0.0", # Agent Builder config validation
"mcp>=1.23.0, <2.0.0", # For MCP Toolset
"mcp>=1.23.0,<2.0.0", # For MCP Toolset
"opentelemetry-api>=1.36.0, <1.39.0", # OpenTelemetry - keep below 1.39.0 due to current agent_engines exporter constraints.
"opentelemetry-exporter-gcp-logging>=1.9.0a0, <2.0.0",
"opentelemetry-exporter-gcp-monitoring>=1.9.0a0, <2.0.0",
Expand All @@ -57,7 +57,7 @@ dependencies = [
"opentelemetry-resourcedetector-gcp>=1.9.0a0, <2.0.0",
"opentelemetry-sdk>=1.36.0, <1.39.0",
"pyarrow>=14.0.0",
"pydantic>=2.12.0, <3.0.0", # For data validation/models
"pydantic>=2.12.0,<3.0.0", # For data validation/models
"python-dateutil>=2.9.0.post0, <3.0.0", # For Vertext AI Session Service
"python-dotenv>=1.0.0, <2.0.0", # To manage environment variables
"requests>=2.32.4, <3.0.0",
Expand Down
12 changes: 6 additions & 6 deletions src/google/adk/tools/openapi_tool/auth/auth_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ class OpenIdConfig(BaseModel):

Example:
config = OpenIdConfig(
client_id="your_client_id",
client_id="YOUR_CLIENT_ID",
auth_uri="https://accounts.google.com/o/oauth2/auth",
token_uri="https://oauth2.googleapis.com/token",
client_secret="your_client_secret",
redirect
client_secret="YOUR_CLIENT_SECRET",
redirect_uri="https://example.com/callback"
)
"""

Expand All @@ -83,15 +83,15 @@ def token_to_scheme_credential(
```
# API Key in header
auth_scheme, auth_credential = token_to_scheme_credential("apikey", "header",
"X-API-Key", "your_api_key_value")
"X-API-Key", "YOUR_API_KEY")

# API Key in query parameter
auth_scheme, auth_credential = token_to_scheme_credential("apikey", "query",
"api_key", "your_api_key_value")
"api_key", "YOUR_API_KEY")

# OAuth2 Bearer Token in Authorization header
auth_scheme, auth_credential = token_to_scheme_credential("oauth2Token",
"header", "Authorization", "your_bearer_token_value")
"header", "Authorization", "YOUR_TOKEN")
```

Args:
Expand Down