9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
5.7 KiB
5.7 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-a2a | A2A (Agent-to-Agent Protocol) | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
A2A (Agent-to-Agent Protocol)
매 한 줄
"매 agent 가 다른 agent 와 모델/벤더 차이 없이 task 를 위임/협상/결과 교환 하기 위한 open protocol." Google 이 2025 봄 announce, 2025-06 Linux Foundation 으로 stewardship 이전, 2026 현재 Anthropic / Microsoft / Salesforce 등 50+ 기업 adoption. 매 MCP (tool/data) 와 directly complementary — 매 A2A 는 agent ↔ agent, MCP 는 agent ↔ tool.
매 핵심
매 5 design principles
- Agentic by default: 매 agent autonomy 를 가정 (매 mere RPC 가 아님).
- Modality-agnostic: 매 text / audio / video / structured data 모두 transport.
- Built on web standards: HTTP + JSON-RPC 2.0 + SSE / WebSocket — 매 separate runtime 불필요.
- Secure by design: OAuth 2.1, 매 mTLS, 매 capability scoping.
- Long-running task aware: 매 minutes ~ days 의 async task — 매 polling + push-notification 모두 지원.
매 핵심 primitives
- AgentCard (
/.well-known/agent.json): 매 agent 의 capability advertisement. - Task: 매 unit of work —
submitted → working → input-required → completed/failed/canceled. - Message + Artifact: 매 conversation chunk + 매 final output.
- Streaming: SSE 로 매 partial token / 매 status update 전송.
매 응용
- Cross-vendor agent orchestration (Claude → Gemini → in-house).
- Specialist agent dispatch (legal, finance, code-review).
- Marketplace 의 agent invocation.
💻 패턴
1) AgentCard 발행
{
"name": "claude-research-agent",
"version": "1.2.0",
"url": "https://api.example.com/a2a",
"capabilities": {
"streaming": true,
"pushNotifications": true,
"stateTransitionHistory": true
},
"skills": [
{"id": "deep-research", "description": "Multi-source web research", "inputModes": ["text"], "outputModes": ["text", "file"]}
],
"auth": {"type": "oauth2.1", "scopes": ["task:submit"]}
}
2) Task 제출 (client agent)
import httpx, uuid
resp = httpx.post(
"https://api.example.com/a2a/tasks/send",
json={
"jsonrpc": "2.0", "id": "1", "method": "tasks/send",
"params": {
"id": str(uuid.uuid4()),
"message": {
"role": "user",
"parts": [{"type": "text", "text": "Summarize Q4 earnings of NVDA."}]
}
}
},
headers={"Authorization": f"Bearer {token}"}
)
task = resp.json()["result"]
3) SSE streaming 으로 partial result 수신
with httpx.stream("POST", url + "/tasks/sendSubscribe", json=req) as s:
for line in s.iter_lines():
if line.startswith("data:"):
event = json.loads(line[5:])
if event["type"] == "status": ...
elif event["type"] == "artifact": print(event["artifact"]["parts"])
4) Push notification 등록 (long task)
httpx.post(url + "/tasks/pushNotification/set", json={
"taskId": task["id"],
"pushNotificationConfig": {
"url": "https://my-app.com/a2a/webhook",
"token": webhook_secret
}
})
5) Server-side handler (FastAPI 예)
from fastapi import FastAPI
app = FastAPI()
@app.post("/a2a/tasks/send")
async def send(req: dict):
task_id = req["params"]["id"]
# 매 background worker 에게 dispatch
await queue.put((task_id, req["params"]["message"]))
return {"jsonrpc":"2.0","id":req["id"],"result":{"id":task_id,"status":{"state":"submitted"}}}
6) Multi-agent orchestration (A2A + MCP combo)
# Orchestrator agent: A2A 로 specialist 호출, MCP 로 tool 사용
research = await a2a_call("research-agent", query)
draft = await claude.messages.create( # MCP tools attached
model="claude-opus-4-7",
tools=mcp_tools,
messages=[{"role":"user","content": f"Draft based on: {research}"}]
)
7) Capability negotiation
card = httpx.get(agent_url + "/.well-known/agent.json").json()
if not card["capabilities"]["streaming"]:
# 매 polling fallback
use_polling = True
매 결정 기준
| 상황 | Approach |
|---|---|
| 매 agent ↔ tool / data | MCP |
| 매 agent ↔ agent (cross-vendor) | A2A |
| 매 same-process agent | Direct call (no protocol) |
| 매 long-running (>30s) | A2A + push notification |
| 매 strict typing 필요 | A2A + JSON Schema in skill spec |
기본값: 매 cross-org / cross-vendor agent collaboration 에 매 A2A, 매 internal tool wiring 은 매 MCP.
🔗 Graph
- Adjacent: OAuth 2.1
🤖 LLM 활용
언제: 매 multi-vendor agent stack 의 interop, 매 long-running specialist agent 의 호출. 언제 X: 매 single-process tool 호출 (매 MCP 를 사용), 매 latency-critical (<50ms) 의 inner loop.
❌ 안티패턴
- A2A 로 tool 호출: 매 MCP scope. 매 protocol 혼동.
- No AgentCard: 매 capability 알려주지 않으면 매 client 가 fallback 못함.
- Sync polling on long task: 매 push notification 또는 SSE 필수.
- Token leakage: 매 webhook URL 의 token 검증 누락.
🧪 검증 / 중복
- Verified (a2aproject.org spec v0.3, Linux Foundation A2A Project 2025-06-23, Anthropic A2A blog 2025).
- 신뢰도 A.
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — A2A protocol primitives + MCP comparison + 7 working patterns |