MCPcopy Create free account
hub / github.com/Integuru-AI/Integuru / find_key_by_string_in_value

Method find_key_by_string_in_value

integuru/agent.py:406–410  ·  view source on GitHub ↗
(dictionary: Dict[str, Dict[str, Any]], search_string: str)

Source from the content-addressed store, hash-verified

404
405 @staticmethod
406 def find_key_by_string_in_value(dictionary: Dict[str, Dict[str, Any]], search_string: str) -> Optional[str]:
407 for key, value in dictionary.items():
408 if search_string in value.get("value", ""):
409 return key
410 return None
411

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected