MCPcopy Index your code
hub / github.com/google/adk-python / _is_positive_response

Function _is_positive_response

src/google/adk/cli/cli.py:134–136  ·  view source on GitHub ↗

Returns True if the string is a positive response.

(s: str)

Source from the content-addressed store, hash-verified

132
133
134def _is_positive_response(s: str) -> bool:
135 """Returns True if the string is a positive response."""
136 return s.strip().lower() in ('y', 'yes', 'true', 'confirm')
137
138
139def _prompt_for_function_call(

Callers 2

execute_queryFunction · 0.85

Calls 1

stripMethod · 0.80

Tested by

no test coverage detected