Skip to content

Commit f8cfd80

Browse files
committed
feat(traceable): fix inputs and errors
1 parent e6b9137 commit f8cfd80

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sdk/langchain/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-langchain"
3-
version = "0.0.84"
3+
version = "0.0.85"
44
description = "UiPath Langchain"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.9"

sdk/langchain/uipath_langchain/tracers/AsyncUiPathTracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def on_custom_event(
7979
if data.event_type == "call":
8080
run = self.run_map[str(run_id)]
8181
child_run = run.create_child(
82-
name=data.function_name, run_type=data.run_type, tags=data.tags
82+
name=data.function_name, run_type=data.run_type, tags=data.tags, inputs=data.inputs
8383
)
8484

8585
if data.metadata is not None:

sdk/langchain/uipath_langchain/tracers/_instrument_traceable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def dispatch_trace_event(
3838
inputs=inputs,
3939
call_uuid=call_uuid,
4040
output=result,
41-
error=str(exception),
41+
error=str(exception) if exception else None,
4242
run_type=run_type,
4343
tags=tags,
4444
metadata=metadata,

0 commit comments

Comments
 (0)