Chuyển đến nội dung
Skillpedia
Agent37k · #7573

chat_with_agent

Skill này làm gì

Skill này cho phép một agent AI hỏi một agent chuyên biệt khác để được hỗ trợ. Skill dành cho công việc phức tạp, nơi một góc nhìn thứ hai hoặc chuyên môn của chuyên gia là hữu ích.

Khi nào nên dùng

  • ✓Khi bạn muốn có ý kiến thứ hai hoặc một đánh giá từ một agent chuyên biệt khác.
  • ✓Khi bạn yêu cầu một agent có tên cụ thể tham gia vào một tác vụ.
  • ✓Khi bạn cần tiếp tục một cuộc trò chuyện trước đó với agent khác và giữ được ngữ cảnh.

Liên kết skill

https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/chat_with_agent-en/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/agentscope-ai/QwenPaw/blob/main/src/qwenpaw/agents/skills/chat_with_agent-en/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Nhờ agent tài chính xem lại kế hoạch này trước khi tôi trình bày.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill trước hết tra cứu các agent có sẵn để không phải đoán ID. Sau đó nó bắt đầu hoặc tiếp tục một cuộc trò chuyện với agent đó, dùng ID phiên để giữ ngữ cảnh trước đó.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

  1. If the user explicitly requests a specific agent, follow that request — but still look up the agent first; do not guess the ID
  2. If you can complete the task yourself, do not call another agent
  3. When continuing a conversation, you must pass session_id
  4. By default, prefer using list_agents() and chat_with_agent(...) for foreground conversations — do not resort to other methods
  5. If the task should run in the background, use submit_to_agent(...) to submit it, then check_agent_task(...) to check the status

Usage Flow

Follow this flow strictly when using this skill:

  1. Ensure your tool list includes both list_agents() and chat_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
  1. 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
  1. 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 agent
  • session_id: (optional) if you need multiple rounds of conversation with the same agent, pass the same session_id starting from the second round to maintain context continuity
  • timeout: (optional) estimated time needed for the foreground wait, to avoid premature timeouts
  1. If the task is better suited for background execution, use the background tool path:
  • submit_to_agent(...): submit a background task — requires to_agent, text, and optionally session_id / task_timeout
    • Default execution budget is 3600 seconds (1 hour) when task_timeout is omitted
    • For work that may exceed 1 hour, pass an explicit positive task_timeout in seconds
    • Numeric strings such as "7200" are accepted
  • check_agent_task(...): check task status by task_id; returns the final result when complete
    • On timeout the task finishes as failed with an error like Task timed out after Ns (and code=timeout in the API payload)

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
Câu hỏi thường gặp

Agent có thể gọi một agent mà nó không biết không?

Không. Skill tra cứu agent trước, và đích phải rõ ràng trước khi bất kỳ lần gọi nào được thực hiện.

Có nên gọi một agent cho câu hỏi đơn giản không?

Không. Nếu agent có thể tự hoàn thành tác vụ, nó không nên kéo agent khác vào.

Skill tránh vòng lặp như thế nào?

Nó tránh gọi lại đúng agent vừa gửi tin nhắn cho mình.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
37k
Vị trí xếp hạng
#7573
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự