|
68 | 68 | }, |
69 | 69 | }, |
70 | 70 | }, |
| 71 | + "webpage_browser": { |
| 72 | + "display_name": "Webpage Browser", |
| 73 | + "description": "This extension fetches the content of a webpage", |
| 74 | + "manifest": { |
| 75 | + "name": "webpage_browser", |
| 76 | + "description": "Vertex Webpage Browser Extension", |
| 77 | + "api_spec": { |
| 78 | + "open_api_gcs_uri": ( |
| 79 | + "gs://vertex-extension-public/webpage_browser.yaml" |
| 80 | + ), |
| 81 | + }, |
| 82 | + "auth_config": { |
| 83 | + "auth_type": "GOOGLE_SERVICE_ACCOUNT_AUTH", |
| 84 | + "google_service_account_config": {}, |
| 85 | + }, |
| 86 | + }, |
| 87 | + }, |
71 | 88 | } |
72 | 89 |
|
73 | 90 |
|
@@ -243,7 +260,8 @@ def from_hub( |
243 | 260 | Args: |
244 | 261 | name (str): |
245 | 262 | Required. The name of the extension in the hub to be created. |
246 | | - Supported values are "code_interpreter" and "vertex_ai_search". |
| 263 | + Supported values are "code_interpreter", "vertex_ai_search" and |
| 264 | + "webpage_browser". |
247 | 265 | runtime_config (Union[dict[str, Any], RuntimeConfig]): |
248 | 266 | Optional. Runtime config controlling the runtime behavior of |
249 | 267 | the Extension. Defaults to None. |
@@ -286,6 +304,8 @@ def from_hub( |
286 | 304 | "vertex_ai_search_runtime_config is required for " |
287 | 305 | "vertex_ai_search extension" |
288 | 306 | ) |
| 307 | + elif name == "webpage_browser": |
| 308 | + pass |
289 | 309 | else: |
290 | 310 | raise ValueError(f"Unsupported 1P extension name: {name}") |
291 | 311 | extension_info = _VERTEX_EXTENSION_HUB[name] |
|
0 commit comments