mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
06827e9f1a
* Closure * Verified * Update dotnet/src/Microsoft.Agents.Workflows.Declarative/Interpreter/DeclarativeWorkflowContext.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Sample folder * System scope fix * Fix link * Integrate Foundry SDK fix * File naming fix * Update dotnet/src/Microsoft.Agents.Workflows.Declarative/Interpreter/DeclarativeWorkflowContext.cs Co-authored-by: Tao Chen <taochen@microsoft.com> * Namespace * Optimize bind --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Tao Chen <taochen@microsoft.com>
26 lines
530 B
YAML
26 lines
530 B
YAML
kind: Workflow
|
|
trigger:
|
|
|
|
kind: OnConversationStart
|
|
id: workflow_test
|
|
actions:
|
|
|
|
# Capture input
|
|
- kind: SetVariable
|
|
id: set_user_input
|
|
variable: Topic.UserInput
|
|
value: =System.LastMessage.Text
|
|
|
|
# Capture environment variable
|
|
- kind: SetVariable
|
|
id: set_user_name
|
|
variable: Global.UserName
|
|
value: =Env.USERNAME
|
|
|
|
# Respond with input
|
|
- kind: SendActivity
|
|
id: send_result
|
|
activity: |-
|
|
Hello {Global.UserName},
|
|
You said, "{Topic.UserInput}"
|