[Bugfix] add dead_error property to engine client (#8574)

Signed-off-by: Joe Runde <Joseph.Runde@ibm.com>
This commit is contained in:
Joe Runde 2024-09-18 16:10:01 -06:00 committed by GitHub
parent d9cd78eb71
commit 0d47bf3bf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -380,6 +380,13 @@ class MQLLMEngineClient:
def errored(self) -> bool:
return self._errored_with is not None
@property
def dead_error(self) -> BaseException:
if self._errored_with is not None:
return ENGINE_DEAD_ERROR(self._errored_with)
else:
return ENGINE_DEAD_ERROR()
async def generate(
self,
inputs: PromptInputs,