スキル一覧に戻る
vuralserhat86

multi-agent-patterns

by vuralserhat86

OS for Agents: 130+ Agentic Skills, Gemini Protocols, and Autonomous Workflows. (Antigravity System)

19🍴 9📅 2026年1月23日
GitHubで見るManusで実行

SKILL.md


name: multi_agent_patterns router_kit: AIKit description: Çoklu agent mimarisi tasarımı, orchestration patterns ve agent collaboration rehberi. metadata: skillport: category: architecture tags: [agents, algorithms, artificial intelligence, automation, chatbots, cognitive services, deep learning, embeddings, frameworks, generative ai, inference, large language models, llm, machine learning, model fine-tuning, multi agent patterns, natural language processing, neural networks, nlp, openai, prompt engineering, rag, retrieval augmented generation, tools, vector databases, workflow automation] - patterns

🤖 Multi-Agent Patterns

Çoklu agent mimarisi ve orchestration rehberi.


📋 Ne Zaman Multi-Agent?

DurumSingle AgentMulti-Agent
Basit görev
Context limit aşılıyor
Farklı uzmanlıklar
Paralel işlem
Complex workflow

🏗️ Mimari Patterns

1. Orchestrator Pattern

        ┌─────────────┐
        │ Orchestrator│
        └──────┬──────┘
               │
    ┌──────────┼──────────┐
    ▼          ▼          ▼
┌───────┐  ┌───────┐  ┌───────┐
│Agent 1│  │Agent 2│  │Agent 3│
│Coder  │  │Tester │  │Reviewer│
└───────┘  └───────┘  └───────┘

Kullanım: Complex workflows, task delegation

2. Pipeline Pattern

┌───────┐    ┌───────┐    ┌───────┐
│ Parse │ -> │Process│ -> │ Output│
└───────┘    └───────┘    └───────┘

Kullanım: Sequential processing, data transformation

3. Specialist Pattern

        ┌─────────────┐
        │   Router    │
        └──────┬──────┘
               │ (task type)
    ┌──────────┼──────────┐
    ▼          ▼          ▼
┌───────┐  ┌───────┐  ┌───────┐
│  SQL  │  │  API  │  │  UI   │
│Expert │  │Expert │  │Expert │
└───────┘  └───────┘  └───────┘

Kullanım: Domain-specific expertise

4. Debate Pattern

┌───────┐         ┌───────┐
│Agent A│ <-----> │Agent B│
│(Pro)  │ debate  │(Con)  │
└───────┘         └───────┘
         \       /
          \     /
           \   /
        ┌───────┐
        │ Judge │
        └───────┘

Kullanım: Decision making, option evaluation


🔧 Implementation

Agent Definition

class Agent:
    def __init__(self, name, role, skills):
        self.name = name
        self.role = role
        self.skills = skills
    
    def process(self, task):
        # Agent logic
        pass

Orchestrator

class Orchestrator:
    def __init__(self, agents):
        self.agents = agents
    
    def route(self, task):
        # Determine which agent handles task
        agent = self.select_agent(task)
        return agent.process(task)
    
    def select_agent(self, task):
        # Routing logic
        pass

📊 Communication Patterns

PatternAçıklama
DirectAgent → Agent
BroadcastOrchestrator → All Agents
Pub/SubTopic-based messaging
Request/ResponseSync communication
Event-drivenAsync, event queue

⚠️ Best Practices

  1. Clear Roles: Her agent'ın net görevi olsun
  2. Minimal Overlap: Görev çakışması olmasın
  3. Fallback: Agent fail olursa plan B
  4. Monitoring: Her agent'ı izle
  5. Context Sharing: Gerekli bilgiyi paylaş

Multi-Agent Patterns v1.1 - Enhanced

🔄 Workflow

Kaynak: AutoGen Documentation & CrewAI

Aşama 1: Role Definition

  • Persona Design: Her agent için net bir "System Message" yaz (Sen nesin, ne yaparsın, ne yapmazsın).
  • Tools: Agent'a sadece ihtiyacı olan tool'ları ver (LLM'in halüsinasyon riskini azaltır).
  • Hierarchy: Kim kime rapor verecek? (Manager -> Worker) yoksa (Peer-to-Peer) mi?

Aşama 2: Interaction Pattern

  • Chat Topology: "Group Chat" (Herkes konuşur) vs "Nested Chats" (Alt gruplar) seçimi yap.
  • Handoffs: Görev devir teslimi için açık tetikleyiciler (Trigger phrases) belirle.
  • Human-in-the-loop: Kritik kararlar için "User Proxy Agent" veya onay mekanizması ekle.

Aşama 3: Execution & Output

  • Consolidation: Sonuçları birleştiren bir "Summarizer Agent" ata.
  • Validation: Çıktının formata uygunluğunu (JSON/Markdown) kontrol eden validator ekle.
  • Cost Control: Maksimum tur (Max Turns) ve token limitlerini ayarla.

Kontrol Noktaları

AşamaDoğrulama
1Agentlar birbirinin sözünü kesiyor mu (Turn-taking bozuk mu)?
2Sonsuz döngüye (Infinite Loop) girme riski var mı?
3Karmaşık görevler doğru alt parçalara bölündü mü?

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です