Build and debug Python applications using AgentScope 2.x. Consult this skill for AgentScope APIs, agent tools, multi-agent orchestration, and agent service deployment.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
当需要其他 agent 的专长、上下文或协作支持,或用户明确要求调用其他 agent 时,使用本 skill。先查询可用 agents,再用 qwenpaw agents chat 进行双向沟通。
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
当你需要其他 agent 的专业能力、上下文、workspace 内容或协作支持时,使用本 skill。
如果用户明确要求某个 agent 参与/协助/回答,也应使用本 skill。
--session-idqwenpaw agents list
qwenpaw agents chat \
--from-agent <your_agent> \
--to-agent <target_agent> \
--text "[Agent <your_agent> requesting] ..."
复杂任务包括:数据分析、报告生成、批量处理、外部API调用等。
qwenpaw agents chat --background \
--from-agent <your_agent> \
--to-agent <target_agent> \
--text "[Agent <your_agent> requesting] ..."
输出:
[TASK_ID: xxx-xxx-xxx]
[SESSION: ...]
qwenpaw agents chat --background --task-id <task_id>
重要:不要频繁查询!提交任务后:
qwenpaw agents chat \
--from-agent <your_agent> \
--to-agent <target_agent> \
--session-id "<session_id>" \
--text "[Agent <your_agent> requesting] ..."
重点:
--session-id = 新对话--session-id = 续聊(保留上下文)--background,提交后记录 task_id| 任务类型 | 使用模式 | 命令 |
|---|---|---|
| 简单快速查询 | 实时模式 | qwenpaw agents chat |
| 复杂任务(数据分析、批量处理等) | 后台模式 | qwenpaw agents chat --background |
复杂任务示例:
判断标准:如果不确定任务会花多长时间,或者任务很复杂,优先使用后台模式。
1. 判断是否需要其他 agent,或用户是否明确要求调用
2. qwenpaw agents list
3. qwenpaw agents chat 发起对话
4. 从输出中记录 [SESSION: ...]
5. 后续需要上下文时带上 --session-id
1. 判断任务是否复杂(数据分析、报告生成等)
2. qwenpaw agents list
3. qwenpaw agents chat --background 提交任务
4. 从输出中记录 [TASK_ID: ...]
5. 继续处理其他工作
6. 等待合理时间(30-60秒)后查询状态
7. 使用 --background --task-id 查询结果
qwenpaw agents chat 必须同时提供:
--from-agent--to-agent--text消息建议以以下前缀开头:
[Agent my_agent requesting] ...
首次调用会返回:
[SESSION: your_agent:to:target_agent:...]
后续续聊必须复制这个 session_id 传入 --session-id。
qwenpaw agents list
qwenpaw agents chat \
--from-agent scheduler_bot \
--to-agent finance_bot \
--text "[Agent scheduler_bot requesting] User explicitly asked to consult finance_bot. 请回答当前待处理的财务任务。"
qwenpaw agents chat \
--from-agent scheduler_bot \
--to-agent finance_bot \
--text "[Agent scheduler_bot requesting] 今天有哪些待处理的财务任务?"
qwenpaw agents chat \
--from-agent scheduler_bot \
--to-agent finance_bot \
--session-id "scheduler_bot:to:finance_bot:1710912345:a1b2c3d4" \
--text "[Agent scheduler_bot requesting] 展开第2项"
不要猜 agent ID,先执行:
qwenpaw agents list
这会创建新对话,丢失上下文。
如果你刚收到 Agent B 的消息,不要再调用 Agent B。
qwenpaw chats list --agent-id <your_agent>
qwenpaw agents chat \
--from-agent <your_agent> \
--to-agent <target_agent> \
--mode stream \
--text "[Agent <your_agent> requesting] ..."
qwenpaw agents chat \
--from-agent <your_agent> \
--to-agent <target_agent> \
--json-output \
--text "[Agent <your_agent> requesting] ..."
参数:
--base-url(可选):覆盖API地址无必填参数,直接运行即可。
必填参数(实时模式):
--from-agent:发起方agent ID--to-agent:目标agent ID--text:消息内容后台任务参数(新增):
--background:后台任务模式--task-id:查询任务状态(与 --background 一起使用)可选参数:
--session-id:复用会话上下文(从之前的输出中复制)--new-session:强制创建新会话(即使传了session-id)--mode:stream(流式)或 final(完整,默认)--timeout:超时时间(秒,默认300)--json-output:输出完整JSON而非纯文本--base-url:覆盖API地址当任务是复杂任务时,使用 --background 提交到后台:
✅ 应该使用后台模式:
❌ 不需要后台模式:
qwenpaw agents chat --background \
--from-agent scheduler \
--to-agent data_analyst \
--text "[Agent scheduler requesting] 分析 /data/logs/2026-03-26.log 中的用户行为,生成详细报告"
输出:
[TASK_ID: 20802ea3-832d-4fb4-86f0-666ad79fcc80]
[SESSION: scheduler:to:data_analyst:1774516703206:ec02e542]
✅ Task submitted successfully
Check status with:
qwenpaw agents chat --background --task-id 20802ea3-...
重要:提交后不要硬等!
# 方式 1:处理其他任务后再查(推荐)
# 提交任务后,继续完成用户的其他请求
# 在适当时机查询:
qwenpaw agents chat --background \
--task-id 20802ea3-832d-4fb4-86f0-666ad79fcc80
# 方式 2:如果必须等待,使用合理间隔
sleep 30 && qwenpaw agents chat --background \
--task-id 20802ea3-832d-4fb4-86f0-666ad79fcc80
状态说明:
任务状态分为两层:
submitted → pending → running → finishedfinished 时):completed(成功)或 failed(失败)可能的输出:
[TASK_ID: 20802ea3-832d-4fb4-86f0-666ad79fcc80]
[STATUS: submitted]
📤 Task submitted, waiting to start...
💡 Don't wait - continue with other work!
Check again in a few seconds:
qwenpaw agents chat --background --task-id 20802ea3-...
[TASK_ID: 20802ea3-832d-4fb4-86f0-666ad79fcc80]
[STATUS: pending]
⏸️ Task is pending in queue...
💡 Don't wait - handle other work first!
Check again in a few seconds:
qwenpaw agents chat --background --task-id 20802ea3-...
[TASK_ID: 20802ea3-832d-4fb4-86f0-666ad79fcc80]
[STATUS: running]
⏳ Task is still running...
Started at: 1774516703
💡 Don't wait - continue with other tasks first!
Check again later (10-30s):
qwenpaw agents chat --background --task-id 20802ea3-...
[TASK_ID: 20802ea3-832d-4fb4-86f0-666ad79fcc80]
[STATUS: finished]
✅ Task completed
(任务结果内容...)
[TASK_ID: 20802ea3-832d-4fb4-86f0-666ad79fcc80]
[STATUS: finished]
❌ Task failed
Error: (错误信息...)
不要频繁查询! 提交任务后应该:
| 任务类型 | 建议首次查询 | 后续间隔 | 等待期间做什么 |
|---|---|---|---|
| 简单分析 | 10 秒后 | 5-10 秒 | 处理其他用户请求 |
| 复杂分析 | 30 秒后 | 10-20 秒 | 完成当前对话其他部分 |
| 批量处理 | 1 分钟后 | 20-30 秒 | 执行其他独立任务 |
| 超大任务 | 2 分钟后 | 30-60 秒 | 继续用户的其他工作 |
方式 1:处理其他任务后再查(推荐)
# 1. 提交任务,记录 task_id
qwenpaw agents chat --background ...
# 返回 task_id
# 2. 继续处理用户的其他请求或任务
# (比如回答其他问题、执行其他操作)
# 3. 在适当时机查询结果
# (比如处理完当前任务后,或用户询问进度时)
qwenpaw agents chat --background --task-id <id>
方式 2:定时轮询(如果必须等待)
# 递增间隔,先快后慢
sleep 10 && qwenpaw agents chat --background --task-id <id>
sleep 20 && qwenpaw agents chat --background --task-id <id>
sleep 30 && qwenpaw agents chat --background --task-id <id>
# 错误:查询太频繁
while true; do
qwenpaw agents chat --background --task-id <id>
sleep 1 # 太频繁了!
done
随时使用 -h 查看详细帮助:
qwenpaw agents -h
qwenpaw agents list -h
qwenpaw agents chat -h
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Build and debug Python applications using AgentScope 2.x. Consult this skill for AgentScope APIs, agent tools, multi-agent orchestration, and agent service deployment.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use this skill when the user explicitly wants to connect to a running Chrome browser, scan local CDP ports, specify a `cdp_port`, or share a single browser across multiple agents/tools. By default, browser_use already launches the browser using managed CDP; if the user does not want to expose browser history, cookies, or other sensitive data, recommend using `private_mode=true` instead.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
当用户明确希望连接到已运行的 Chrome 浏览器、扫描本地 CDP 端口、显式指定 `cdp_port`,或让多个 agent / 工具共享同一个浏览器时,使用本 skill。当前 browser_use 默认已使用 managed CDP 启动浏览器;如果用户不希望暴露浏览器历史、Cookies 等敏感信息,推荐改用 `private_mode=true` 的隐私模式。
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
当用户需要控制 browser_use 的浏览器启动方式时,使用本 skill。当前 browser_use 默认使用 managed CDP 启动本地 Chrome/Chromium;`headed` 控制是否显示窗口,`private_mode` 控制是否禁用 CDP、改走 Playwright,`browser_args` 传入额外的 Chromium 启动参数,`executable_path` 指定自定义浏览器可执行文件路径。
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use this skill when the user needs to control the browser launch mode for browser_use. By default, browser_use launches the local Chrome/Chromium using managed CDP; `headed` controls whether the window is visible, and `private_mode` controls whether CDP is disabled in favor of Playwright.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Use this skill to proactively send a one-way message to a user/session/channel, usually only when the user explicitly asks to send to a channel/session or when proactive notification is needed. First query sessions with qwenpaw chats list, then push with qwenpaw channels send.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.