You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dialect/agentfabric/src/tests/resources/agentfabric-customer-support-netwrok.agent
+21-27Lines changed: 21 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,18 @@ config:
7
7
agent_name: "customer-support-flow"
8
8
label: "Customer Support Workflow"
9
9
description: "Handles customer support requests with intelligent routing."
10
-
default_llm: @llm.openai_gpt4
10
+
default_llm: @llm.gemini_2_5_flash
11
11
12
12
llm:
13
13
openai_gpt4:
14
14
target: "llm://openai_connection"
15
15
kind: "openai"
16
16
model: "gpt-4o"
17
+
max_output_tokens: 1024
18
+
gemini_2_5_flash:
19
+
target: "llm://gemini_connection"
20
+
kind: "gemini"
21
+
model: "gemini-2.5-flash"
17
22
18
23
action_definitions:
19
24
search_articles:
@@ -33,22 +38,22 @@ action_definitions:
33
38
variables:
34
39
requestTimestamp: mutable string = ""
35
40
customerMessage: mutable string = ""
36
-
output_response: mutable string = ""
37
41
38
42
trigger customerSupportTrigger:
43
+
kind: "a2a"
39
44
target: "brokers://customer-support-flow/a2a"
40
45
on_message: ->
41
46
transition to @executor.set_context
42
47
43
48
executor set_context:
44
49
do: ->
45
-
set @variables.requestTimestamp = "2026-03-06T10:23:24.371729+00:00"
50
+
set @variables.requestTimestamp = now()
46
51
set @variables.customerMessage = @request.payload.message
47
52
on_exit: ->
48
53
transition to @generator.analyze_request
49
54
50
55
generator analyze_request:
51
-
llm: @llm.openai_gpt4
56
+
llm: @llm.gemini_2_5_flash
52
57
prompt: ->
53
58
| Analyze the following customer support request and categorize it as one of: 'billing', 'technical', 'general'. Also extract key entities and sentiment.
54
59
|
@@ -96,7 +101,7 @@ executor billing_handler:
96
101
run @actions.billing_agent
97
102
with message = @variables.customerMessage
98
103
on_exit: ->
99
-
transition to @executor.set_output_response_from_billing_agent
104
+
transition to @echo.send_response
100
105
101
106
subagent technical_handler:
102
107
description: "Handles technical support issues using knowledge-base tools."
@@ -112,7 +117,7 @@ subagent technical_handler:
112
117
kb_search: @actions.search_articles
113
118
kb_get_article: @actions.get_article
114
119
on_exit: ->
115
-
transition to @executor.set_output_response_from_technical_agent
120
+
transition to @echo.send_response
116
121
117
122
orchestrator general_response:
118
123
description: "Handles general customer support responses and routing."
0 commit comments