From ef092de59b90bedc1316b6ce9da5782e28caa8ef Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:38:33 -0700 Subject: [PATCH] [Py] Add default_factory in run tree (#1023) For events. Needed before removing core's Run subclass --- python/langsmith/run_trees.py | 4 ++++ python/pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/python/langsmith/run_trees.py b/python/langsmith/run_trees.py index 388d41f53..7870c5b9e 100644 --- a/python/langsmith/run_trees.py +++ b/python/langsmith/run_trees.py @@ -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." diff --git a/python/pyproject.toml b/python/pyproject.toml index bc791b524..1559a49aa 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -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 "] license = "MIT"