(def: ToolDefinition)
| 204 | }); |
| 205 | |
| 206 | const descriptionFor = (def: ToolDefinition): string => { |
| 207 | const op = def.operation; |
| 208 | return Option.getOrElse(op.description, () => |
| 209 | Option.getOrElse(op.summary, () => `${op.method.toUpperCase()} ${op.pathTemplate}`), |
| 210 | ); |
| 211 | }; |
| 212 | |
| 213 | /** |
| 214 | * Copyable contract appended to the stored description of any tool whose |
no outgoing calls
no test coverage detected