( result: any, propertyName: 'output' | 'error' | 'embedding' | 'classification', )
| 43 | } |
| 44 | |
| 45 | function hasPythonResultProperty( |
| 46 | result: any, |
| 47 | propertyName: 'output' | 'error' | 'embedding' | 'classification', |
| 48 | ): boolean { |
| 49 | return ( |
| 50 | Boolean(result) && |
| 51 | typeof result === 'object' && |
| 52 | Object.prototype.hasOwnProperty.call(result, propertyName) |
| 53 | ); |
| 54 | } |
| 55 | |
| 56 | function applyCachedCallApiMetadata(apiType: PythonApiType, parsedResult: any) { |
| 57 | if (apiType !== 'call_api' || typeof parsedResult !== 'object' || parsedResult === null) { |
no test coverage detected
searching dependent graphs…