Extract the JSON schema dict for a parameter, without description.
(tool, param_name=None)
| 80 | |
| 81 | |
| 82 | def _schema_for(tool, param_name=None): |
| 83 | """Extract the JSON schema dict for a parameter, without description.""" |
| 84 | props = tool.inputSchema["properties"] |
| 85 | if param_name is None: |
| 86 | param_name = next(iter(props)) |
| 87 | schema = dict(props[param_name]) |
| 88 | schema.pop("description", None) |
| 89 | return schema |
| 90 | |
| 91 | |
| 92 | def _desc_for(tool, param_name=None): |
no test coverage detected
searching dependent graphs…