Files
copilot-swe-agent[bot] 9843355c83 Move Python durable samples to durable directory
- Moved getting_started/durabletask to durable/console_apps
- Moved getting_started/azure_functions to durable/azure_functions
- Updated all paths in README files
- Created durable/README.md with overview
- Updated main samples README.md with new structure

Co-authored-by: larohra <41490930+larohra@users.noreply.github.com>
9843355c83 ยท 2026-01-30 22:25:01 +00:00
History
..

Durable Agent Samples

This directory contains samples demonstrating durable agent hosting patterns for the Microsoft Agent Framework.

Directory Structure

  • azure_functions/ - Samples for hosting durable agents in Azure Functions with the Durable Extension
  • console_apps/ - Samples for hosting durable agents using the Durable Task Scheduler in console applications

Overview

Durable agent hosting enables distributed agent execution with persistent conversation state, orchestration capabilities, and reliable streaming. These patterns are essential for building scalable, production-ready agent applications.

Azure Functions

The Azure Functions samples demonstrate how to host agents in Azure Functions using the Durable Extension. These samples show HTTP endpoints for agent interaction, durable orchestrations, and integration with Azure services.

Key features:

  • HTTP-triggered agent endpoints
  • Durable orchestrations for multi-step workflows
  • Per-session state management
  • Reliable streaming with Redis
  • Human-in-the-loop patterns

See the Azure Functions README for detailed setup instructions.

Console Apps

The Console Apps samples demonstrate the worker-client architecture pattern using the Durable Task Scheduler. These samples run locally or in any hosting environment that supports Python applications.

Key features:

  • Worker-client architecture
  • Distributed agent execution
  • Persistent conversation state
  • Orchestration patterns (chaining, concurrency, conditionals)
  • Reliable streaming

See the Console Apps README for detailed setup instructions.

Getting Started

Each subdirectory contains its own README with specific setup instructions and prerequisites. Both patterns require:

  • Python 3.9 or later
  • Azure OpenAI Service with a deployed model
  • Appropriate durable infrastructure (Durable Task Scheduler or Azure Functions with Durable Extension)