File tree Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Expand file tree Collapse file tree 5 files changed +13
-13
lines changed Original file line number Diff line number Diff 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 """
Original file line number Diff line number Diff line change 1414
1515from typing import List , Optional
1616
17- from camel .toolkits import FunctionTool
18-
1917from .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-
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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]
6769Shutting down...
6870============================================================================
Original file line number Diff line number Diff line change 2020from camel .toolkits import PlaywrightMCPToolkit
2121from camel .types import ModelPlatformType , ModelType
2222
23+
2324async 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+ """
You can’t perform that action at this time.
0 commit comments