Skip to content

Conversation

@LazaUK
Copy link

@LazaUK LazaUK commented Dec 23, 2025

Motivation and Context

  1. Why is this change required? Hosted workflows provide great capabilities to deploy, manage and consume multi-agent orchestration logic directly in Azure AI Foundry. So, sample code and YAML definition file can provide some insight into the mechanics of the process, and developers can then drive it further.
  2. What problem does it solve? We currently have a great .Net sample. And this sample code can assist Python developers to achieve similar results.
  3. What scenario does it contribute to? Hosted workflow capabilities in Azure AI Foundry
  4. If it fixes an open issue, please link to the issue here. N/A

Description

All files were uploaded into new dedicated folder under /python/samples/getting_started/workflows/declarative/hosted-workflows, so there is no change to any existing content/code.

The upload consists of 6 files:

  • Python script, to perform the agents and workflow creation;
  • YAML file, to define workflow logic
  • README.md, to describe the content, building blocks and execution
  • 3 images, which are screenshots of AI Foundry's Agents and Workflows sections

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings December 23, 2025 00:42
@markwallace-microsoft markwallace-microsoft added documentation Improvements or additions to documentation python labels Dec 23, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds Python sample code for implementing Hosted Workflows in Azure AI Foundry. It provides a Python equivalent to the existing .NET sample, helping Python developers utilize the hosted workflow capabilities.

Key Changes:

  • Added Python script to create agents and workflows in Azure AI Foundry
  • Included workflow definition in YAML format
  • Added documentation and screenshots showing the Azure AI Foundry UI

Reviewed changes

Copilot reviewed 3 out of 6 changed files in this pull request and generated no comments.

File Description
python/samples/getting_started/workflows/declarative/hosted-workflow/hosted_workflow.py Main Python script that creates agents and workflows in Azure AI Foundry
python/samples/getting_started/workflows/declarative/hosted-workflow/images/AIFoundry_Workflow_UI.png Screenshot showing the workflow UI in Azure AI Foundry portal

@crickman crickman moved this to In Progress in Agent Framework Dec 23, 2025
@crickman crickman added samples Issue relates to the samples workflows Related to Workflows in agent-framework labels Dec 23, 2025
- kind: GotoAction
id: loop_back
actionId: invoke_developer
id: ""
Copy link
Contributor

Choose a reason for hiding this comment

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

I might consider removing this if its not defined or required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

customer request documentation Improvements or additions to documentation python samples Issue relates to the samples workflows Related to Workflows in agent-framework

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

4 participants