Skip to content

This repository contains a durable AI agent reference sample built with Python and deployed to Azure using the Azure Developer CLI (azd). The sample demonstrates how to create an AI agent with persistent conversation threads using Azure Functions, Azure OpenAI, and the Microsoft Agent Framework.

License

Notifications You must be signed in to change notification settings

Karthik24041995/Durable-AI-Agent---Azure-Function-app

Repository files navigation

description page_type products urlFragment languages
This Python sample demonstrates how to build and deploy a durable AI agent using Azure Functions and the Microsoft Agent Framework with persistent conversation threads.
sample
azure-functions
azure-openai
azure
durable-agents-quickstart-python
python
bicep
azdeveloper

Durable task extension for Microsoft Agent Framework using Azure Developer CLI

This template repository contains a durable AI agent reference sample built with Python and deployed to Azure using the Azure Developer CLI (azd). The sample demonstrates how to create an AI agent with persistent conversation threads using Azure Functions, Azure OpenAI, and the Microsoft Agent Framework. This sample demonstrates these key features:

  • Durable conversation threads. The agent maintains conversation context across multiple interactions using durable orchestration, allowing for natural multi-turn conversations.
  • Microsoft Agent Framework integration. Built on the standard Microsoft Agent Framework pattern for creating AI agents with Azure OpenAI.
  • Managed identity authentication. Uses Azure managed identity for secure, secret-free connections to Azure OpenAI.

This project is designed to run on your local computer. You can also use GitHub Codespaces if available.

Important

This sample creates several resources. Make sure to delete the resource group after testing to minimize charges!

Prerequisites

Initialize the local project

You can initialize a project from this azd template in one of these ways:

  • Use this azd init command from an empty local (root) folder:

    azd init --template durable-agents-quickstart-python

    Supply an environment name, such as durableagent when prompted. In azd, the environment is used to maintain a unique deployment context for your app.

  • Clone the GitHub template repository locally using the git clone command:

    git clone https://github.com/anthonychu/durable-agents-quickstart-python.git
    cd durable-agents-quickstart-python

    You can also clone the repository from your own fork in GitHub.

Follow the tutorial

You can follow the step-by-step tutorial for this sample at . The tutorial walks you through the code and deployment process in detail.

About

This repository contains a durable AI agent reference sample built with Python and deployed to Azure using the Azure Developer CLI (azd). The sample demonstrates how to create an AI agent with persistent conversation threads using Azure Functions, Azure OpenAI, and the Microsoft Agent Framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published