Skip to content

Conversation

copybara-service[bot]
Copy link

feat: Add a tool confirmation flow which gathers custom input from the user before tool execution

The flow is similar to current OAuth flow:

  • User need to define a custom before_tool_call_back that request a custom input config. They are also responsible for check and validate the provided input before proceed with tool call.
  • ADK will create corresponding RequestInput FunctionCall Event to ask user for input
  • User provide the expected input to a RequestInput FunctionResponse Event.
  • ADK will check the response and use user's own callback validation to continue the tool call.

…e user before tool execution

The flow is similar to current OAuth flow:
- User need to define a custom before_tool_call_back that request a custom input config. They are also responsible for check and validate the provided input before proceed with tool call.
- ADK will create corresponding RequestInput FunctionCall Event to ask user for input
- User provide the expected input to a RequestInput FunctionResponse Event.
- ADK will check the response and use user's own callback validation to continue the tool call.

PiperOrigin-RevId: 797379797
@copybara-service copybara-service bot added the google-contributor [Bot] This PR is created by Google label Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
google-contributor [Bot] This PR is created by Google
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant