chore: Update LangSmithTracer constructor parameter type to UUID
This commit is contained in:
parent
293adb0417
commit
a180e9e7c4
1 changed files with 2 additions and 2 deletions
|
|
@ -182,7 +182,7 @@ class TracingService(Service):
|
|||
|
||||
|
||||
class LangSmithTracer(BaseTracer):
|
||||
def __init__(self, trace_name: str, trace_type: str, project_name: str, trace_id: str):
|
||||
def __init__(self, trace_name: str, trace_type: str, project_name: str, trace_id: UUID):
|
||||
from langsmith.run_trees import RunTree
|
||||
|
||||
self.trace_name = trace_name
|
||||
|
|
@ -293,7 +293,7 @@ class LangSmithTracer(BaseTracer):
|
|||
inputs: dict[str, Any],
|
||||
outputs: Dict[str, Any],
|
||||
error: str | None = None,
|
||||
metadata: Optional[dict[str, Any]] = None,
|
||||
metadata: dict[str, Any] | None = None,
|
||||
):
|
||||
self._run_tree.add_metadata({"inputs": inputs, "metadata": metadata or {}})
|
||||
self._run_tree.end(outputs=outputs, error=error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue