Open
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ctions - Durable Task SDK sample: FastAPI app with durable entity-based chat agent, SSE streaming via Redis pub/sub, echo fallback when no Azure OpenAI configured - Durable Functions sample: Azure Functions v2 (Python) with DFApp, entity-based chat agent, async Redis pub/sub collection via asyncio.to_thread() - Both samples tested end-to-end with DTS emulator and Redis Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new sample for building agent-directed workflows using Azure Durable Functions in Python. It provides a complete implementation of an LLM-driven agent loop, including durable entity management, Redis-based pub/sub for response streaming, and integration with Azure OpenAI and custom tools. The sample includes code, configuration, and documentation to help users run and extend the solution.
The most important changes are:
Core Implementation:
function_app.pyimplementing a durable entity-based chat agent, HTTP endpoints for interacting with the agent, Redis pub/sub for streaming responses, and integration with Azure OpenAI and tools.tools.pydefining tool schemas (e.g.,get_weather) and execution logic, enabling the agent to call external functions as part of the agent loop.Configuration and Dependencies:
host.jsonto configure Durable Task Scheduler integration, logging, and extension bundles for the Azure Functions host.requirements.txtspecifying all necessary Python dependencies, including Azure Functions, Durable Functions, Redis, OpenAI, and Azure Identity libraries.Documentation:
README.mddescribing agent-directed workflows, how the sample works, setup instructions, API reference, and differences from the Durable Task SDK version.