mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
fd253c0b0e
* Move workflow-samples and agent-samples under declarative-agents and update all references Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/f70f7d19-9256-4eec-b7db-28007d74440c Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com> * Fix relative paths in README files inside moved directories Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/f70f7d19-9256-4eec-b7db-28007d74440c Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sphenry <6749825+sphenry@users.noreply.github.com> Co-authored-by: Shawn Henry <shahen@microsoft.com>
18 lines
666 B
Markdown
18 lines
666 B
Markdown
# Declarative Workflows
|
|
|
|
A _Declarative Workflow_ is defined as a single YAML file and
|
|
may be executed locally no different from any regular `Workflow` that is defined by code.
|
|
|
|
The difference is that the workflow definition is loaded from a YAML file instead of being defined in code:
|
|
|
|
```c#
|
|
Workflow workflow = DeclarativeWorkflowBuilder.Build("Marketing.yaml", options);
|
|
```
|
|
|
|
These example workflows may be executed by the workflow
|
|
[Samples](../../dotnet/samples/03-workflows/Declarative)
|
|
that are present in this repository.
|
|
|
|
> See the [README.md](../../dotnet/samples/03-workflows/Declarative/README.md)
|
|
associated with the samples for configuration details.
|