A2a Messages Parts logo

A2a Messages Parts

Organization
OrcaQubits
a2a-messages-parts

Implement A2A messages and parts — TextPart, FilePart, DataPart, message roles, metadata, and content negotiation. Use when building message construction, parsing, or content type handling in A2A agents.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill namea2a-messages-parts
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 Messages Parts 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-messages-parts
  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-messages-parts .claude/skills/a2a-messages-parts
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable A2a Messages Parts 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 Messages Parts 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 Messages Parts 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 Messages and Parts

Before writing code

Fetch live docs:

  1. Fetch https://a2a-protocol.org/latest/specification/ for the Message and Part schemas
  2. Web-search site:github.com a2aproject A2A message parts TextPart FilePart DataPart for schema details
  3. Web-search site:github.com a2aproject a2a-samples message for message construction examples
  4. Fetch SDK docs for message builder classes and part types

Conceptual Architecture

What Messages Are

Messages are the communication units between agents in A2A. Each message belongs to a task and contains one or more Parts that carry the actual content. Messages have roles indicating direction.

Message Structure

  • role — user (from client agent) or agent (from server agent)
  • parts — Array of Part objects (the actual content)
  • metadata — Optional key-value pairs for custom data

Three Part Types

TextPart

Plain text or markdown content.

  • kind: "text"
  • text: The text content string
  • metadata: Optional key-value pairs

Use for: Natural language instructions, responses, explanations, formatted output.

FilePart

File content, either inline or by reference.

  • kind: "file"
  • file: Object containing either:
    • bytes: Base64-encoded file content + mimeType
    • uri: URL to the file + optional mimeType
  • metadata: Optional key-value pairs

Use for: Images, documents, code files, generated files, binary data.

DataPart

Structured JSON data.

  • kind: "data"
  • data: Any valid JSON value (object, array, string, number, etc.)
  • metadata: Optional key-value pairs

Use for: Structured results, API responses, configuration, machine-readable output.

Content Negotiation

Agents declare supported MIME types in their Agent Card:

  • defaultInputModes — What the agent can receive
  • defaultOutputModes — What the agent can produce

Clients can specify preferred output modes in the request:

  • acceptedOutputModes — MIME types the client wants (in the configuration object)

If there's a mismatch, the server returns error -32005 (incompatible content types).

Message Flow in a Task

Client message (role: user)    → Server creates/continues task
Server response (role: agent)  → Client processes result
Client follow-up (role: user)  → Server continues task (multi-turn)
Server final (role: agent)     → Task reaches terminal state

Composing Rich Messages

Messages can contain multiple parts of mixed types:

json
{
  "role": "user",
  "parts": [
    { "kind": "text", "text": "Analyze this image and provide structured results" },
    { "kind": "file", "file": { "uri": "https://example.com/chart.png", "mimeType": "image/png" } }
  ]
}

Best Practices

  • Use TextPart for natural language, DataPart for structured data — don't serialize JSON into TextPart
  • Include mimeType with FileParts for proper content handling
  • Prefer URI-based FileParts over inline bytes for large files
  • Validate that message parts match the agent's declared input modes
  • Keep metadata lightweight — don't store large payloads there
  • For multi-modal interactions, combine TextParts with FileParts in the same message
  • Parse all part types when receiving messages — don't assume text-only

Fetch the specification for exact Part schemas, all fields, metadata conventions, and content type handling rules before implementing.

Frequently asked questions

What does the A2a Messages Parts AI skill do?

Implement A2A messages and parts — TextPart, FilePart, DataPart, message roles, metadata, and content negotiation. Use when building message construction, parsing, or content type handling in A2A agents.

Why use A2a Messages Parts on TypingMind?

Because you install it once and use it with any model. A2a Messages Parts 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 Messages Parts 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-messages-parts. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use A2a Messages Parts?

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 Messages Parts?

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

Is the A2a Messages Parts 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 👇