Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions python/.bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[bumpversion]
current_version = 0.4.9
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)
Expand All @@ -7,10 +7,6 @@
commit = True
tag = True

[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:langsmith/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"
4 changes: 1 addition & 3 deletions python/langsmith/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
from langsmith.testing._internal import test, unit
from langsmith.utils import ContextThreadPoolExecutor

# Avoid calling into importlib on every call to __version__

__version__ = "0.4.14"
__version__ = "0.4.15"
version = __version__ # for backwards compatibility


Expand Down
7 changes: 6 additions & 1 deletion python/langsmith/run_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ def tracing_context(
)
current_context = get_tracing_context()
parent_run = (
_get_parent_run({"parent": parent or kwargs.get("parent_run")})
_get_parent_run(
{
"parent": parent or kwargs.get("parent_run"),
"project_name": project_name,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the change here.

}
)
if parent is not False
else None
)
Expand Down
8 changes: 5 additions & 3 deletions python/langsmith/run_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,8 @@ def from_headers(
init_args["parent_run_id"] = parsed_dotted_order[-2][1]
# All placeholders. We assume the source process
# handles the life-cycle of the run.
init_args["start_time"] = init_args.get("start_time") or datetime.now(
timezone.utc
init_args["start_time"] = (
init_args.get("start_time") or parsed_dotted_order[-1][0]
)
init_args["run_type"] = init_args.get("run_type") or "chain"
init_args["name"] = init_args.get("name") or "parent"
Expand Down Expand Up @@ -1113,7 +1113,9 @@ def _parse_dotted_order(dotted_order: str) -> list[tuple[datetime, UUID]]:
parts = dotted_order.split(".")
return [
(
datetime.strptime(part[:-TIMESTAMP_LENGTH], "%Y%m%dT%H%M%S%fZ"),
datetime.strptime(part[:-TIMESTAMP_LENGTH], "%Y%m%dT%H%M%S%fZ").replace(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes me slightly nervous

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can remove if you want. we were just ignoring anyway

tzinfo=timezone.utc
),
UUID(part[-TIMESTAMP_LENGTH:]),
)
for part in parts
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "langsmith"
version = "0.4.14"
dynamic = ["version"]
description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform."
authors = [
{name = "LangChain", email = "support@langchain.dev"},
Expand Down
Loading
Loading