mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
.NET Workflows - Support "structured inputs" feature for declarative workflows (#2053)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user