MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / get_friendly_error_msg

Function get_friendly_error_msg

methods/letta/utils.py:1028–1034  ·  view source on GitHub ↗
(function_name: str, exception_name: str, exception_message: str)

Source from the content-addressed store, hash-verified

1026
1027
1028def 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
1037def run_async_task(coro: Coroutine[Any, Any, Any]) -> Any:

Callers 12

_handle_ai_responseMethod · 0.90
execute_external_toolFunction · 0.90
run_e2b_sandboxMethod · 0.90
run_e2b_sandboxMethod · 0.90
execute_toolMethod · 0.90
execute_tool_asyncMethod · 0.90
run_tool_from_sourceMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected