File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
contributing/samples/human_tool_confirmation Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515from google .adk import Agent
16+ from google .adk .apps import App
17+ from google .adk .apps import ResumabilityConfig
1618from google .adk .tools .function_tool import FunctionTool
1719from google .adk .tools .tool_confirmation import ToolConfirmation
1820from google .adk .tools .tool_context import ToolContext
@@ -88,3 +90,12 @@ def request_time_off(days: int, tool_context: ToolContext):
8890 ],
8991 generate_content_config = types .GenerateContentConfig (temperature = 0.1 ),
9092)
93+
94+ app = App (
95+ name = 'human_tool_confirmation' ,
96+ root_agent = root_agent ,
97+ # Set the resumability config to enable resumability.
98+ resumability_config = ResumabilityConfig (
99+ is_resumable = True ,
100+ ),
101+ )
You can’t perform that action at this time.
0 commit comments