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

Function try_get_reset_func

src/google/adk/cli/cli_eval.py:96–100  ·  view source on GitHub ↗

Returns reset function for the agent, if present, given the agent module.

(agent_module_file_path: str)

Source from the content-addressed store, hash-verified

94
95
96def try_get_reset_func(agent_module_file_path: str) -> Any:
97 """Returns reset function for the agent, if present, given the agent module."""
98 agent_module = _get_agent_module(agent_module_file_path)
99 reset_func = getattr(agent_module.agent, "reset_data", None)
100 return reset_func
101
102
103def parse_and_get_evals_to_run(

Callers

nothing calls this directly

Calls 2

_get_agent_moduleFunction · 0.85
getattrFunction · 0.85

Tested by

no test coverage detected