2020class ExecuteToolResponse extends \Google \Model
2121{
2222 /**
23- * Required. The tool execution result in JSON object format. Use "output" key
24- * to specify tool response and "error" key to specify error details (if any).
25- * If "output" and "error" keys are not specified, then whole "response" is
23+ * The tool execution result in JSON object format. Use "output" key to
24+ * specify tool response and "error" key to specify error details (if any). If
25+ * "output" and "error" keys are not specified, then whole "response" is
2626 * treated as tool execution result.
2727 *
2828 * @var array[]
@@ -37,11 +37,17 @@ class ExecuteToolResponse extends \Google\Model
3737 public $ tool ;
3838 protected $ toolsetToolType = ToolsetTool::class;
3939 protected $ toolsetToolDataType = '' ;
40+ /**
41+ * The variable values at the end of the tool execution.
42+ *
43+ * @var array[]
44+ */
45+ public $ variables ;
4046
4147 /**
42- * Required. The tool execution result in JSON object format. Use "output" key
43- * to specify tool response and "error" key to specify error details (if any).
44- * If "output" and "error" keys are not specified, then whole "response" is
48+ * The tool execution result in JSON object format. Use "output" key to
49+ * specify tool response and "error" key to specify error details (if any). If
50+ * "output" and "error" keys are not specified, then whole "response" is
4551 * treated as tool execution result.
4652 *
4753 * @param array[] $response
@@ -90,6 +96,22 @@ public function getToolsetTool()
9096 {
9197 return $ this ->toolsetTool ;
9298 }
99+ /**
100+ * The variable values at the end of the tool execution.
101+ *
102+ * @param array[] $variables
103+ */
104+ public function setVariables ($ variables )
105+ {
106+ $ this ->variables = $ variables ;
107+ }
108+ /**
109+ * @return array[]
110+ */
111+ public function getVariables ()
112+ {
113+ return $ this ->variables ;
114+ }
93115}
94116
95117// Adding a class alias for backwards compatibility with the previous class name.
0 commit comments