Skip to content

Commit

Permalink
feat(py sdk): add lc error placeholder (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt authored Jan 18, 2025
1 parent 706a51e commit 50a0dde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/python-sdk/lunary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ def on_chain_error(
"chain",
"error",
run_id=run_id,
error={"message": str(error), "stack": traceback.format_exc()},
error={"message": str(error) or "Unknown error", "stack": traceback.format_exc() or "No stack trace available"},
app_id=self.__app_id,
api_url=self.__api_url,
callback_queue=self.queue,
Expand All @@ -1428,7 +1428,7 @@ def on_tool_error(
"tool",
"error",
run_id=run_id,
error={"message": str(error), "stack": traceback.format_exc()},
error={"message": str(error) or "Unknown error", "stack": traceback.format_exc() or "No stack trace available"},
app_id=self.__app_id,
api_url=self.__api_url,
callback_queue=self.queue,
Expand All @@ -1452,7 +1452,7 @@ def on_llm_error(
"llm",
"error",
run_id=run_id,
error={"message": str(error), "stack": traceback.format_exc()},
error={"message": str(error) or "Unknown error", "stack": traceback.format_exc() or "No stack trace available"},
app_id=self.__app_id,
api_url=self.__api_url,
callback_queue=self.queue,
Expand Down Expand Up @@ -1546,7 +1546,7 @@ def on_retriever_error(
"retriever",
"error",
run_id=run_id,
error={"message": str(error), "stack": traceback.format_exc()},
error={"message": str(error) or "Unknown error", "stack": traceback.format_exc() or "No stack trace available"},
app_id=self.__app_id,
api_url=self.__api_url,
callback_queue=self.queue,
Expand Down
2 changes: 1 addition & 1 deletion packages/python-sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lunary"
version = "1.4.3"
version = "1.4.4"
description = "Observability, analytics and evaluations for AI agents and chatbots."
authors = ["lunary <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 50a0dde

Please sign in to comment.