Skip to content

Commit eb77da7

Browse files
authored
docs: add name title for Anchor Browser (#32512)
# description change the sidebar name to Anchor Browser from anchor_browser. # Issue Anchor Browser sidebar name looks unattractive.
1 parent 9c93439 commit eb77da7

File tree

3 files changed

+24
-21
lines changed

3 files changed

+24
-21
lines changed

docs/docs/integrations/tools/anchor_browser.ipynb

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
{
22
"cells": [
3-
{
4-
"cell_type": "raw",
5-
"id": "2ce4bdbc",
6-
"metadata": {
7-
"vscode": {
8-
"languageId": "raw"
9-
}
10-
},
11-
"source": [
12-
"---\n",
13-
"sidebar_label: anchor_browser\n",
14-
"---"
15-
]
16-
},
173
{
184
"cell_type": "markdown",
195
"id": "a6f91f20",
@@ -63,7 +49,7 @@
6349
"metadata": {},
6450
"outputs": [],
6551
"source": [
66-
"%pip install --quiet -U langchain-anchorbrowser"
52+
"%pip install --quiet -U langchain-anchorbrowser pydantic"
6753
]
6854
},
6955
{
@@ -147,16 +133,27 @@
147133
" {\"url\": \"https://docs.anchorbrowser.io\", \"width\": 1280, \"height\": 720}\n",
148134
")\n",
149135
"\n",
150-
"# Get a Screenshot for https://docs.anchorbrowser.io\n",
136+
"# Define a Pydantic model for the web task output schema\n",
137+
"from pydantic import BaseModel\n",
138+
"from typing import List\n",
139+
"\n",
140+
"\n",
141+
"class NodeCpuUsage(BaseModel):\n",
142+
" node: str\n",
143+
" cluster: str\n",
144+
" cpu_avg_percentage: float\n",
145+
"\n",
146+
"\n",
147+
"class OutputSchema(BaseModel):\n",
148+
" nodes_cpu_usage: List[NodeCpuUsage]\n",
149+
"\n",
150+
"\n",
151+
"# Run a web task to collect data from a web page\n",
151152
"anchor_advanced_web_task_tool.invoke(\n",
152153
" {\n",
153154
" \"prompt\": \"Collect the node names and their CPU average %\",\n",
154155
" \"url\": \"https://play.grafana.org/a/grafana-k8s-app/navigation/nodes?from=now-1h&to=now&refresh=1m\",\n",
155-
" \"output_schema\": {\n",
156-
" \"nodes_cpu_usage\": [\n",
157-
" {\"node\": \"string\", \"cluster\": \"string\", \"cpu_avg_percentage\": \"number\"}\n",
158-
" ]\n",
159-
" },\n",
156+
" \"output_schema\": OutputSchema.model_json_schema(),\n",
160157
" }\n",
161158
")"
162159
]

docs/scripts/tool_feat_table.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@
167167
"interactions": False,
168168
"pricing": "Free trial, with flat rate plans and pre-paid credits after",
169169
},
170+
"Anchor Browser": {
171+
"link": "/docs/integrations/tools/anchor_browser",
172+
"interactions": True,
173+
"pricing": "Free trial, with flat rate plans and pre-paid credits after",
174+
},
170175
}
171176

172177
DATABASE_TOOL_FEAT_TABLE = {

libs/packages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ packages:
719719
downloads_updated_at: '2025-08-10T21:38:36.795416+00:00'
720720
- name: langchain-anchorbrowser
721721
provider_page: anchor_browser
722+
name_title: Anchor Browser
722723
path: .
723724
repo: anchorbrowser/langchain-anchorbrowser
724725
- name: toolbox-langchain

0 commit comments

Comments
 (0)