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

Function should_build_agent_cluster

src/google/adk/cli/agent_graph.py:129–150  ·  view source on GitHub ↗
(tool_or_agent)

Source from the content-addressed store, hash-verified

127 return 'cylinder'
128
129 def should_build_agent_cluster(tool_or_agent):
130 if isinstance(tool_or_agent, Workflow):
131 return True
132 elif isinstance(tool_or_agent, BaseAgent):
133 if isinstance(tool_or_agent, SequentialAgent):
134 return True
135 elif isinstance(tool_or_agent, LoopAgent):
136 return True
137 elif isinstance(tool_or_agent, ParallelAgent):
138 return True
139 else:
140 return False
141 elif retrieval_tool_module_loaded and isinstance(
142 tool_or_agent, BaseRetrievalTool
143 ):
144 return False
145 elif isinstance(tool_or_agent, FunctionTool):
146 return False
147 elif isinstance(tool_or_agent, BaseTool):
148 return False
149 else:
150 return False
151
152 async def build_cluster(child: graphviz.Digraph, agent: BaseAgent, name: str):
153 if isinstance(agent, LoopAgent):

Callers 3

draw_nodeFunction · 0.85
draw_edgeFunction · 0.85
build_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected