Skip to content

fix: correct sample requirements and standardize config template naming#7057

Open
Ahmed-Farouk10 wants to merge 2 commits into
microsoft:mainfrom
Ahmed-Farouk10:fix/durabletask-02-requirements-foundry-to-openai
Open

fix: correct sample requirements and standardize config template naming#7057
Ahmed-Farouk10 wants to merge 2 commits into
microsoft:mainfrom
Ahmed-Farouk10:fix/durabletask-02-requirements-foundry-to-openai

Conversation

@Ahmed-Farouk10

@Ahmed-Farouk10 Ahmed-Farouk10 commented Jul 10, 2026

Copy link
Copy Markdown

Problems

1. Wrong package reference (durabletask/02-multi-agent)

\worker.py\ imports \OpenAIChatCompletionClient\ from \�gent_framework.openai, but
equirements.txt\ referenced \packages/foundry\ instead of \packages/openai. The sample works because \openai\ is a transitive dependency of \core, but the explicit dependency was misleading.

2. Inconsistent config template naming (azure_functions)

Samples 01-08 used .template\ suffix while 09-13 used .sample. The parent README instructs users to copy .template\ files, which didn't exist in the later samples.

Changes

requirements.txt fix

  • \packages/foundry\ → \packages/openai\ (line 10)
  • # agent-framework-foundry\ → # agent-framework-openai\ (line 3)
  • Updated inline comment to describe the actual package

Config template standardization

  • Renamed all .sample\ files to .template\ in samples 09-13
  • Renamed .env.sample\ to .env.template\ in sample 10
  • Updated all 5 README references from .sample\ to .template\

Files changed

File Change
\durabletask/02_multi_agent/requirements.txt\ Fixed package reference
\

02_multi_agent imports OpenAIChatCompletionClient from agent_framework.openai
but its requirements.txt referenced packages/foundry instead of packages/openai.
The sample works because openai is a transitive dependency of core, but the
requirements file should directly reference the package it actually uses.
Copilot AI review requested due to automatic review settings July 10, 2026 17:31
@giles17 giles17 added the python Usage: [Issues, PRs], Target: Python label Jul 10, 2026
@github-actions github-actions Bot changed the title fix: correct requirements.txt reference in durabletask/02-multi-agent from foundry to openai Python: fix: correct requirements.txt reference in durabletask/02-multi-agent from foundry to openai Jul 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Durable Task multi-agent Python sample’s requirements.txt to explicitly depend on the OpenAI package (matching the sample’s OpenAIChatCompletionClient usage) rather than the Foundry package, avoiding reliance on transitive dependencies.

Changes:

  • Corrected the commented PyPI package reference from agent-framework-foundry to agent-framework-openai.
  • Switched the local editable dependency from packages/foundry to packages/openai.
  • Updated the inline comment to accurately describe the OpenAI dependency.

azure_functions samples 01-08 use .template, but 09-13 used .sample.
This inconsistency broke the parent README instructions which
reference .template files. Standardized all samples to .template.

Also renamed .env.sample to .env.template in sample 10.

Closes microsoft#5399
@Ahmed-Farouk10 Ahmed-Farouk10 changed the title Python: fix: correct requirements.txt reference in durabletask/02-multi-agent from foundry to openai fix: correct sample requirements and standardize config template naming Jul 10, 2026
@giles17 giles17 added the documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants