.NET Workflows - Support "structured inputs" feature for declarative workflows (#2053)

This commit is contained in:
Chris
2025-11-11 10:36:18 -08:00
committed by GitHub
Unverified
parent d1009845c9
commit 39598741e4
34 changed files with 749 additions and 76 deletions
+6 -6
View File
@@ -119,13 +119,13 @@ trigger:
# FACTS
Consider this initial fact sheet:
{Trim(Last(Local.TaskFacts).Text)}
{MessageText(Local.TaskFacts)}
# PLAN
Here is the plan to follow as best as possible:
{Last(Local.Plan).Text}
{MessageText(Local.Plan)}
- kind: SendActivity
id: sendActivity_bwNZiM
@@ -247,7 +247,7 @@ trigger:
Here is the old fact sheet:
{Local.TaskFacts}"
{MessageText(Local.TaskFacts)}"
- kind: SendActivity
id: sendActivity_dsBaJU
@@ -291,13 +291,13 @@ trigger:
# FACTS
Consider this initial fact sheet:
{Local.TaskFacts.Text}
{MessageText(Local.TaskFacts)}
# PLAN
Here is the plan to follow as best as possible:
{Local.Plan.Text}
{MessageText(Local.Plan)}
- kind: SetVariable
id: setVariable_6J2snP
@@ -356,7 +356,7 @@ trigger:
- kind: SetVariable
id: setVariable_XzNrdM
variable: Local.AgentResponseText
value: =Last(Local.AgentResponse).Text
value: =MessageText(Local.AgentResponse)
- kind: ResetVariable
id: setVariable_8eIx2A
+1 -1
View File
@@ -35,7 +35,7 @@ trigger:
id: check_completion
conditions:
- condition: =!IsBlank(Find("CONGRATULATIONS", Upper(Last(Local.TeacherResponse).Text)))
- condition: =!IsBlank(Find("CONGRATULATIONS", Upper(MessageText(Local.TeacherResponse))))
id: check_turn_done
actions:
+1 -1
View File
@@ -6,7 +6,7 @@ may be executed locally no different from any regular `Workflow` that is defined
The difference is that the workflow definition is loaded from a YAML file instead of being defined in code:
```c#
Workflow<string> workflow = DeclarativeWorkflowBuilder.Build<string>("Marketing.yaml", options);
Workflow workflow = DeclarativeWorkflowBuilder.Build("Marketing.yaml", options);
```
These example workflows may be executed by the workflow