A2a Multi Turn logo

A2a Multi Turn

Organization
OrcaQubits
a2a-multi-turn

Implement A2A multi-turn conversations — input-required state handling, context preservation, iterative refinement, and human-in-the-loop patterns. Use when building agents that need back-and-forth interaction.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill namea2a-multi-turn
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the A2a Multi Turn AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/a2a-multi-agent/skills/a2a-multi-turn
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/a2a-multi-agent/skills/a2a-multi-turn .claude/skills/a2a-multi-turn
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable A2a Multi Turn in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads A2a Multi Turn on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so A2a Multi Turn is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

A2A Multi-Turn Conversations

Before writing code

Fetch live docs:

  1. Fetch https://a2a-protocol.org/latest/specification/ for multi-turn and input-required handling
  2. Web-search site:github.com a2aproject A2A multi-turn input-required for multi-turn protocol details
  3. Web-search site:github.com a2aproject a2a-samples multi-turn for conversation examples
  4. Fetch SDK docs for multi-turn task handling patterns

Conceptual Architecture

What Multi-Turn Means in A2A

Multi-turn conversations allow agents to have iterative exchanges within a single task. The server agent can request more input from the client, creating a back-and-forth dialogue before reaching a final result.

The input-required State

The key mechanism for multi-turn is the input-required task state:

Client sends message → Task created (submitted)
Server processes → working
Server needs more info → input-required (with a message explaining what's needed)
Client sends follow-up → working (task continues with same taskId)
Server completes → completed

How It Works

  1. Initial request: Client sends message/send or message/stream without taskId
  2. Server processes: May transition to input-required if it needs clarification
  3. Server response: Returns the task with input-required state and a message explaining what's needed
  4. Client responds: Sends another message/send with the same taskId and the requested information
  5. Server continues: Resumes processing with the additional context
  6. Repeat or complete: May request more input or reach a terminal state

Context Preservation

Within a multi-turn task:

  • All messages are associated with the same taskId
  • The server maintains the full conversation history
  • Each new message from the client adds to the context
  • The server can reference previous messages when processing

Patterns

Clarification Loop

Agent asks for clarification when the request is ambiguous:

User: "Book a flight"
Agent: (input-required) "Where are you flying from and to? What dates?"
User: "NYC to London, March 15-22"
Agent: (input-required) "I found 3 options. Which do you prefer? [options]"
User: "Option 2"
Agent: (completed) "Booked! Confirmation #ABC123"
Progressive Refinement

Agent produces intermediate results and asks for feedback:

User: "Write a blog post about AI"
Agent: (input-required) "Here's an outline. Should I proceed? [outline]"
User: "Looks good, but add a section on safety"
Agent: (completed) "Here's the final post. [content]"
Human-in-the-Loop

Agent defers to a human for decisions it can't make:

User: "Process this insurance claim"
Agent: (input-required) "This claim requires manager approval for amounts over $10,000. Please confirm."
User: "Approved"
Agent: (completed) "Claim processed and approved."
Data Collection

Agent collects required information step by step:

User: "Set up my account"
Agent: (input-required) "What's your email address?"
User: "user@example.com"
Agent: (input-required) "What subscription plan? [Basic/Pro/Enterprise]"
User: "Pro"
Agent: (completed) "Account created with Pro plan."

Server Implementation

The server must:

  • Maintain task state across multiple requests
  • Store conversation history for context
  • Return clear messages when requesting input
  • Handle both new tasks and task continuations
  • Validate that continued tasks exist and are in the right state

Client Implementation

The client must:

  • Check response task state after each call
  • Detect input-required and present the agent's message to the user (or auto-respond)
  • Send follow-up messages with the same taskId
  • Handle the possibility of multiple rounds
  • Know when to give up (max turns, timeout)

Best Practices

  • Include clear, specific messages when entering input-required — the client needs to know what to provide
  • Set maximum turn limits to prevent infinite loops
  • Preserve full context across turns — don't lose earlier parts of the conversation
  • Use DataPart for structured input requests (e.g., forms, multiple-choice)
  • Consider timeouts for tasks waiting in input-required state
  • Log all turns for debugging multi-turn flows
  • Handle the case where the client never responds (timeout → canceled or failed)

Fetch the specification for exact multi-turn handling rules, message continuation semantics, and state transition constraints before implementing.

Frequently asked questions

What does the A2a Multi Turn AI skill do?

Implement A2A multi-turn conversations — input-required state handling, context preservation, iterative refinement, and human-in-the-loop patterns. Use when building agents that need back-and-forth interaction.

Why use A2a Multi Turn on TypingMind?

Because you install it once and use it with any model. A2a Multi Turn is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install A2a Multi Turn in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/a2a-multi-agent/skills/a2a-multi-turn. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use A2a Multi Turn?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with A2a Multi Turn?

As many as you like. As long as a model supports skills, you can use A2a Multi Turn with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the A2a Multi Turn AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇