Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-langsmith for openSUSE:Factory checked in at 2026-11-24 12:41:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-langsmith (Old) and /work/SRC/openSUSE:Factory/.python-langsmith.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-langsmith" Tue Nov 24 12:41:38 2026 rev:46 rq:1400203 version:0.16.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-langsmith/python-langsmith.changes 2026-11-23 12:26:56.814652488 +0100 +++ /work/SRC/openSUSE:Factory/.python-langsmith.new.1340718/python-langsmith.changes 2026-11-24 12:47:14.234345163 +0100 @@ -1,0 +2,10 @@ +Tue Nov 24 06:29:19 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to 0.16.1: + * CLI: expose sandbox memory, lifecycle, snapshot, volume + and file options + * SDKs: post thread feedback from the Python and JS + clients + * No new runtime dependencies + +------------------------------------------------------------------- Old: ---- langsmith-0.16.0.tar.gz New: ---- langsmith-0.16.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-langsmith.spec ++++++ --- /var/tmp/diff_new_pack.smBlb4/_old 2026-11-24 12:47:15.187385554 +0100 +++ /var/tmp/diff_new_pack.smBlb4/_new 2026-11-24 12:47:15.189385639 +0100 @@ -17,7 +17,7 @@ Name: python-langsmith -Version: 0.16.0 +Version: 0.16.1 Release: 0 Summary: Client library for the LangSmith LLM tracing and evaluation platform License: MIT ++++++ langsmith-0.16.0.tar.gz -> langsmith-0.16.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/.release-please-manifest.json new/langsmith-0.16.1/.release-please-manifest.json --- old/langsmith-0.16.0/.release-please-manifest.json 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/.release-please-manifest.json 2020-02-02 01:00:00.000000000 +0100 @@ -1,3 +1,3 @@ { - ".": "0.16.0" + ".": "0.16.1" } \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/CHANGELOG.md new/langsmith-0.16.1/CHANGELOG.md --- old/langsmith-0.16.0/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 @@ -1,5 +1,13 @@ # Changelog +## [0.16.1](https://github.com/langchain-ai/langsmith-python/compare/v0.16.0...v0.16.1) (2026-11-23) + + +### Features + +* **cli:** expose sandbox memory, lifecycle, snapshot, volume and file options ([1b8dd10](https://github.com/langchain-ai/langsmith-python/commit/1b8dd10c48a953ccde464a48c072f1835f6081ea)) +* **sdks:** post thread feedback from the Python and JS clients ([a76e04c](https://github.com/langchain-ai/langsmith-python/commit/a76e04c94b763d7361b60d4843090ae385d2a931)) + ## [0.16.0](https://github.com/langchain-ai/langsmith-python/compare/v0.15.1...v0.16.0) (2026-11-21) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/PKG-INFO new/langsmith-0.16.1/PKG-INFO --- old/langsmith-0.16.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.5 Name: langsmith -Version: 0.16.0 +Version: 0.16.1 Summary: Client library to connect to the LangSmith Observability and Evaluation Platform. Project-URL: Homepage, https://github.com/langchain-ai/langsmith-python Project-URL: Repository, https://github.com/langchain-ai/langsmith-python diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/pyproject.toml new/langsmith-0.16.1/pyproject.toml --- old/langsmith-0.16.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ [project] name = "langsmith" -version = "0.16.0" +version = "0.16.1" description = "Client library to connect to the LangSmith Observability and Evaluation Platform." dynamic = ["readme"] license = "MIT" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/src/langsmith/_version.py new/langsmith-0.16.1/src/langsmith/_version.py --- old/langsmith-0.16.0/src/langsmith/_version.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/src/langsmith/_version.py 2020-02-02 01:00:00.000000000 +0100 @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "langsmith" -__version__ = "0.16.0" # x-release-please-version +__version__ = "0.16.1" # x-release-please-version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/src/langsmith/async_client.py new/langsmith-0.16.1/src/langsmith/async_client.py --- old/langsmith-0.16.0/src/langsmith/async_client.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/src/langsmith/async_client.py 2020-02-02 01:00:00.000000000 +0100 @@ -1166,9 +1166,10 @@ comment: Optional[str] = None, extend_trace_retention: bool = True, address: Optional[AgentAddress] = None, + thread_id: Optional[str] = None, **kwargs: Any, ) -> ls_schemas.Feedback: - """Create feedback for a run. + """Create feedback for a run, a project, or a thread. !!! note "Addressed feedback" The `address` must already exist -- unlike run ingestion, a feedback @@ -1209,6 +1210,11 @@ Cannot be combined with `session_id` / `project_id`, and is never read from the env vars: feedback follows its run, not the ambient environment. + thread_id: The thread (conversation) to provide feedback for, as + its traces record it. Thread feedback scores the whole + conversation, the way a thread evaluator does. Pass the + thread's project as `session_id` or `project_id` (or its + `address`), and no `run_id` or `trace_id`. **kwargs: Additional deprecated keyword arguments. Returns: @@ -1220,10 +1226,7 @@ address = _addressing.check_address(address) _addressing.reject_conflicting(project=project_id, session_id=session_id, address=address) run_id = run_id or trace_id - if run_id is None and project_id is None: - raise ValueError("One of run_id, trace_id, or project_id must be provided") - if run_id is not None and project_id is not None: - raise ValueError("project_id cannot be provided if run_id or trace_id is provided") + ls_client._check_feedback_target(run_id, project_id, session_id, address, thread_id) if run_id is not None and session_id is None and address is None: # An address locates the project directly, so it satisfies the same # requirement this gate exists for. @@ -1273,6 +1276,7 @@ feedback_config=feedback_config, session_id=session_id_, address=address, + feedback_thread_id=thread_id, start_time=start_time, comparative_experiment_id=ls_client._ensure_uuid(comparative_experiment_id, accept_null=True), feedback_group_id=ls_client._ensure_uuid(feedback_group_id, accept_null=True), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/src/langsmith/client.py new/langsmith-0.16.1/src/langsmith/client.py --- old/langsmith-0.16.0/src/langsmith/client.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/src/langsmith/client.py 2020-02-02 01:00:00.000000000 +0100 @@ -766,6 +766,29 @@ ) +def _check_feedback_target( + run_id: Optional[ID_TYPE], + project_id: Optional[ID_TYPE], + session_id: Optional[ID_TYPE], + address: Optional[AgentAddress], + thread_id: Optional[str], +) -> None: + """Check that feedback names one run, project, or thread in a project. + + ``run_id`` is the run id or, without one, the trace id. + """ + if thread_id is not None: + if run_id is not None: + raise ValueError("thread_id cannot be combined with run_id or trace_id") + if project_id is None and session_id is None and address is None: + raise ValueError("thread_id requires the thread's project: pass session_id, project_id or address") + return + if run_id is None and project_id is None: + raise ValueError("One of run_id, trace_id, or project_id must be provided") + if run_id is not None and project_id is not None: + raise ValueError("project_id cannot be provided if run_id or trace_id is provided") + + def _get_tracing_sampling_rate( tracing_sampling_rate: Optional[float] = None, ) -> float | None: @@ -7940,9 +7963,10 @@ start_time: Optional[datetime.datetime] = None, extend_trace_retention: bool = True, address: Optional[AgentAddress] = None, + thread_id: Optional[str] = None, **kwargs: Any, ) -> ls_schemas.Feedback: - """Create feedback for a run. + """Create feedback for a run, a project, or a thread. !!! note @@ -8017,6 +8041,12 @@ combined with `session_id` / `project_id`, and is never read from the env vars: feedback follows its run, not the ambient environment. + thread_id (Optional[str]): + The thread (conversation) to provide feedback for, as its traces + record it. Thread feedback scores the whole conversation, the + way a thread evaluator does. Pass the thread's project as + `session_id` or `project_id` (or its `address`), and no `run_id` + or `trace_id`. **kwargs (Any): Additional keyword arguments. @@ -8073,15 +8103,20 @@ trace_id=trace_id, session_id=session_id, ) + + # Provide feedback for a whole conversation (thread) + client.create_feedback( + key="resolved", + score=1, + thread_id="my-thread-id", + session_id=session_id, + ) ``` """ address = _addressing.check_address(address) _addressing.reject_conflicting(project=project_id, session_id=session_id, address=address) run_id = run_id or trace_id - if run_id is None and project_id is None: - raise ValueError("One of run_id, trace_id, or project_id must be provided") - if run_id is not None and project_id is not None: - raise ValueError("project_id cannot be provided if run_id or trace_id is provided") + _check_feedback_target(run_id, project_id, session_id, address, thread_id) if run_id is not None and session_id is None and address is None: # An address locates the project directly, so it satisfies the same # requirement this gate exists for. @@ -8136,6 +8171,7 @@ feedback_config=feedback_config, session_id=_session_id, address=address, + feedback_thread_id=thread_id, start_time=start_time, comparative_experiment_id=_ensure_uuid(comparative_experiment_id, accept_null=True), feedback_group_id=_ensure_uuid(feedback_group_id, accept_null=True), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/src/langsmith/resources/sandboxes/volumes.py new/langsmith-0.16.1/src/langsmith/resources/sandboxes/volumes.py --- old/langsmith-0.16.0/src/langsmith/resources/sandboxes/volumes.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/src/langsmith/resources/sandboxes/volumes.py 2020-02-02 01:00:00.000000000 +0100 @@ -64,9 +64,14 @@ to a whole GiB. Args: - name: Name is unique within the workspace. + name: Name of the volume, unique within the workspace. - size_bytes: SizeBytes is the volume's capacity, rounded up to a whole GiB. + size_bytes: Capacity in bytes, rounded up to a whole GiB. + + description: Free-text description, at most 1024 characters. + + labels: Labels to filter and identify the volume by. Keys are lowercase letters, digits, + dots and hyphens. extra_headers: Send extra headers @@ -293,6 +298,10 @@ Args: name: Name of the new volume, unique within the workspace. + description: Free-text description of the new volume, at most 1024 characters. + + labels: Labels for the new volume. Keys are lowercase letters, digits, dots and hyphens. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -361,9 +370,14 @@ to a whole GiB. Args: - name: Name is unique within the workspace. + name: Name of the volume, unique within the workspace. - size_bytes: SizeBytes is the volume's capacity, rounded up to a whole GiB. + size_bytes: Capacity in bytes, rounded up to a whole GiB. + + description: Free-text description, at most 1024 characters. + + labels: Labels to filter and identify the volume by. Keys are lowercase letters, digits, + dots and hyphens. extra_headers: Send extra headers @@ -590,6 +604,10 @@ Args: name: Name of the new volume, unique within the workspace. + description: Free-text description of the new volume, at most 1024 characters. + + labels: Labels for the new volume. Keys are lowercase letters, digits, dots and hyphens. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/src/langsmith/schemas.py new/langsmith-0.16.1/src/langsmith/schemas.py --- old/langsmith-0.16.0/src/langsmith/schemas.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/src/langsmith/schemas.py 2020-02-02 01:00:00.000000000 +0100 @@ -727,6 +727,8 @@ """The source of the feedback.""" session_id: Optional[UUID] = None """The associated project ID (Session = Project) this feedback is logged for.""" + feedback_thread_id: Optional[str] = None + """The thread (conversation) this feedback is about, for thread feedback.""" start_time: Optional[datetime] = None """The start time of the run this feedback is associated with.""" comparative_experiment_id: Optional[UUID] = None diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/src/langsmith/types/sandboxes/volume_clone_params.py new/langsmith-0.16.1/src/langsmith/types/sandboxes/volume_clone_params.py --- old/langsmith-0.16.0/src/langsmith/types/sandboxes/volume_clone_params.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/src/langsmith/types/sandboxes/volume_clone_params.py 2020-02-02 01:00:00.000000000 +0100 @@ -13,5 +13,10 @@ """Name of the new volume, unique within the workspace.""" description: str + """Free-text description of the new volume, at most 1024 characters.""" labels: Dict[str, str] + """Labels for the new volume. + + Keys are lowercase letters, digits, dots and hyphens. + """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/src/langsmith/types/sandboxes/volume_create_params.py new/langsmith-0.16.1/src/langsmith/types/sandboxes/volume_create_params.py --- old/langsmith-0.16.0/src/langsmith/types/sandboxes/volume_create_params.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/src/langsmith/types/sandboxes/volume_create_params.py 2020-02-02 01:00:00.000000000 +0100 @@ -10,11 +10,16 @@ class VolumeCreateParams(TypedDict, total=False): name: Required[str] - """Name is unique within the workspace.""" + """Name of the volume, unique within the workspace.""" size_bytes: Required[int] - """SizeBytes is the volume's capacity, rounded up to a whole GiB.""" + """Capacity in bytes, rounded up to a whole GiB.""" description: str + """Free-text description, at most 1024 characters.""" labels: Dict[str, str] + """Labels to filter and identify the volume by. + + Keys are lowercase letters, digits, dots and hyphens. + """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/tests/unit_tests/test_async_client.py new/langsmith-0.16.1/tests/unit_tests/test_async_client.py --- old/langsmith-0.16.0/tests/unit_tests/test_async_client.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/tests/unit_tests/test_async_client.py 2020-02-02 01:00:00.000000000 +0100 @@ -580,6 +580,22 @@ with pytest.raises(ValueError, match="One of run_id, trace_id, or project_id"): await client.create_feedback(key="test_key") + feedback = await client.create_feedback(key="test_key", thread_id="thread-1", project_id=project_id) + + assert feedback.feedback_thread_id == "thread-1" + body = json.loads(mock_httpx_client.request.call_args.kwargs["content"]) + assert body["feedback_thread_id"] == "thread-1" + assert body["session_id"] == str(project_id) + assert "run_id" not in body + + with pytest.raises(ValueError, match="cannot be combined with run_id"): + await client.create_feedback( + trace_id=uuid.uuid4(), + key="test_key", + thread_id="thread-1", + session_id=project_id, + ) + @mock.patch("langsmith.async_client.httpx.AsyncClient") @pytest.mark.asyncio diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/langsmith-0.16.0/tests/unit_tests/test_client.py new/langsmith-0.16.1/tests/unit_tests/test_client.py --- old/langsmith-0.16.0/tests/unit_tests/test_client.py 2020-02-02 01:00:00.000000000 +0100 +++ new/langsmith-0.16.1/tests/unit_tests/test_client.py 2020-02-02 01:00:00.000000000 +0100 @@ -2754,6 +2754,27 @@ session.request.assert_called_once() +def test_create_feedback_on_a_thread() -> None: + """Thread feedback names the thread and its project, and no run.""" + session = mock.Mock() + client = _feedback_client(session, ch_query_enabled=False, sdb_query_enabled=True) + session_id = uuid.uuid4() + + feedback = client.create_feedback(key="resolved", score=1, thread_id="thread-1", session_id=session_id) + + payload = json.loads(session.request.call_args.kwargs["data"]) + assert payload["feedback_thread_id"] == "thread-1" + assert payload["session_id"] == str(session_id) + assert "run_id" not in payload + assert feedback.feedback_thread_id == "thread-1" + + with pytest.raises(ValueError, match="thread_id requires the thread's project"): + client.create_feedback(key="resolved", thread_id="thread-1") + with pytest.raises(ValueError, match="cannot be combined with run_id"): + client.create_feedback(uuid.uuid4(), key="resolved", thread_id="thread-1", session_id=session_id) + session.request.assert_called_once() + + def test_pydantic_serialize() -> None: """Test that pydantic objects can be serialized.""" test_uuid = uuid.uuid4()
