(function_name: str, exception_name: str, exception_message: str)
| 1026 | |
| 1027 | |
| 1028 | def get_friendly_error_msg(function_name: str, exception_name: str, exception_message: str): |
| 1029 | from letta.constants import MAX_ERROR_MESSAGE_CHAR_LIMIT |
| 1030 | |
| 1031 | error_msg = f"{ERROR_MESSAGE_PREFIX} executing function {function_name}: {exception_name}: {exception_message}" |
| 1032 | if len(error_msg) > MAX_ERROR_MESSAGE_CHAR_LIMIT: |
| 1033 | error_msg = error_msg[:MAX_ERROR_MESSAGE_CHAR_LIMIT] |
| 1034 | return error_msg |
| 1035 | |
| 1036 | |
| 1037 | def run_async_task(coro: Coroutine[Any, Any, Any]) -> Any: |
no outgoing calls
no test coverage detected