Skip to content

This is an AI agent playground to demonstrate different agent orchestration patterns and capabilities

Notifications You must be signed in to change notification settings

basheb/agentic-playground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Agent playground

This project demonstrates agentic concepts, orchestration patterns and functional scenarios using GitHub models and various open souce frameworks like Llama Index, Semantic Kernel, LangChain and AutoGen.

The objective is to try out and learn about the following capabilities of intelligent models:

  • Leveraging Tools for model interaction with external systems
  • Implementing a voice agents to fill out reports via audio input
  • Using visual model to ingest and reason about images using a multimodal model
  • Giving up control over the conversation flow using a realtime voice model
  • Handing over structured data types like Knowledge Graphs and Onthologies to models

That gives you the chance to learn how to combine these capabilities by orchestrating them:

  • Implementing a ReAct pattern with a single agent to plan and execute iterative tasks
  • Forcing the model to use and think in Domain Specific Languages to interact with existing code
  • Combining different agent types to solve complex problems through defined interaction patterns
  • Tasking a reasoning model to solve complex problems on its own without orchestration
  • Building and consuming mcp servers from agents

Since there are multiple agentic frameworks and hosting runtimes these will let you see how different collaboration patterns can be implemented:

  • Planned agent interactions can be implemented with any agent framework
  • Graph based interactions between agents can be implemented with LangGraph
  • Dynamic agent interaction can be implemented with MagenticOne/AutoGen
  • Event driven agent interaction can be implemented with Llama Index or Semantic Kernel
  • Distributed agent platforms can be built with Llama deploy

What is an Agent?

agent: perceives its environment, makes decisions, takes actions autonomously in order to achieve goals, and may improve its performance with learning or acquiring knowledge

What is an agent

A simple LLM-based chatbot primarily focuses on generating responses based on predefined patterns and language models, often requiring user input to continue the conversation. In contrast, autonomous agents are designed to perform tasks independently, making decisions and taking actions without constant user input, often leveraging advanced AI techniques to achieve their goals.

Spectrum of agentic behaviour

Preparation

This project does not require azure resources and support GitHub AI models.

  1. Create a personal access token

To authenticate with the model you will need to generate a personal access token (PAT) in your GitHub settings or set up an Azure production key. GitHub Free AI Token

You can now access AI inference with your GitHub PAT. Learn more about limits based on your plan. You do not need to give any permissions to the token.

To use the code snippets below, create an environment variable to set your token as the key for the client code.

If you're using bash:

export GITHUB_TOKEN="<your-github-token-goes-here>"

or rename the file .env_template to .env and put the value inside the .env file. Each python script will load the value from that value automatically.

  1. Install dependencies (should be already done when using a GitHub codespace)
python -m pip -r requirements.txt

Workshop contents

The scope of this workshop covers the following scenarios and technology stacks:

Name Description Technology
Hello World Hello World model OpenAI
Voice Models Voice input OpenAI, Realtime model
Multimodal models Multimodel Prompting OpenAI, Vision model
Knowledge Graphs Knowledge graph generation OpenAI, Structured output
Onthologies Onthologies OpenAI, OWL
Custom DSL Domain specific languages OpenAI, Tools
Single Agent ReAct Agent OpenAI, LangChain, Llama Index, Tools
Human in the loop Human in the loop agents OpenAI, LangChain, LangGraph, Semantic Kernel Tools
Multi agent collaboration Multi turn agent collaboration OpenAI, Semantic Kernel, LangGraph
Society of agents Dynamic planning OpenAI, AutoGen, MagenticOne
Event Driven Agents Distributed agents agent platforms OpenAI, Semantic Kernel, Llama deploy
Model Context Protocol MCP Servers and clients OpenAI, MCP, LangGraph

About

This is an AI agent playground to demonstrate different agent orchestration patterns and capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 95.4%
  • JavaScript 3.3%
  • Other 1.3%