Skip to main content
Open In Colab Open on GitHub This Jupyter Notebook demonstrates how to leverage OSS Insight (Open Source Software Insight) for advanced GitHub data analysis by defining Function calls in AG2 for the OpenAI Assistant. The notebook is structured into four main sections:
  1. Function Schema and Implementation
  2. Defining an OpenAI Assistant Agent in AG2
  3. Fetching GitHub Insight Data using Function Call

Requirements

AG2 requires Python>=3.9. To run this notebook example, please install:
Install ag2:
For more information, please refer to the installation guide.

Function Schema and Implementation

This section provides the function schema definition and their implementation details. These functions are tailored to fetch and process data from GitHub, utilizing OSS Insight’s capabilities.

Defining an OpenAI Assistant Agent in AG2

Here, we explore how to define an OpenAI Assistant Agent within the AG2. This includes setting up the agent to make use of the previously defined function calls for data retrieval and analysis.
Learn more about configuring LLMs for agents here.

Fetching GitHub Insight Data using Function Call

This part of the notebook demonstrates the practical application of the defined functions and the OpenAI Assistant Agent in fetching and interpreting GitHub Insight data.