mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: Update human_tool_confirmation agent to use resumability feature
PiperOrigin-RevId: 816793131
This commit is contained in:
committed by
Copybara-Service
parent
03f051d3ed
commit
75179243b4
@@ -13,6 +13,8 @@
|
||||
# limitations under the License.
|
||||
|
||||
from google.adk import Agent
|
||||
from google.adk.apps import App
|
||||
from google.adk.apps import ResumabilityConfig
|
||||
from google.adk.tools.function_tool import FunctionTool
|
||||
from google.adk.tools.tool_confirmation import ToolConfirmation
|
||||
from google.adk.tools.tool_context import ToolContext
|
||||
@@ -88,3 +90,12 @@ root_agent = Agent(
|
||||
],
|
||||
generate_content_config=types.GenerateContentConfig(temperature=0.1),
|
||||
)
|
||||
|
||||
app = App(
|
||||
name='human_tool_confirmation',
|
||||
root_agent=root_agent,
|
||||
# Set the resumability config to enable resumability.
|
||||
resumability_config=ResumabilityConfig(
|
||||
is_resumable=True,
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user