Commit Graph

219 Commits

Author SHA1 Message Date
Nuno Campos fa795abb5e Cannot use underscore_attrs_are_private together with default_factory (#491) 2024-03-04 12:54:04 -08:00
William FH 9b224db58f Custom hide/filter inputs/outputs (#488)
This lets you scope hide inputs/outputs to a client. It also lets you
add custom filters (rather than just masking everything.

You could then use this in the traceable decorator or langchain tracer
to filter runs within a given trace.

It would _not_ facilitate filtering on a span level though, since it
only sees the inputs/outputs and the client is shared within a trace.

Alternatives could include a single function (filter_run) that takes in
a Run object, though then we'd have to re-construct the run within the
client, which is a bit annoying
2024-03-04 09:23:55 -08:00
William FH 6e917c491e Auto Print URL (#483) 2024-03-03 15:43:22 -08:00
Harrison Chase e49153645d add metadata to example, allow for creating feedback on the session level (#486)
Co-authored-by: William Fu-Hinthorn <13333726+hinthornw@users.noreply.github.com>
2024-03-03 15:30:57 -08:00
William FH 40fee5e0b4 Add presigned feedback method (#482) 2024-03-01 18:39:48 -08:00
William Fu-Hinthorn 2ffa92fa9c Add list examples and runs args 2024-03-01 11:51:15 -08:00
William FH 24b03eef22 Update RunTree (#481) 2024-03-01 11:16:00 -08:00
William FH 5994f5f242 Add trace filter (#478) 2024-02-27 13:14:54 -08:00
William FH 13902a599a Make tenant call optional (#477) 2024-02-26 12:52:41 -08:00
William FH 86c2a44fd6 Batching Fix (#474) 2024-02-24 18:50:22 -08:00
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 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 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 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 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 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
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
Nuno Campos 8c3c4c9c39 Fix start_time getting overwrriten when using batch endpoint (#421) 2024-02-09 12:40:03 -08:00
William FH d2ee8b530c rm 429 (#416) 2024-02-09 08:07:10 -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
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 9f34ad1ee0 Fixup int tests (#397)
still flakey though
2024-02-01 19:36:51 -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 f2297089c2 Catch exceptions 2024-01-30 11:45:35 -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
William FH 57456015cf Batch Tracer Endpoint & Tracer Sampling (#342)
Co-authored-by: Nuno Campos <nuno@langchain.dev>
2024-01-27 17:59:58 -08:00
SN 4aa390d639 respect revision_id if it is passed into kwargs of create_run (#376) 2024-01-24 16:30:37 -08:00
SN 5dd392a285 Delete revision_id from kwargs before making run_create 2024-01-24 15:13:51 -08:00
William FH df758b35b2 Add bulk example creation (#379) 2024-01-24 14:48:22 -08:00
SN 1c0a092873 respect revision_id if it is passed into kwargs of create_run 2024-01-23 11:22:06 -08:00