Skip to content

demiliani/AI_Training

Repository files navigation

AI Training Repository

This repository contains training materials and examples for working with AI in Dynamics 365 Business Central and for working with AI agents, Azure OpenAI, and the Microsoft Agent Framework. It includes both a Business Central AL extension demonstrating Copilot integration and several .NET console applications showcasing various agent patterns and capabilities using Microsoft Agent Framework and Azure AI Foundry.

Repository Structure

CopilotSDK

An AL (Application Language) extension for Microsoft Dynamics 365 Business Central that demonstrates Copilot integration capabilities. This extension includes:

  • Copilot capability extensions
  • Custom codeunits for AI-powered features
  • Page extensions for enhanced user interfaces
  • Permission sets and setup pages
  • Tools for customer address suggestions and other AI-driven functionalities

BasicAgent

A fundamental .NET console application that illustrates the basic concepts of building and running agents using the Microsoft Agent Framework. Serves as an entry point for understanding agent architecture.

PersistedConversation

A .NET console application that showcases how to maintain conversation state and context across multiple interactions. Essential for building conversational AI agents that remember previous exchanges.

FunctionCalling

A .NET console application that demonstrates advanced agent capabilities, specifically function calling and tool integration. Shows how agents can execute external functions and tools to extend their functionality.

MultiAgent

A .NET console application exploring multi-agent scenarios where multiple agents collaborate or interact within the same system. Demonstrates orchestration and communication patterns between agents.

AIFoundryAgents

A .NET console application demonstrating the use of Azure AI Foundry agents. Shows how to integrate and utilize AI Foundry services within agent-based applications.

Prerequisites

  • .NET 9.0 SDK
  • Azure OpenAI service access (for agent examples)
  • Microsoft Dynamics 365 Business Central environment (for AL extension)
  • Visual Studio Code with AL Language extension

Getting Started

  1. Clone the repository
  2. For .NET examples: Navigate to each project folder and run the following commands:
    • dotnet restore - to restore NuGet packages required by the project
    • dotnet build - to build the project
    • dotnet run - to run the application
  3. For AL extension: Open the CopilotSDK folder in VS Code and follow standard AL development workflows

Each .NET project contains its own appsettings.json for configuration. Update the settings with your Azure OpenAI endpoints and API keys as needed.

Contributing

I'm open to contributions! If you'd like to improve this repository, please feel free to submit a pull request. Whether it's:

  • Bug fixes
  • New examples or features
  • Documentation improvements
  • Code optimizations

All contributions are welcome. Please ensure your code follows the existing patterns and includes appropriate documentation.

About

Material for my AI training @ Microsoft

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published