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

Method append

src/google/adk/events/_node_path_builder.py:80–87  ·  view source on GitHub ↗

Returns a new _NodePathBuilder with the child segment appended.

(
      self, node_name: str, run_id: str | None = None
  )

Source from the content-addressed store, hash-verified

78 return _NodePathBuilder(self._segments[:-1])
79
80 def append(
81 self, node_name: str, run_id: str | None = None
82 ) -> _NodePathBuilder:
83 """Returns a new _NodePathBuilder with the child segment appended."""
84 segment = node_name
85 if run_id:
86 segment = f'{node_name}@{run_id}'
87 return _NodePathBuilder(self._segments + [segment])
88
89 def is_descendant_of(self, ancestor: _NodePathBuilder) -> bool: # pylint: disable=protected-access
90 """Checks if this path is a descendant of the ancestor path."""

Callers 15

__init__.pyFile · 0.45
get_examplesMethod · 0.45
convert_examples_to_textFunction · 0.45
add_eval_caseMethod · 0.45
evaluateMethod · 0.45
evaluate_invocationsMethod · 0.45
list_eval_setsMethod · 0.45
evaluate_invocationsMethod · 0.45
evaluate_invocationsMethod · 0.45

Calls 1

_NodePathBuilderClass · 0.85

Tested by

no test coverage detected