Synchronize Instances from AgentScope (#29)

This commit is contained in:
Lamont Huffman
2025-11-07 10:00:43 +08:00
committed by GitHub
parent 30d86efbb3
commit 1558fb86f9
9 changed files with 69 additions and 73 deletions

View File

@@ -21,8 +21,7 @@ from agentscope.token import TokenCounterBase, OpenAITokenCounter
_BROWSER_AGENT_DEFAULT_SYS_PROMPT = (
"You are a helpful browser automation assistant. "
"You can navigate websites, take screenshots, and interact with web pages."
"Always describe what you see and meta_planner_agent"
" your next steps clearly. "
"Always describe what you see and plan your next steps clearly. "
"When taking actions, explain what you're doing and why."
)
_BROWSER_AGENT_REASONING_PROMPT = (
@@ -30,7 +29,7 @@ _BROWSER_AGENT_REASONING_PROMPT = (
"The snapshot (and screenshot) of the current webpage is (are) given "
"below. Since you can only view the latest webpage, "
"you must promptly summarize current status, record required data, "
"and meta_planner_agent your next steps."
"and plan your next steps."
)

View File

@@ -3,12 +3,12 @@
import asyncio
import os
from agentscope.agent import UserAgent
from agentscope.formatter import DashScopeChatFormatter
from agentscope.mcp import StdIOStatefulClient
from agentscope.memory import InMemoryMemory
from agentscope.model import DashScopeChatModel
from agentscope.tool import Toolkit
from agentscope.mcp import StdIOStatefulClient
from agentscope.agent import UserAgent
from browser_agent import BrowserAgent # pylint: disable=C0411
@@ -69,7 +69,7 @@ if __name__ == "__main__":
print(
"The browser agent will use "
"playwright-mcp (https://github.com/microsoft/playwright-mcp)."
"Make sure the MCP server can be installed "
"Make sure the MCP server is can be install "
"by `npx @playwright/mcp@latest`",
)