Commit Graph

339 Commits

Author SHA1 Message Date
William FH d79fcf164d Wfh/strip not given (#472) 2024-02-23 16:01:16 -08:00
William FH 54ff955f87 Orjson non str key fix (#471) 2024-02-23 15:58:38 -08:00
William FH ca944c68ea Bump Version (#468) 2024-02-23 09:15:32 -08:00
William FH 563dcb5f7b Add split batches (#469) 2024-02-22 17:29:15 -08:00
William FH fc65996e98 Add py 429 retries (#467) 2024-02-22 16:17:34 -08:00
infra fef4281668 Fix migrations 2024-02-20 17:29:58 -08:00
langchain-infra bedc1c9e30 Bump sdk versions (#458) 2024-02-20 19:06:21 -05:00
infra c635407007 Bump sdk versions 2024-02-20 16:03:54 -08:00
langchain-infra 7cd4002cdd Merge branch 'main' into infra/retry-clickhouse 2024-02-20 14:51:39 -05:00
infra acf4b3e4de Add retries to clickhouse 2024-02-20 11:49:28 -08:00
William FH c1a81fc463 Rename get_current_run_tree (#454) 2024-02-19 22:07:23 -08:00
William FH c70c787fae Release (#452) 2024-02-16 10:37:09 -08:00
William FH 1b40136dd2 Wfh/project name (#449)
Add support for:
```
@traceable(project_name="foo")
def foo():
    pass
```
and

```
langsmith.run_helpers.get_current_run_tree()
```

Add support for
```
run_tree.add_metadata()
run_tree.add_events()
run_tree.add_tags()
```
2024-02-16 10:12:44 -08:00
William FH 01211bca96 Update typehints (#448)
So you get linter warnings if you try to do a name. It doesn't actually
alter the behavior, so if we choose to extend the number of types, it
would just be a linting issue rather than a runtime issue
2024-02-15 12:28:02 -08:00
William FH 286a5a60c6 0.1.1 (#445)
Add Warnings for unrecognized traceable run_type
2024-02-15 09:14:14 -08:00
William FH 4ef2c932ab 0.1.0 (#443) 2024-02-15 00:12:49 -08:00
William FH a9a12e98f2 Release w/ updates to listRuns (#440) 2024-02-14 14:27:02 -08:00
William FH dc8e7db9ee Add multi project query support (OR) (#439) 2024-02-14 13:19:35 -08:00
William FH 878ba0785d Wfh/release (#436) 2024-02-13 14:27:37 -08:00
William FH 5502cbf233 Add first token time for oai wrapper (#435) 2024-02-13 12:26:45 -08:00
Nuno Campos 6ff1369f7c OpenAI Wrapper: Don't ignore function/tool calls in openai streaming … (#431) 2024-02-10 18:38:24 -08:00
William FH b214f3a501 Bump version (#430)
JS Prerelease
Python release
2024-02-09 17:23:18 -08:00
Savvas Mantzouranidis 4846756b2e fix depracation warning of .utcnow() (#418)
as seen in the [official
docs](https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow)
datetime.datetime.utcnow() is being deprecated and the suggested
function to use instead is datetime.datetime.now(datetime.UTC) (which
also supports the .isoformat() function)

---------

Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com>
2024-02-09 17:01:12 -08:00
William FH be5c741b46 Filter retries (#419) 2024-02-09 16:57:36 -08:00
William Fu-Hinthorn 5bed6af4fb update 2024-02-09 12:55:44 -08:00
Nuno Campos 8c3c4c9c39 Fix start_time getting overwrriten when using batch endpoint (#421) 2024-02-09 12:40:03 -08:00
William FH 4d6ccae99b Bump (#417) 2024-02-09 08:08:53 -08:00
William FH d2ee8b530c rm 429 (#416) 2024-02-09 08:07:10 -08:00
William FH c6dfe31034 increase timeout (#414) 2024-02-09 01:37:06 -08:00
William FH f7657d96c0 Improve logging (#413) 2024-02-08 18:36:59 -08:00
William FH c27e0fce96 Fix threadpoole exutor and batching (#412) 2024-02-08 18:35:49 -08:00
William FH b8973ee9cd Py=0.0.87, JS=0.0.67 (#409) 2024-02-07 01:15:43 -08:00
Nuno Campos da4595b889 Enable auto batch (#391)
Co-authored-by: William FH <13333726+hinthornw@users.noreply.github.com>
2024-02-07 01:09:35 -08:00
William FH 8e26d22dfb Include stats in readProject (#408)
and speed up int tests
2024-02-07 00:17:26 -08:00
William FH 8fdd2f45c1 Add include_stats (#407) 2024-02-06 13:00:52 -08:00
William FH 8ed33dd725 Wfh/use system batch config (#404) 2024-02-05 16:30:38 -08:00
William FH bef4dfa993 Add info endpoint (#403) 2024-02-05 14:02:18 -08:00
William FH 9c39877059 Release (#399) 2024-02-01 19:41:33 -08:00
William FH 9f34ad1ee0 Fixup int tests (#397)
still flakey though
2024-02-01 19:36:51 -08:00
dependabot[bot] ff871449f9 Bump aiohttp from 3.9.0 to 3.9.2 in /python (#398)
Bumps [aiohttp](https://github.com/aio-libs/aiohttp) from 3.9.0 to
3.9.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/aio-libs/aiohttp/releases">aiohttp's
releases</a>.</em></p>
<blockquote>
<h2>3.9.2</h2>
<h2>Bug fixes</h2>
<ul>
<li>
<p>Fixed server-side websocket connection leak.</p>
<p><em>Related issues and pull requests on GitHub:</em>
<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/7978">#7978</a>.</p>
</li>
<li>
<p>Fixed <code>web.FileResponse</code> doing blocking I/O in the event
loop.</p>
<p><em>Related issues and pull requests on GitHub:</em>
<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8012">#8012</a>.</p>
</li>
<li>
<p>Fixed double compress when compression enabled and compressed file
exists in server file responses.</p>
<p><em>Related issues and pull requests on GitHub:</em>
<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8014">#8014</a>.</p>
</li>
<li>
<p>Added runtime type check for <code>ClientSession</code>
<code>timeout</code> parameter.</p>
<p><em>Related issues and pull requests on GitHub:</em>
<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8021">#8021</a>.</p>
</li>
<li>
<p>Fixed an unhandled exception in the Python HTTP parser on header
lines starting with a colon -- by :user:<code>pajod</code>.</p>
<p>Invalid request lines with anything but a dot between the HTTP major
and minor version are now rejected.
Invalid header field names containing question mark or slash are now
rejected.
Such requests are incompatible with :rfc:<code>9110#section-5.6.2</code>
and are not known to be of any legitimate use.</p>
<p><em>Related issues and pull requests on GitHub:</em>
<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8074">#8074</a>.</p>
</li>
<li>
<p>Improved validation of paths for static resources requests to the
server -- by :user:<code>bdraco</code>.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/aio-libs/aiohttp/blob/master/CHANGES.rst">aiohttp's
changelog</a>.</em></p>
<blockquote>
<h1>3.9.2 (2024-01-28)</h1>
<h2>Bug fixes</h2>
<ul>
<li>
<p>Fixed server-side websocket connection leak.</p>
<p><em>Related issues and pull requests on GitHub:</em>
:issue:<code>7978</code>.</p>
</li>
<li>
<p>Fixed <code>web.FileResponse</code> doing blocking I/O in the event
loop.</p>
<p><em>Related issues and pull requests on GitHub:</em>
:issue:<code>8012</code>.</p>
</li>
<li>
<p>Fixed double compress when compression enabled and compressed file
exists in server file responses.</p>
<p><em>Related issues and pull requests on GitHub:</em>
:issue:<code>8014</code>.</p>
</li>
<li>
<p>Added runtime type check for <code>ClientSession</code>
<code>timeout</code> parameter.</p>
<p><em>Related issues and pull requests on GitHub:</em>
:issue:<code>8021</code>.</p>
</li>
<li>
<p>Fixed an unhandled exception in the Python HTTP parser on header
lines starting with a colon -- by :user:<code>pajod</code>.</p>
<p>Invalid request lines with anything but a dot between the HTTP major
and minor version are now rejected.
Invalid header field names containing question mark or slash are now
rejected.
Such requests are incompatible with :rfc:<code>9110#section-5.6.2</code>
and are not known to be of any legitimate use.</p>
<p><em>Related issues and pull requests on GitHub:</em>
:issue:<code>8074</code>.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/24a6d64966d99182e95f5d3a29541ef2fec397ad"><code>24a6d64</code></a>
Release v3.9.2 (<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8082">#8082</a>)</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/9118a5831e8a65b8c839eb7e4ac983e040ff41df"><code>9118a58</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8079">#8079</a>/1c335944
backport][3.9] Validate static paths (<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8080">#8080</a>)</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/435ad46e6c26cbf6ed9a38764e9ba8e7441a0e3b"><code>435ad46</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/3955">#3955</a>/8960063e
backport][3.9] Replace all tmpdir fixtures with tmp_path (...</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/d33bc21414e283c9e6fe7f6caf69e2ed60d66c82"><code>d33bc21</code></a>
Improve validation in HTTP parser (<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8074">#8074</a>)
(<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8078">#8078</a>)</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/0d945d1be08f2ba8475513216a66411f053c3217"><code>0d945d1</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/7916">#7916</a>/822fbc74
backport][3.9] Add more information to contributing page (...</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/3ec4fa1f0e0a0dad218c75dbe5ed09e22d5cc284"><code>3ec4fa1</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8069">#8069</a>/69bbe874
backport][3.9] 📝 Only show changelog draft for non-release...</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/419d715c42c46daf1a59e0aff61c1f6d10236982"><code>419d715</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8066">#8066</a>/cba34699
backport][3.9] 💅📝 Restructure the changelog for clarity (#...</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/a54dab3b36bcf0d815b9244f52ae7bc5da08f387"><code>a54dab3</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8049">#8049</a>/a379e634
backport][3.9] Set cause for ClientPayloadError (<a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8050">#8050</a>)</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/437ac47fe332106a07a2d5335bb89619f1bc23f7"><code>437ac47</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/7995">#7995</a>/43a5bc50
backport][3.9] Fix examples of
<code>fallback_charset_resolver</code>...</li>
<li><a
href="https://github.com/aio-libs/aiohttp/commit/034e5e34ee11c6138c773d85123490e691e1b708"><code>034e5e3</code></a>
[PR <a
href="https://redirect.github.com/aio-libs/aiohttp/issues/8042">#8042</a>/4b91b530
backport][3.9] Tightening the runtime type check for ssl (...</li>
<li>Additional commits viewable in <a
href="https://github.com/aio-libs/aiohttp/compare/v3.9.0...v3.9.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=aiohttp&package-manager=pip&previous-version=3.9.0&new-version=3.9.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/langchain-ai/langsmith-sdk/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-01 19:34:44 -08:00
William FH 0f466e6262 Add trace ID + dotted order (#392)
Also
- Delete execution_order
- Add default start_time in js
2024-02-01 18:44:01 -08:00
William FH 3b38bcc2c7 Update to use parallel testing (#395) 2024-02-01 16:04:51 -08:00
William FH 9bf23e4e5c Update default python serialization (#394)
Fall back to repr when you reach a certain depth of regular class
traversal
2024-02-01 15:36:47 -08:00
Nuno Campos 82d3ae1697 0.0.85 2024-01-30 11:47:47 -08:00
Nuno Campos f2297089c2 Catch exceptions 2024-01-30 11:45:35 -08:00
William FH 2c7f1665ca Release: 0.0.84 (#388) 2024-01-28 17:09:52 -08:00
William FH 003ef89e91 Wrap OpenAi (#385)
Co-authored-by: Nuno Campos <nuno@langchain.dev>
2024-01-28 16:50:47 -08:00
William FH 00dacc5abe Enable no args decorator (#386)
Change to let you do this:
```
from langsmith import traceable

@traceable
def foo():
    return "bar"
```

Rather than ONLY this:
```
from langsmith import traceable

@traceable() # <- need to call the function
def foo():
    return "bar"
```
2024-01-28 15:42:59 -08:00
William FH 32dda9c1c3 Better Serialize (#387)
Better default handling for:
1. Regular python objects
2. dataclasses
3. attrs
2024-01-27 18:56:39 -08:00
Nuno Campos 377135f6e1 Autoscale background threads for tracer auto batching (#382)
Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com>
2024-01-27 18:04:15 -08:00