Skip to content

Commit 1ebe2fa

Browse files
author
camel-docs-bot
committed
Auto-update documentation after merge [skip ci]
1 parent 9859f66 commit 1ebe2fa

File tree

3 files changed

+43
-17
lines changed

3 files changed

+43
-17
lines changed

docs/mintlify/reference/camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ This wrapper allows users to choose between:
2121
- **headless** (bool): Whether to run browser in headless mode. Defaults to True.
2222
- **user_data_dir** (Optional[str]): Directory for user data persistence. Defaults to None.
2323
- **stealth** (bool): Whether to enable stealth mode. Defaults to False.
24-
- **web_agent_model** (Optional[BaseModelBackend]): Model for web agent operations. Defaults to None.
2524
- **cache_dir** (str): Directory for caching. Defaults to "tmp/". (default: `"tmp/"`)
2625
- **enabled_tools** (Optional[List[str]]): List of enabled tools. Defaults to None.
2726
- **browser_log_to_file** (bool): Whether to log browser actions to file. Defaults to False.
@@ -57,7 +56,6 @@ Create a HybridBrowserToolkit instance with the specified mode.
5756
- **headless** (bool): Whether to run browser in headless mode. Defaults to True.
5857
- **user_data_dir** (Optional[str]): Directory for user data persistence. Defaults to None.
5958
- **stealth** (bool): Whether to enable stealth mode. Defaults to False.
60-
- **web_agent_model** (Optional[BaseModelBackend]): Model for web agent operations. Defaults to None.
6159
- **cache_dir** (str): Directory for caching. Defaults to "tmp/". (default: `"tmp/"`)
6260
- **enabled_tools** (Optional[List[str]]): List of enabled tools. Defaults to None.
6361
- **browser_log_to_file** (bool): Whether to log browser actions to file. Defaults to False.

docs/mintlify/reference/camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.mdx

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts"></a>
22

3+
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.SheetCell"></a>
4+
5+
## SheetCell
6+
7+
```python
8+
class SheetCell(TypedDict):
9+
```
10+
11+
Type definition for a sheet cell input.
12+
313
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.HybridBrowserToolkit"></a>
414

515
## HybridBrowserToolkit
@@ -29,7 +39,6 @@ Initialize the HybridBrowserToolkit.
2939
- **headless** (bool): Whether to run browser in headless mode. Defaults to True.
3040
- **user_data_dir** (Optional[str]): Directory for user data persistence. Defaults to None.
3141
- **stealth** (bool): Whether to enable stealth mode. Defaults to False.
32-
- **web_agent_model** (Optional[BaseModelBackend]): Model for web agent operations. Defaults to None.
3342
- **cache_dir** (str): Directory for caching. Defaults to "tmp/". (default: `"tmp/"`)
3443
- **enabled_tools** (Optional[List[str]]): List of enabled tools. Defaults to None.
3544
- **browser_log_to_file** (bool): Whether to log browser actions to file. Defaults to False.
@@ -59,35 +68,37 @@ def __del__(self):
5968

6069
Cleanup browser resources on garbage collection.
6170

62-
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.HybridBrowserToolkit.web_agent_model"></a>
71+
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.HybridBrowserToolkit.cache_dir"></a>
6372

64-
### web_agent_model
73+
### cache_dir
6574

6675
```python
67-
def web_agent_model(self):
76+
def cache_dir(self):
6877
```
6978

70-
Get the web agent model.
79+
Get the cache directory.
7180

72-
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.HybridBrowserToolkit.web_agent_model"></a>
81+
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.HybridBrowserToolkit._trim_sheet_content"></a>
7382

74-
### web_agent_model
83+
### _trim_sheet_content
7584

7685
```python
77-
def web_agent_model(self, value: Optional[BaseModelBackend]):
86+
def _trim_sheet_content(self, content: str):
7887
```
7988

80-
Set the web agent model.
89+
Trim sheet content and add row/column labels.
8190

82-
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.HybridBrowserToolkit.cache_dir"></a>
91+
Remove all empty rows and columns, then add:
92+
- Column headers: A, B, C, D...
93+
- Row numbers: 0, 1, 2, 3...
8394

84-
### cache_dir
95+
**Parameters:**
8596

86-
```python
87-
def cache_dir(self):
88-
```
97+
- **content** (str): Raw sheet content with tabs and newlines.
8998

90-
Get the cache directory.
99+
**Returns:**
100+
101+
str: Trimmed content with row/column labels.
91102

92103
<a id="camel.toolkits.hybrid_browser_toolkit.hybrid_browser_toolkit_ts.HybridBrowserToolkit.clone_for_new_session"></a>
93104

docs/mintlify/reference/camel.toolkits.hybrid_browser_toolkit.ws_wrapper.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ def action_logger(func):
1818

1919
Decorator to add logging to action methods.
2020

21+
Skips logging if already inside a high-level action to avoid
22+
logging internal calls.
23+
24+
<a id="camel.toolkits.hybrid_browser_toolkit.ws_wrapper.high_level_action"></a>
25+
26+
## high_level_action
27+
28+
```python
29+
def high_level_action(func):
30+
```
31+
32+
Decorator for high-level actions that should suppress low-level logging.
33+
34+
When a function is decorated with this, all low-level action_logger
35+
decorated functions called within it will skip logging. This decorator
36+
itself will log the high-level action.
37+
2138
<a id="camel.toolkits.hybrid_browser_toolkit.ws_wrapper.WebSocketBrowserWrapper"></a>
2239

2340
## WebSocketBrowserWrapper

0 commit comments

Comments
 (0)