in azure/durable_functions/models/entities/ResponseMessage.py [0:0]
def __init__(self, result: str, is_exception: bool = False):
"""Instantiate a ResponseMessage.
Specifies the response of an entity, as processed by the durable-extension.
Parameters
----------
result: str
The result provided by the entity
"""
# The time-out case seems to be handled by the Functions-Host, so
# its result is not doubly-serialized. In this branch, we compensate
# for this by re-serializing the payload.
if result.strip().startswith("Timeout value of"):
is_exception = True
result = json.dumps(result)
self.result = result
self.is_exception = is_exception