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

Method from_string

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

Parses a _NodePathBuilder from a string representation. Example: 'wf@1/node@2'.

(cls, path_str: str)

Source from the content-addressed store, hash-verified

30
31 @classmethod
32 def from_string(cls, path_str: str) -> _NodePathBuilder:
33 """Parses a _NodePathBuilder from a string representation.
34
35 Example: 'wf@1/node@2'.
36 """
37 if not path_str:
38 return cls([])
39 return cls(path_str.split('/'))
40
41 def __str__(self) -> str:
42 """Returns the string representation of the path."""

Callers 15

__call__Method · 0.80
run_idMethod · 0.80
parent_run_idMethod · 0.80
nameMethod · 0.80
_derive_node_pathFunction · 0.80
_scan_child_eventsMethod · 0.80
__call__Method · 0.80
_reconstruct_node_statesFunction · 0.80

Calls 1

splitMethod · 0.80