Skip to content

Commit

Permalink
[Py] Add default_factory in run tree (#1023)
Browse files Browse the repository at this point in the history
For events.
Needed before removing core's Run subclass
  • Loading branch information
hinthornw committed Sep 20, 2024
1 parent e8ce685 commit ef092de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python/langsmith/run_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ class RunTree(ls_schemas.RunBase):
)
session_id: Optional[UUID] = Field(default=None, alias="project_id")
extra: Dict = Field(default_factory=dict)
tags: Optional[List[str]] = Field(default_factory=list)
events: List[Dict] = Field(default_factory=list)
"""List of events associated with the run, like
start and end events."""
_client: Optional[Client] = None
dotted_order: str = Field(
default="", description="The order of the run in the tree."
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langsmith"
version = "0.1.123"
version = "0.1.124"
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
authors = ["LangChain <support@langchain.dev>"]
license = "MIT"
Expand Down

0 comments on commit ef092de

Please sign in to comment.