MCPcopy Create free account
hub / github.com/google/adk-python / _get_node_field

Function _get_node_field

src/google/adk/cli/utils/graph_serialization.py:49–51  ·  view source on GitHub ↗

Safely get a node field using object.__getattribute__.

(node: Any, field_name: str)

Source from the content-addressed store, hash-verified

47
48
49def _get_node_field(node: Any, field_name: str) -> Any:
50 """Safely get a node field using object.__getattribute__."""
51 return object.__getattribute__(node, field_name)
52
53
54def serialize_node_like(item: Any) -> Any:

Callers 1

serialize_nodeFunction · 0.85

Calls 1

__getattribute__Method · 0.80

Tested by

no test coverage detected