agentscope-ai/agentscope-samples | DeepWiki
要wsl,我windows日常安装不起来
1.
解决方案
-
进入你想安装的示例目录(例如
alias):cd alias -
然后执行:
pip install -e .
说明
- 每个示例(如
alias、evotraders)都是独立的 Python 项目,各自包含pyproject.tomlpyproject.toml:1-10 。 alias示例的 README 明确要求"从项目根目录"执行pip install -e .,这里的"项目根目录"指的是alias子目录,而不是 agentscope-samples 的根目录 README_ZH.md:143-149 。
其他示例
- 若要安装
evotraders,请进入evotraders目录再执行pip install -e .pyproject.toml:1-10 。 - 类似地,其他包含
pyproject.toml的子目录(如alias/src/alias/memory_service)也需要在对应目录下安装 pyproject.toml:1-6 。
如果你希望安装整个仓库的所有依赖,请参考各示例的 requirements.txt 或逐个进入示例目录安装。
2.
apt install redis-server
3.
确保必要环境变量已导出
nano .bashrc
export DASHSCOPE_API_KEY=你的密钥
export TAVILY_API_KEY=你的密钥
4.运行
alias_agent run --mode browser --task "搜索最新论文"
(venv) root@DESKTOP-8SIB0KE:~/agentscope-samples# cd alias
(venv) root@DESKTOP-8SIB0KE:~/agentscope-samples/alias# alias_agent run --mode browser --task "搜索最新论文"
2026-02-11 22:32:13.804 | INFO | alias.server.core.database.database_manager:_create_engine:75 - Created SQLite engine
Using Docker Hub as image registry. If pulling is slow or fails, you can switch to the AgentScope official registry by running:
export RUNTIME_SANDBOX_REGISTRY=agentscope-registry.ap-southeast-1.cr.aliyuncs.com
/root/agentscope-samples/alias/venv/lib/python3.12/site-packages/agentscope_runtime/sandbox/model/container.py:7: PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.12/migration/
class ContainerModel(BaseModel):
/root/agentscope-samples/alias/venv/lib/python3.12/site-packages/agentscope_runtime/sandbox/manager/server/app.py:205: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.
Read more about it in the
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
@app.on_event("startup")
/root/agentscope-samples/alias/venv/lib/python3.12/site-packages/fastapi/applications.py:4579: DeprecationWarning:
on_event is deprecated, use lifespan event handlers instead.
Read more about it in the
[FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
return self.router.on_event(event_type)
2026-02-11 22:32:14.454 | INFO | alias.agent.mock.mock_session_service:__init__:96 - > user_id 00000000-0000-0000-0000-000000000001
> conversation_id c8d98737-e693-4f95-86b5-0d0e4b8c1305
INFO:agentscope_runtime.common.container_clients.docker_client:Image 'agentscope/runtime-sandbox-alias:latest' not found locally. Attempting to pull it...
INFO:agentscope_runtime.common.container_clients.docker_client:Attempting to pull: agentscope/runtime-sandbox-alias:latest, it might take several minutes.
WARNING:agentscope_runtime.sandbox.manager.sandbox_manager:Container 52csfqgcsowkq46dxhso6496v outdated, trying next one in pool
WARNING:agentscope_runtime.sandbox.manager.sandbox_manager:Container 4vbcp8hnlwtdrdsyy2ulu6c6v outdated, trying next one in pool
WARNING:agentscope_runtime.sandbox.manager.sandbox_manager:Container bva3o4660qn0fp1tnhcl3sas6 outdated, trying next one in pool
WARNING:agentscope_runtime.sandbox.manager.sandbox_manager:Container 6xrtdd845jk47rogr6izt4jt4 outdated, trying next one in pool
WARNING:agentscope_runtime.sandbox.manager.sandbox_manager:Container 5ei74wm9yxwyft133qrlm7ng6 outdated, trying next one in pool
2026-02-11 22:32:27.254 | DEBUG | alias.cli:run_agent_task:117 - Re-installed custom SIGINT handler after sandbox creation
2026-02-11 22:32:27.255 | INFO | alias.cli:run_agent_task:119 - Sandbox mount dir: None
2026-02-11 22:32:27.265 | INFO | alias.cli:run_agent_task:122 - Sandbox desktop URL: http://localhost:49161/vnc/vnc_lite.html?password=89bafa344c02f4501b8801c9a83c280e
No config file found
2026-02-11 22:32:29.613 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.agent.mock.mock_message_models.UserMessage'>, buffer has 1
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_close
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_resize
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_console_messages
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_handle_dialog
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_evaluate
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_file_upload
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_fill_form
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_install
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_press_key
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_type
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_navigate
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_navigate_back
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_network_requests
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_pdf_save
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_take_screenshot
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_snapshot
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_click
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_drag
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_hover
2026-02-11 22:32:29.639 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_select_option
2026-02-11 22:32:29.640 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_tabs
2026-02-11 22:32:29.640 | INFO | alias.agent.tools.alias_toolkit:__init__:55 - add browser_wait_for
2026-02-11 22:32:29.644 | INFO | alias.agent.agents.data_source.data_skill:register_skill:127 - Successfully registered skill 'database' from '/root/agentscope-samples/alias/src/alias/agent/agents/_built_in_skill/data/relational_database/SKILL.md'
2026-02-11 22:32:29.644 | INFO | alias.agent.agents.data_source.data_skill:register_skill:127 - Successfully registered skill 'csv-excel-file' from '/root/agentscope-samples/alias/src/alias/agent/agents/_built_in_skill/data/csv_excel/SKILL.md'
2026-02-11 22:32:29.645 | INFO | alias.agent.agents.data_source.data_skill:register_skill:127 - Successfully registered skill 'json-file' from '/root/agentscope-samples/alias/src/alias/agent/agents/_built_in_skill/data/json/SKILL.md'
2026-02-11 22:32:29.645 | INFO | alias.agent.agents.data_source.data_skill:register_skill:127 - Successfully registered skill 'text-file' from '/root/agentscope-samples/alias/src/alias/agent/agents/_built_in_skill/data/text/SKILL.md'
2026-02-11 22:32:29.645 | INFO | alias.agent.agents.data_source.data_skill:register_skill:127 - Successfully registered skill 'image-file' from '/root/agentscope-samples/alias/src/alias/agent/agents/_built_in_skill/data/image/SKILL.md'
2026-02-11 22:32:29.645 | INFO | alias.agent.agents.data_source.data_source:prepare_data_sources:334 - Preparing 0 data source(s)...
2026-02-11 22:32:29.645 | INFO | alias.agent.run:arun_browseruse_agent:462 - Init browser toolkit
2026-02-11 22:32:29.648 | SEND_MSG | alias.agent.mock.mock_session_service:get_messages:290 - Get all messages
2026-02-11 22:32:29.648 | INFO | alias.agent.agents.common_agent_utils._common_agent_hooks:get_user_input_to_mem_pre_reply_hook:65 - Received 1 messages
2026-02-11 22:32:37.996 | INFO | alias.agent.agents._browser_agent:_task_decomposition_and_reformat:769 - [
"在Google搜索框中输入关键词以查找最新论文",
"从搜索结果中选择最相关的学术资源链接进入",
"提取并总结最新论文的核心信息"
]
2026-02-11 22:32:40.104 | INFO | alias.agent.agents._browser_agent:_task_decomposition_and_reformat:817 - {
"DECOMPOSITION": false,
"SUFFICIENT": "na",
"REASON": "The original task '搜索最新论文' is too vague and lacks specific criteria (e.g., topic, date range, source). It cannot be meaningfully decomposed or executed as-is without clarification. The agent should directly respond that the task is incomplete or ambiguous.",
"REVISED_SUBTASKS": [
"搜索最新论文"
]
}
2026-02-11 22:32:40.104 | INFO | alias.agent.agents._browser_agent:_task_decomposition_and_reformat:853 - The formatted task is:
The original task is: 搜索最新论文
The decomposed subtasks are: ["搜索最新论文"]
use the decomposed subtasks to complete the original task.
/root/agentscope-samples/alias/venv/lib/python3.12/site-packages/agentscope/model/_dashscope_model.py:182: DeprecationWarning: 'required' is not supported by DashScope API. It will be converted to 'auto'.
warnings.warn(
browser-agent: {
"type": "tool_use",
"id": "call_19eefee7265d445896a18f",
"name": "browser_navigate",
"input": {
"url": "https://www.google.com"
}
}
2026-02-11 22:32:41.646 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolUseMessage'>, buffer has 2
system: {
"type": "tool_result",
"id": "call_19eefee7265d445896a18f",
"name": "browser_navigate",
"output": [
{
"type": "text",
"text": "### Ran Playwright code\n```js\nawait page.goto('https://www.google.com');\n```\n\n### Page state",
"meta": null
}
]
}
2026-02-11 22:32:44.105 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolResultMessage'>, buffer has 3
browser-agent: {
"type": "tool_use",
"id": "call_539ca5c4271c4208bb8387",
"name": "browser_type",
"input": {
"element": "Google search box",
"ref": "138",
"text": "latest research papers",
"submit": true,
"slowly": true
}
}
2026-02-11 22:32:45.316 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolUseMessage'>, buffer has 4
system: {
"type": "tool_result",
"id": "call_539ca5c4271c4208bb8387",
"name": "browser_type",
"output": [
{
"type": "text",
"text": "### Result\nError: Ref 138 not found in the current page snapshot. Try capturing new snapshot.",
"meta": null
}
]
}
2026-02-11 22:32:45.341 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolResultMessage'>, buffer has 5
browser-agent: {
"type": "tool_use",
"id": "call_402af23204be482eb288a2",
"name": "browser_navigate",
"input": {
"url": "https://www.google.com"
}
}
2026-02-11 22:32:46.431 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolUseMessage'>, buffer has 6
system: {
"type": "tool_result",
"id": "call_402af23204be482eb288a2",
"name": "browser_navigate",
"output": [
{
"type": "text",
"text": "### Ran Playwright code\n```js\nawait page.goto('https://www.google.com');\n```\n\n### Page state",
"meta": null
}
]
}
2026-02-11 22:32:48.735 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolResultMessage'>, buffer has 7
browser-agent: {
"type": "tool_use",
"id": "call_5a951066db2640d99b5d50",
"name": "browser_navigate",
"input": {
"url": "https://www.google.com"
}
}
2026-02-11 22:32:50.226 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolUseMessage'>, buffer has 8
system: {
"type": "tool_result",
"id": "call_5a951066db2640d99b5d50",
"name": "browser_navigate",
"output": [
{
"type": "text",
"text": "### Ran Playwright code\n```js\nawait page.goto('https://www.google.com');\n```\n\n### Page state",
"meta": null
}
]
}
2026-02-11 22:32:52.395 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolResultMessage'>, buffer has 9
browser-agent: {
"type": "tool_use",
"id": "call_4ca16fe1e26047da815d43",
"name": "browser_snapshot",
"input": {}
}
2026-02-11 22:32:53.285 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolUseMessage'>, buffer has 10
2026-02-11 22:32:54.669 | INFO | alias.agent.agents._browser_agent:_reasoning_with_observation:620 - [{'type': 'tool_use', 'id': 'call_7e2cddb965c14750aceacf', 'name': 'browser_type', 'input': {'element': '搜索框', 'ref': 'e38', 'text': '最新论文', 'submit': True}}]
system: {
"type": "tool_result",
"id": "call_7e2cddb965c14750aceacf",
"name": "browser_type",
"output": [
{
"type": "text",
"text": "### Ran Playwright code\n```js\nawait page.getByRole('combobox', { name: '搜索' }).fill('最新论文');\nawait page.getByRole('combobox', { name: '搜索' }).press('Enter');\n```\n\n### Page state",
"meta": null
}
]
}
2026-02-11 22:33:02.920 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolResultMessage'>, buffer has 11
browser-agent: {
"type": "tool_use",
"id": "call_529c7796f5e04616aaa68f",
"name": "browser_snapshot",
"input": {}
}
2026-02-11 22:33:04.504 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolUseMessage'>, buffer has 12
2026-02-11 22:33:12.954 | INFO | alias.agent.agents._browser_agent:_reasoning_with_observation:620 - [{'type': 'text', 'text': '{\n "INFORMATION": "搜索结果中提供了多个获取最新论文的来源,包括:\\n1. arXiv(https://arxiv.org/list/cs.AI/recent)------提供人工智能领域的最新论文。\\n2. 智源社区(https://hub.baai.ac.cn/papers)------聚焦AI热门论文。\\n3. 科学网(https://paper.sciencenet.cn/p-toppaper.aspx)------提供最新科研论文。\\n4. 上海人工智能实验室AI Index(https://index.shlab.org.cn)------涵盖arXiv、NeurIPS、ICML、ACL等顶会的最新研究。\\n5. OpenAI研究(https://openai.com/zh-Hant-HK/research/index/publication/)------OpenAI发布的最新研究成果。\\n6. 字节跳动Seed精选论文(https://seed.bytedance.com/zh/research)------字节跳动在AI大模型领域的最新研究进展。\\n7. arXiv每日学术速递(https://arxivdaily.com)------每日更新计算机视觉、人工智能、自然语言处理等领域的最新论文。\\n8. PubScholar(https://pubscholar.cn)------整合期刊论文、学位论文、预印本论文和专利文献。\\n9. 清华大学生命科学学院(https://life.tsinghua.edu.cn/kxyj/kycg/zxzylw1.htm)------提供生命科学领域的最新重要论文。",\n "STATUS": "REASONING_FINISHED"\n}'}]
browser-agent: {
"type": "tool_use",
"id": "call_640a564710cc4ad1965978",
"name": "browser_generate_final_response",
"input": {}
}
2026-02-11 22:33:14.352 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.ToolUseMessage'>, buffer has 13
assistant: # 搜索最新论文 - 综合报告
## 1. 任务概述
**原始任务**: 搜索最新论文
**主要目标**: 寻找获取最新学术论文的可靠来源和平台,涵盖不同学科领域,特别是人工智能及相关技术领域的最新研究成果。
## 2. 综合分析
### 主要论文获取平台
根据搜索结果,以下是获取最新论文的主要平台和资源:
#### 1. arXiv (https://arxiv.org/list/cs.AI/recent)
- **领域**: 人工智能、计算机科学等
- **特点**: 预印本平台,提供最新研究成果,无需同行评审即可发布
- **更新频率**: 每日更新
- **优势**: 覆盖广泛,更新及时,免费访问
#### 2. 智源社区 (https://hub.baai.ac.cn/papers)
- **领域**: 人工智能热门论文
- **特点**: 聚焦AI领域前沿研究,提供中文界面
- **优势**: 精选高质量论文,适合中文用户
#### 3. 科学网 (https://paper.sciencenet.cn/p-toppaper.aspx)
- **领域**: 多学科科研论文
- **特点**: 提供各学科最新科研成果
- **优势**: 覆盖自然科学、工程技术等多个领域
#### 4. 上海人工智能实验室AI Index (https://index.shlab.org.cn)
- **领域**: 人工智能
- **特点**: 整合arXiv、NeurIPS、ICML、ACL等顶级会议的最新研究
- **优势**: 专业性强,聚焦AI顶会论文
#### 5. OpenAI研究 (https://openai.com/zh-Hant-HK/research/index/publication/)
- **领域**: 人工智能
- **特点**: OpenAI官方发布的最新研究成果
- **优势**: 来源权威,研究前沿
#### 6. 字节跳动Seed精选论文 (https://seed.bytedance.com/zh/research)
- **领域**: AI大模型
- **特点**: 字节跳动在AI大模型领域的最新研究进展
- **优势**: 企业前沿研究,实践导向
#### 7. arXiv每日学术速递 (https://arxivdaily.com)
- **领域**: 计算机视觉、人工智能、自然语言处理等
- **特点**: 每日更新最新论文
- **优势**: 更新及时,分类清晰
#### 8. PubScholar (https://pubscholar.cn)
- **领域**: 多学科
- **特点**: 整合期刊论文、学位论文、预印本论文和专利文献
- **优势**: 资源全面,一站式检索
#### 9. 清华大学生命科学学院 (https://life.tsinghua.edu.cn/kxyj/kycg/zxzylw1.htm)
- **领域**: 生命科学
- **特点**: 提供生命科学领域的最新重要论文
- **优势**: 专业性强,学术质量高
### 推荐使用策略
| 使用场景 | 推荐平台 | 理由 |
|---------|----------|------|
| 追踪AI最新研究 | arXiv + 上海AI实验室AI Index | 覆盖全面,更新及时,专业性强 |
| 中文用户需求 | 智源社区 + PubScholar | 中文界面,易于理解 |
| 企业前沿研究 | OpenAI研究 + 字节跳动Seed | 获取产业界最新动态 |
| 多学科综合检索 | PubScholar + 科学网 | 资源全面,覆盖广泛 |
| 生命科学领域 | 清华大学生命科学学院 | 专业对口,学术质量高 |
## 3. 最终答案
获取最新论文的主要平台包括:arXiv(人工智能等领域)、智源社区(AI热门论文)、科学网(多学科科研论文)、上海人工智能实验室AI Index(整合顶级会议论文)、OpenAI研究(官方最新成果)、字节跳动Seed精选论文(AI大模型研究)、arXiv每日学术速递(每日更新)、PubScholar(多类型文献整合)和清华大学生命科学学院(生命科学领域)。根据不同需求选择合适的平台可有效获取最新学术研究成果。
2026-02-11 22:33:28.471 | SEND_MSG | alias.agent.mock.mock_session_service:create_message:180 - Create new message <class 'alias.server.models.message.SubResponseMessage'>, buffer has 14
2026-02-11 22:33:31.583 | INFO | alias.agent.agents._browser_agent:browser_generate_final_response:1345 - Finish status: BROWSER_AGENT_TASK_FINISHED
Reason: The task "搜索最新论文" has been successfully completed. A comprehensive report has been provided, listing and analyzing major platforms for accessing the latest academic papers across various disciplines, with a focus on AI and related fields. The report includes detailed descriptions of each platform, their features, advantages, and recommended usage scenarios, fulfilling the original request to search for sources of the latest papers.
User (Enter `exit` or `quit` to exit):
