Skip to content

Commit cacb2ac

Browse files
feat: add new fields to test json
1 parent 0611c22 commit cacb2ac

File tree

1 file changed

+51
-1
lines changed

1 file changed

+51
-1
lines changed

tests/agent/models/test_agent.py

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,41 @@ def test_agent_with_all_tool_types_loads(self):
3838
"name": "Agent with All Tools",
3939
"metadata": {"isConversational": False, "storageVersion": "22.0.0"},
4040
"messages": [
41-
{"role": "System", "content": "You are an agentic assistant."},
41+
{
42+
"role": "System",
43+
"content": "You are an agentic assistant.",
44+
"contentTokens": [
45+
{
46+
"type": "simpleText",
47+
"rawString": "You are an agentic assistant.",
48+
}
49+
],
50+
},
4251
{
4352
"role": "User",
4453
"content": "Use the provided tools. Execute {{task}} the number of {{times}}.",
54+
"contentTokens": [
55+
{
56+
"type": "simpleText",
57+
"rawString": "Use the provided tools. Execute ",
58+
},
59+
{
60+
"type": "variable",
61+
"rawString": "input.task",
62+
},
63+
{
64+
"type": "simpleText",
65+
"rawString": " the number of ",
66+
},
67+
{
68+
"type": "variable",
69+
"rawString": "input.times",
70+
},
71+
{
72+
"type": "simpleText",
73+
"rawString": ".",
74+
},
75+
],
4576
},
4677
],
4778
"inputSchema": {
@@ -225,6 +256,13 @@ def test_agent_with_all_tool_types_loads(self):
225256
"properties": {"output": {"type": "string"}},
226257
},
227258
"settings": {},
259+
"argumentProperties": {
260+
"task": {
261+
"variant": "argument",
262+
"argumentPath": "$['task']",
263+
"isSensitive": False,
264+
}
265+
},
228266
"properties": {
229267
"processName": "Basic RPA Process",
230268
"folderPath": "TestFolder/Complete Solution 30 Sept",
@@ -270,6 +308,18 @@ def test_agent_with_all_tool_types_loads(self):
270308
},
271309
"required": ["timezone"],
272310
},
311+
"argumentProperties": {
312+
"timezone": {
313+
"variant": "textBuilder",
314+
"tokens": [
315+
{
316+
"type": "simpleText",
317+
"rawString": "Europe/London",
318+
},
319+
],
320+
"isSensitive": False,
321+
},
322+
},
273323
},
274324
{
275325
"name": "convert_time",

0 commit comments

Comments
 (0)