chat_with_agent

Connect with another agent for review or multi-turn conversation.

34.3k|3.0k|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/agentscope-ai/QwenPaw --skill chat-with-agent-agentscope-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: chat_with_agent
Source: https://github.com/agentscope-ai/QwenPaw/tree/main/src/qwenpaw/agents/skills/chat_with_agent
Command: npx skills add https://github.com/agentscope-ai/QwenPaw --skill chat-with-agent-agentscope-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables an agent to consult, delegate tasks to, or continue a conversation with another agent so that specialized judgment, review, or multi-turn collaboration can be obtained without losing context.

Core Features & Use Cases

  • Agent discovery and selection: Use list_agents() to find the best-fit agent based on descriptions and extract its ID for addressing.
  • Foreground and background interactions: Start live help with chat_with_agent(...) for immediate replies or submit_to_agent(...) for longer background tasks and then check_agent_task(...) for status.
  • Session continuity and handoff: Preserve multi-turn context by passing session_id to continue conversations or resume prior sessions.
  • Use Case: When a user requests expert review of a technical design, list available agents, choose a reviewer agent, and start a chat_with_agent request including context and session_id to get a precise second opinion.

Quick Start

List available agents, pick the best match, and initiate a chat_by calling list_agents() then chat_with_agent(to_agent="<id>", text="[Agent <your_agent_id> requesting] Please review this and advise.", session_id="<optional_session_id>").

Frequently Asked Questions about chat_with_agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delegate a task to another agent for specialized review?

To delegate a specialized review, call list_agents() to discover an available agent, extract its ID, then use chat_with_agent() or submit_to_agent() to send the request. This approach enables obtaining specialized judgment or a second opinion without losing your existing context.

How does agent orchestration handle multi-turn session continuity?

Agent orchestration handles multi-turn session continuity by passing an optional session_id parameter to chat_with_agent(). This preserves multi-turn context, allowing you to continue conversations or resume prior sessions seamlessly across different agent interactions.

What is the difference between foreground and background agent task submission?

Foreground agent task submission uses chat_with_agent() for immediate replies and live help, while background submission uses submit_to_agent() for longer tasks. You then monitor background job progress by calling check_agent_task() to retrieve status updates.

Can I submit a long-running background job to another agent and check its status?

Yes, you can submit a long-running background job to another agent using submit_to_agent(), which allows the work to be processed asynchronously. You can then monitor the progress by calling check_agent_task() to retrieve the current task status.

When should I use agent delegation instead of handling a task directly?

You should use agent delegation when tasks require specialized judgment, a second opinion, or expert review of a technical design. It is also applicable when a user explicitly requests a specific agent or when work must be submitted and monitored as a background job.