Skip to content

🤖🤝🤖AI agent orchestration patterns with Semantic Kernel and AutoGen. 💸Investment advisor scenario.

Notifications You must be signed in to change notification settings

kimtth/agent-ochestration-sk-autogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Agent Orchestration

🤖🤝🤖 AI agent orchestration patterns using Semantic Kernel and AutoGen.

The user scenario supports investment decisions by agents to analyze data using each orchestration pattern.

Usage

poetry install
  • Semantic Kernel examples in semantic_kernel/:
    • sk_concurrent.py, sk_sequential.py, sk_groupchat.py, sk_handoff.py, sk_magnetic.py
  • AutoGen examples in autogen/:
    • ag_concurrent.py, ag_sequential.py, ag_groupchat.py, ag_handoff.py

🤝 Orchestration patterns

Orchestrations Description
⚡ Concurrent Useful for tasks that will benefit from independent analysis from multiple agents.
1️⃣ Sequential Useful for tasks that require a well-defined step-by-step approach.
🤝 Handoff Useful for tasks that are dynamic in nature and don't have a well-defined step-by-step approach.
💬 GroupChat Useful for tasks that will benefit from inputs from multiple agents and a highly configurable conversation flow.
🔮 Magentic GroupChat-like with a planner-based manager. Inspired by Magentic One.

🛠️ Implementation Details

Scenario Mapping:

  • Concurrent: Parallel analysis by multiple independent specialists on a single investment request.
  • Sequential: Deterministic investment pipeline (data collection → fundamental analysis → report generation).
  • GroupChat: Investment committee simulation where a moderator and specialist members collaborate in a structured conversation.
  • Handoff: Investment query triage, routing client requests to an equity specialist or to a human advisor based on content.
  • Magentic: Planner generates a structured task plan, orchestrator dispatches tasks to specialists, then synthesizes the final recommendation.

👥 Agent List by Pattern

  • Concurrent: FundamentalAnalyst, TechnicalAnalyst, SentimentAnalyst
  • Sequential: DataCollector, FundamentalAnalyst, ReportGenerator
  • GroupChat: Moderator, FundamentalAnalyst, RiskManager
  • Handoff : TriageAdvisor, EquitySpecialist
  • Magentic: Planner, Orchestrator

📚 Learn More

  1. AI agent orchestration patterns🏆
  2. Semantic Kernel Documentation
  3. Autogen Documentation
  4. LlamaIndex Agentic Workflows
  5. Official examples
    • Autogen: python/docs/src/user-guide/core-user-guide/design-patterns
    • Semantic Kernel: python/samples/getting_started_with_agents/multi_agent_orchestration

About

🤖🤝🤖AI agent orchestration patterns with Semantic Kernel and AutoGen. 💸Investment advisor scenario.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published