Skip to content

Commit 18537c4

Browse files
authored
chore: fix pre-commity issue in PR 3095 (#3148)
1 parent 21161bf commit 18537c4

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

camel/toolkits/origene_mcp_toolkit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def __init__(
4343
4444
Args:
4545
config_dict (Optional[Dict]): Configuration dictionary for MCP
46-
servers. If None, raises ValueError as configuration is required.
47-
(default: :obj:`None`)
46+
servers. If None, raises ValueError as configuration is
47+
required. (default: :obj:`None`)
4848
timeout (Optional[float]): Connection timeout in seconds.
4949
(default: :obj:`None`)
5050
"""

camel/toolkits/playwright_mcp_toolkit.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
from typing import List, Optional
1616

17-
from camel.toolkits import FunctionTool
18-
1917
from .mcp_toolkit import MCPToolkit
2018

2119

@@ -61,8 +59,6 @@ def __init__(
6159
}
6260
}
6361
}
64-
62+
6563
# Initialize parent MCPToolkit with Playwright configuration
6664
super().__init__(config_dict=config_dict, timeout=timeout)
67-
68-

examples/toolkits/edgeone_pages_mcp_toolkit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ async def main():
5252

5353
"""
5454
==============================================================================
55-
I've created a Hello World page for you! The page has been deployed and is now live at:
55+
I've created a Hello World page for you! The page has been deployed and is now
56+
live at:
5657
5758
**https://mcp.edgeone.site/share/M-MXzJzHJ3mGc013OQNIM**
5859

examples/toolkits/notion_mcp_tookit.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ async def main():
5858
[681981] [Local→Remote] notifications/initialized
5959
[681981] [Local→Remote] tools/list
6060
[681981] [Remote→Local] 1
61-
/home/lyz/Camel/camel/camel/memories/blocks/chat_history_block.py:73: UserWarning: The `ChatHistoryMemory` is empty.
61+
/home/lyz/Camel/camel/camel/memories/blocks/chat_history_block.py:73:
62+
UserWarning: The `ChatHistoryMemory` is empty.
6263
warnings.warn("The `ChatHistoryMemory` is empty.")
6364
[681981] [Local→Remote] tools/call
6465
[681981] [Remote→Local] 2
65-
I have created the page "Camel Introduction" for you. You can view it here: https://www.notion.so/2626be7b2793819aaf2cfe686a554bdd
66+
I have created the page "Camel Introduction" for you. You can view it here:
67+
https://www.notion.so/2626be7b2793819aaf2cfe686a554bdd
6668
[681981]
6769
Shutting down...
6870
============================================================================

examples/toolkits/playwright_mcp_toolkit.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from camel.toolkits import PlaywrightMCPToolkit
2121
from camel.types import ModelPlatformType, ModelType
2222

23+
2324
async def main():
2425
# Create PlaywrightMCPToolkit (now inherits directly from MCPToolkit)
2526
playwright_mcp_toolkit = PlaywrightMCPToolkit()
@@ -41,9 +42,9 @@ class AgentResponse(BaseModel):
4142
model=model,
4243
tools=playwright_mcp_toolkit.get_tools(), # Inherited method
4344
)
44-
45+
4546
response = await chat_agent.astep(
46-
"Navigate to https://github.com/camel-ai/camel and get the star count.",
47+
"Navigate to https://github.com/camel-ai/camel and get the star count",
4748
response_format=AgentResponse,
4849
)
4950

@@ -65,4 +66,4 @@ class AgentResponse(BaseModel):
6566
"stars": 14040
6667
}
6768
==============================================================================
68-
"""
69+
"""

0 commit comments

Comments
 (0)