docs: add Declarative Workflow YAML schema reference#4198
docs: add Declarative Workflow YAML schema reference#4198LEDazzio01 wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Adds comprehensive documentation for the Declarative Workflow YAML schema including top-level structure, triggers, all action types, expressions, variables, input/output configuration, and examples. Closes microsoft#4188
|
@LEDazzio01 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
|
I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer. |
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive schema reference documentation for Declarative Workflows in response to issue #4188. The document provides a complete guide for authoring declarative workflow YAML files in the Microsoft Agent Framework.
Changes:
- Added
docs/declarative-workflow-yaml-schema.mdwith detailed schema reference covering all workflow elements - Documented 23 action types organized by category (Foundry Actions, Human Input, State Management, Control Flow)
- Included PowerFx expression syntax, variable scoping, input/output configuration, and complete examples
| externalLoop: | ||
| when: =Not(Local.Parameters.IsResolved) | ||
| ``` | ||
|
|
There was a problem hiding this comment.
The externalLoop configuration is missing documentation for the maxIterations property. According to the Python implementation (python/packages/declarative/agent_framework_declarative/_workflows/_executors_agents.py:463-471), the externalLoop supports an optional maxIterations property with a default value of 100 to prevent infinite loops. The documentation should include a property table showing both when (required) and maxIterations (optional, default: 100) properties to provide complete reference information.
| **Properties** | |
| | Property | Type | Required | Default | Description | | |
| | -------------- | --------- | -------- | ------- | --------------------------------------------------------------------------- | | |
| | `when` | Expression| Yes | N/A | Condition to continue invoking the agent. Loop stops when this becomes false. | | |
| | `maxIterations`| Integer | No | `100` | Maximum number of times to invoke the agent to prevent infinite or runaway loops. | |
moonbox3
left a comment
There was a problem hiding this comment.
Thanks for your help with this. This should really be a part of our Learn Site docs and not specifically in this docs dir as the discoverability isn't as good.
We will handle this update internally.
Motivation and Context
Addresses #4188 — the request to document the Declarative Workflow YAML schema.
Currently, the YAML schema for declarative workflows is only documented implicitly through the sample YAML files and the action table in the
Microsoft.Agents.AI.Workflows.Declarativepackage README. There is no standalone, comprehensive schema reference that users can consult when authoring workflows.Description
Adds
docs/declarative-workflow-yaml-schema.md— a comprehensive reference document covering:kind: Workflow,triggerOnConversationStartwith property tablesInvokeAzureAgent,CreateConversation,DeleteConversation,AddConversationMessage,CopyConversationMessages,RetrieveConversationMessage,RetrieveConversationMessagesQuestionSetVariable,SetTextVariable,SetMultipleVariables,ResetVariable,ClearAllVariables,ParseValue,EditTableV2,SendActivityConditionGroup/ConditionItem,Foreach,GotoAction,EndWorkflow,EndConversation,BreakLoop,ContinueLoop=prefix, string interpolation, and common function referenceLocal.*andSystem.*scopingmessages,arguments,externalLoop,responseObject,autoSendThe documentation was derived from analyzing:
workflow-samples/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/README.mdMicrosoft.Agents.AI.Workflows.DeclarativeContribution Checklist