chat_with_agent
它能做什么
这项技能让一个 AI 智能体向另一个专业智能体寻求帮助。适用于需要第二种观点或专家知识的复杂工作。
适用场景
- ✓当你想从另一个专业智能体获得第二意见或审查的时候。
- ✓当你要求某个指定的智能体参与任务的时候。
- ✓当你需要与另一个智能体继续之前的对话,并保留其上下文的时候。
技能链接
https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/chat_with_agent-en/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“在我展示之前,请让金融智能体审查一下这份计划。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先查找可用的智能体,而不是猜测 ID。然后它会与该智能体开始或继续对话,并使用会话 ID 保留之前的上下文。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Chat with Agent
When to Use
Use this skill when you need to ask another agent a question, seek help, request a plan, request a review, request decision support, or engage in any form of communication. If the user explicitly asks to talk to a specific agent, you should also use this skill.
Should Use
- You need another agent's expertise, judgment, or second opinion
- You need to request a plan, review, or recommendation from an agent
- The user explicitly asks a specific agent to participate, assist, or answer
- You need to continue an existing agent session while preserving context
Should Not Use
- You can complete the task yourself and the user has not explicitly asked to involve another agent
- It is a simple Q&A that does not require a specialized agent
- The target agent is unclear — you should ask for clarification or list available agents first
- You just received a message from an agent and are about to immediately call back the same agent, which may cause a loop
Decision Rules
- If the user explicitly requests a specific agent, follow that request — but still look up the agent first; do not guess the ID
- If you can complete the task yourself, do not call another agent
- When continuing a conversation, you must pass
session_id - By default, prefer using
list_agents()andchat_with_agent(...)for foreground conversations — do not resort to other methods - If the task should run in the background, use
submit_to_agent(...)to submit it, thencheck_agent_task(...)to check the status
Usage Flow
Follow this flow strictly when using this skill:
- Ensure your tool list includes both
list_agents()andchat_with_agent(...)built-in tools
- These two tools are the foundation for communicating with other agents — do not remove or disable them
- If you do not have these tools, inform the user that you need them to talk to other agents, and ask the user to add them
- Use
list_agents()to view the currently available agents, and select one by extracting its ID
- Choose the most appropriate agent based on the user's needs and each agent's description
- If no suitable agent is found and you are not the Default Agent, use the Default Agent
- Otherwise, inform the user that no suitable agent is available, and suggest they create a new agent or adjust existing agent descriptions for better matching
- Call
chat_with_agent(...)to initiate a foreground conversation. Key parameters include:
to_agent: the target agent's ID (note: this is the ID, not the name)text: what you want to say to the target agentsession_id: (optional) if you need multiple rounds of conversation with the same agent, pass the samesession_idstarting from the second round to maintain context continuitytimeout: (optional) estimated time needed for the foreground wait, to avoid premature timeouts
- If the task is better suited for background execution, use the background tool path:
submit_to_agent(...): submit a background task — requiresto_agent,text, and optionallysession_id/task_timeout- Default execution budget is 3600 seconds (1 hour) when
task_timeoutis omitted - For work that may exceed 1 hour, pass an explicit positive
task_timeoutin seconds - Numeric strings such as
"7200"are accepted
- Default execution budget is 3600 seconds (1 hour) when
check_agent_task(...): check task status bytask_id; returns the final result when complete- On timeout the task finishes as failed with an error like
Task timed out after Ns(andcode=timeoutin the API payload)
- On timeout the task finishes as failed with an error like
Minimal Call Examples
New Conversation
list_agents()
chat_with_agent(
to_agent="<target_agent_id>",
text="[Agent <your_agent_id> requesting] I need your help determining the approach for this issue.",
)
Continuing an Existing Conversation
chat_with_agent(
to_agent="<target_agent_id>",
text="[Agent <your_agent_id> requesting] Please continue expanding on point 2 based on the previous conclusion.",
session_id="<previous_session_id>",
)
Background Submission and Status Check
submit_to_agent(
to_agent="<target_agent_id>",
text="[Agent <your_agent_id> requesting] Please complete this longer task in the background.",
task_timeout=7200,
)
check_agent_task(
task_id="<task_id>",
)
Important Notes
- Add a conversation identifier: it is recommended to start your message with:
[Agent <your_ag
常见问题
它能调用不认识的智能体吗?
不能。技能会先查找智能体,在进行任何调用之前必须明确目标。
简单的问题也应该调用智能体吗?
不应该。如果智能体自己就能完成任务,就不应该让另一个智能体参与。
它如何避免循环?
在收到某个智能体的消息后,它不会立即回调同一个智能体。
详情
作者的原始描述
Use this skill when you need to consult another agent, ask for help, or involve a specific agent the user asked for.
repo: agentscope-ai/QwenPaw
热度
- GitHub 星标
- 37k
- 排名
- #7573
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
terraform-skill
37k帮你的智能体编写、测试和审查 Terraform 或 OpenTofu 基础设施代码,涵盖模块、CI/CD、安全扫描和状态问题。
computer_use
37k当没有直接工具能完成工作时,让你的智能体通过观察屏幕、点击并检查每一步结果,来操作正在运行的 Windows 或 macOS 应用。
browser
37k通过 QwenPaw Browser SDK 让你的智能体操作真实的网页浏览器,读取页面、对页面执行操作,并在声称成功前检查结果。
channel_message
37k在找到正确的目的地之后,让你的智能体向特定的聊天频道或会话发送单向消息,例如任务完成的提醒。