Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

agent-communication-protocol

БесплатноБез исполняемых скриптовНе проверен

Open protocol for AI agent interoperability enabling standardized communication between agents, applications, and humans across different frameworks

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Agent Communication Protocol (ACP)

ACP is an open protocol for agent interoperability that solves the growing challenge of connecting AI agents, applications, and humans. It enables standardized communication across different frameworks and infrastructures.

Key Features

  • REST-Based Design - Straightforward HTTP endpoints (not JSON-RPC)
  • Multi-Modal - Supports text, images, audio, video, and any MIME type
  • Async-First - Built primarily for asynchronous communication with sync support
  • Streaming - Real-time Server-Sent Events (SSE) for incremental updates
  • Stateful/Stateless - Sessions for maintaining state across interactions
  • Offline Discovery - Agents remain discoverable through embedded metadata
  • Framework Agnostic - Works with BeeAI, LangGraph, CrewAI, LlamaIndex, and more

Installation

# Create new project with uv
uv init --python '>=3.11' my_acp_project
cd my_acp_project

# Add ACP SDK
uv add acp-sdk

# Or with pip
pip install acp-sdk

Quick Start: Creating an Agent

Basic Echo Agent

import asyncio
from collections.abc import AsyncGenerator

from acp_sdk.models import Message
from acp_sdk.server import Context, RunYield, RunYieldResume, Server

server = Server()

@server.agent()
async def echo(
    input: list[Message], context: Context
) -> AsyncGenerator[RunYield, RunYieldResume]:
    """Echoes everything"""
    for message in input:
        await asyncio.sleep(0.5)
        yield {"thought": "I should echo everything"}
        await asyncio.sleep(0.5)
        yield message

server.run()

Run with:

uv run agent.py

Server starts at http://localhost:8000.

Agent with Metadata

@server.agent(
    name="data-analyzer",
    description="Analyzes datasets and generates insights"
)
async def DataAnalyzerAgent(
    input: list[Message], context: Context
) -> AsyncGenerator[RunYield, RunYieldResume]:
    # Implementation
    yield str(response.object)

Agent Manifest

The Agent Manifest describes agent properties for discovery and interoperability.

Required Fields

Field Description Example
name Unique RFC 1123 DNS label (1-63 chars) "chat"
description Human-readable summary "Conversational agent with memory"
input_content_types Supported input MIME types ["text/plain", "application/json"]
output_content_types Supported output MIME types ["text/plain", "*/*"]

Optional Metadata

@server.agent(
    name="my-agent",
    description="My custom agent",
    metadata={
        "license": "Apache-2.0",
        "programming_language": "python",
        "framework": "beeai",
        "domains": ["finance", "analytics"],
        "capabilities": [
            {"name": "analysis", "description": "Data analysis"}
        ],
        "recommended_models": ["ollama:llama3.1", "openai:gpt-4o"],
        "author": {"name": "Developer", "email": "[email protected]"}
    }
)

Message Structure

Messages are the fundamental communication units consisting of ordered parts.

Message Roles

  • user - User-originated messages
  • agent - Generic agent communications
  • agent/{name} - Specific agent (e.g., agent/image-analyzer)

Message Parts

Attribute Required Details
content_type Yes MIME type (e.g., text/plain, image/png)
content OR content_url Yes Inline or URL-referenced data
content_encoding No "plain" (default) or "base64"
name No Makes part an Artifact
metadata No Citations, trajectories

Common MIME Types

  • text/plain - Plain text
  • application/json - Structured data
  • image/png, image/jpeg - Images
  • application/pdf - Documents
  • */* - Any content type

REST API Endpoints

Discovery

# List all agents
curl http://localhost:8000/agents

# Get specific agent manifest
curl http://localhost:8000/agents/{name}

Run Management

Method Endpoint Purpose
POST /runs Create and start new run
GET /runs/{run_id} Get run status
POST /runs/{run_id} Resume awaiting run
POST /runs/{run_id}/cancel Cancel run
GET /runs/{run_id}/events List run events

Execution Modes

Synchronous - Blocks until completion:

curl -X POST http://localhost:8000/runs \
  -H "Content-Type: application/json" \
  -d '{
    "agent_name": "echo",
    "input": [{"role": "user", "parts": [{"content_type": "text/plain", "content": "Hello"}]}],
    "mode": "sync"
  }'

Asynchronous - Returns run_id for polling:

curl -X POST http://localhost:8000/runs \
  -H "Content-Type: application/json" \
  -d '{"agent_name": "echo", "input": [...], "mode": "async"}'

# Check status
curl http://localhost:8000/runs/{run_id}

Streaming - Server-Sent Events:

curl -N -H
Полный SKILL.md на GitHub

Установить agent-communication-protocol в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл agent-communication-protocol?

Open protocol for AI agent interoperability enabling standardized communication between agents, applications, and humans across different frameworks

Как установить скилл agent-communication-protocol?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-communication-protocol запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить agent-communication-protocol с