File tree Expand file tree Collapse file tree
agent_samples/function_tools/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "events" : [
3+ {
4+ "content" : {
5+ "parts" : [
6+ {
7+ "text" : " a random number"
8+ }
9+ ],
10+ "role" : " user"
11+ },
12+ "invocationId" : " i-1" ,
13+ "author" : " user" ,
14+ "nodeInfo" : {
15+ "path" : " " ,
16+ "runId" : " "
17+ },
18+ "id" : " e-1"
19+ },
20+ {
21+ "content" : {
22+ "parts" : [
23+ {
24+ "functionCall" : {
25+ "id" : " fc-1" ,
26+ "args" : {},
27+ "name" : " generate_random_number"
28+ }
29+ }
30+ ],
31+ "role" : " model"
32+ },
33+ "finishReason" : " STOP" ,
34+ "invocationId" : " i-1" ,
35+ "author" : " function_tools" ,
36+ "nodeInfo" : {
37+ "path" : " " ,
38+ "runId" : " "
39+ },
40+ "longRunningToolIds" : [],
41+ "id" : " e-3"
42+ },
43+ {
44+ "content" : {
45+ "parts" : [
46+ {
47+ "functionResponse" : {
48+ "id" : " fc-1" ,
49+ "name" : " generate_random_number" ,
50+ "response" : {
51+ "result" : 42
52+ }
53+ }
54+ }
55+ ],
56+ "role" : " user"
57+ },
58+ "invocationId" : " i-1" ,
59+ "author" : " function_tools" ,
60+ "nodeInfo" : {
61+ "path" : " " ,
62+ "runId" : " "
63+ },
64+ "id" : " e-5"
65+ },
66+ {
67+ "content" : {
68+ "parts" : [
69+ {
70+ "text" : " Here is a random number: 42.\n "
71+ }
72+ ],
73+ "role" : " model"
74+ },
75+ "finishReason" : " STOP" ,
76+ "invocationId" : " i-1" ,
77+ "author" : " function_tools" ,
78+ "nodeInfo" : {
79+ "path" : " " ,
80+ "runId" : " "
81+ },
82+ "id" : " e-7"
83+ }
84+ ]
85+ }
Original file line number Diff line number Diff line change 1+ {
2+ "events" : [
3+ {
4+ "content" : {
5+ "parts" : [
6+ {
7+ "text" : " a random number and check even"
8+ }
9+ ],
10+ "role" : " user"
11+ },
12+ "invocationId" : " i-1" ,
13+ "author" : " user" ,
14+ "nodeInfo" : {
15+ "path" : " " ,
16+ "runId" : " "
17+ },
18+ "id" : " e-1"
19+ },
20+ {
21+ "content" : {
22+ "parts" : [
23+ {
24+ "functionCall" : {
25+ "id" : " fc-1" ,
26+ "args" : {},
27+ "name" : " generate_random_number"
28+ }
29+ }
30+ ],
31+ "role" : " model"
32+ },
33+ "finishReason" : " STOP" ,
34+ "invocationId" : " i-1" ,
35+ "author" : " function_tools" ,
36+ "nodeInfo" : {
37+ "path" : " " ,
38+ "runId" : " "
39+ },
40+ "longRunningToolIds" : [],
41+ "id" : " e-3"
42+ },
43+ {
44+ "content" : {
45+ "parts" : [
46+ {
47+ "functionResponse" : {
48+ "id" : " fc-1" ,
49+ "name" : " generate_random_number" ,
50+ "response" : {
51+ "result" : 42
52+ }
53+ }
54+ }
55+ ],
56+ "role" : " user"
57+ },
58+ "invocationId" : " i-1" ,
59+ "author" : " function_tools" ,
60+ "nodeInfo" : {
61+ "path" : " " ,
62+ "runId" : " "
63+ },
64+ "id" : " e-5"
65+ },
66+ {
67+ "content" : {
68+ "parts" : [
69+ {
70+ "functionCall" : {
71+ "id" : " fc-2" ,
72+ "args" : {
73+ "number" : 42
74+ },
75+ "name" : " is_even"
76+ }
77+ }
78+ ],
79+ "role" : " model"
80+ },
81+ "finishReason" : " STOP" ,
82+ "invocationId" : " i-1" ,
83+ "author" : " function_tools" ,
84+ "nodeInfo" : {
85+ "path" : " " ,
86+ "runId" : " "
87+ },
88+ "longRunningToolIds" : [],
89+ "id" : " e-7"
90+ },
91+ {
92+ "content" : {
93+ "parts" : [
94+ {
95+ "functionResponse" : {
96+ "id" : " fc-2" ,
97+ "name" : " is_even" ,
98+ "response" : {
99+ "result" : true
100+ }
101+ }
102+ }
103+ ],
104+ "role" : " user"
105+ },
106+ "invocationId" : " i-1" ,
107+ "author" : " function_tools" ,
108+ "nodeInfo" : {
109+ "path" : " " ,
110+ "runId" : " "
111+ },
112+ "id" : " e-9"
113+ },
114+ {
115+ "content" : {
116+ "parts" : [
117+ {
118+ "text" : " The random number is 42 and it is even."
119+ }
120+ ],
121+ "role" : " model"
122+ },
123+ "finishReason" : " STOP" ,
124+ "invocationId" : " i-1" ,
125+ "author" : " function_tools" ,
126+ "nodeInfo" : {
127+ "path" : " " ,
128+ "runId" : " "
129+ },
130+ "id" : " e-11"
131+ }
132+ ]
133+ }
You can’t perform that action at this time.
0 commit comments