(tool_or_agent)
| 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): |
no outgoing calls
no test coverage detected