(
app, tool_name, arguments=None, component_id=None, prop="children"
)
| 35 | |
| 36 | |
| 37 | def _call_tool_output( |
| 38 | app, tool_name, arguments=None, component_id=None, prop="children" |
| 39 | ): |
| 40 | result = _call_tool(app, tool_name, arguments) |
| 41 | structured = result["result"]["structuredContent"] |
| 42 | response = structured["response"] |
| 43 | if component_id is None: |
| 44 | component_id = next(iter(response)) |
| 45 | return response[component_id][prop] |
| 46 | |
| 47 | |
| 48 | # --------------------------------------------------------------------------- |
no test coverage detected
searching dependent graphs…