Zander Chase
f2150285a4
Fix nested runs example ID ( #4413 )
...
#### Only reference example ID on the parent run
Previously, I was assigning the example ID to every child run.
Adds a test.
2023-05-09 12:21:53 -07:00
Zander Chase
a30f42da4e
Update V2 Tracer ( #4193 )
...
- Update the RunCreate object to work with recent changes
- Add optional Example ID to the tracer
- Adjust default persist_session behavior to attempt to load the session
if it exists
- Raise more useful HTTP errors for logging
- Add unit testing
- Fix the default ID to be a UUID for v2 tracer sessions
Broken out from the big draft here:
https://github.com/hwchase17/langchain/pull/4061
2023-05-05 14:55:01 -07:00
Zander Chase
6032a051e9
Add Tenant ID to V2 Tracer ( #4135 )
...
Update the V2 tracer to
- use UUIDs instead of int's
- load a tenant ID and use that when saving sessions
2023-05-04 21:35:20 -07:00
Davis Chase
f08a76250f
Better custom model handling OpenAICallbackHandler ( #4009 )
...
Thanks @maykcaldas for flagging! think this should resolve #3988 . Let me
know if you still see issues after next release.
2023-05-02 16:19:57 -07:00
Ankush Gola
d3ec00b566
Callbacks Refactor [base] ( #3256 )
...
Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Davis Chase <130488702+dev2049@users.noreply.github.com>
Co-authored-by: Zander Chase <130414180+vowelparrot@users.noreply.github.com>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-04-30 11:14:09 -07:00
Ankush Gola
4d730a9bbc
improve AsyncCallbackManager
( #2410 )
2023-04-05 09:31:42 +02:00
Harrison Chase
0e21463f07
(rfc) chat models ( #1424 )
...
Co-authored-by: Ankush Gola <ankush.gola@gmail.com>
2023-03-06 08:34:24 -08:00
Harrison Chase
b7708bbec6
rfc: callback changes ( #1165 )
...
conceptually, no reason a tool should know what an "agent action" is
unless any objections, can change in all callback handlers
2023-02-20 22:54:15 -08:00
Ankush Gola
caa8e4742e
Enable streaming for OpenAI LLM ( #986 )
...
* Support a callback `on_llm_new_token` that users can implement when
`OpenAI.streaming` is set to `True`
2023-02-14 15:06:14 -08:00
Amos Ng
6ad360bdef
Suggestions for better debugging ( #765 )
...
Please feel free to disregard any changes you disagree with
2023-01-28 08:05:20 -08:00
Ankush Gola
57609845df
add tracing support to langchain ( #741 )
...
* add implementations of `BaseCallbackHandler` to support tracing:
`SharedTracer` which is thread-safe and `Tracer` which is not and is
meant to be used locally.
* Tracers persist runs to locally running `langchain-server`
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-01-26 17:38:13 -08:00
Harrison Chase
cbc146720b
verbose flag ( #683 )
2023-01-22 12:44:14 -08:00
Harrison Chase
9e04c34e20
Add BaseCallbackHandler and CallbackManager ( #478 )
...
Co-authored-by: Ankush Gola <9536492+agola11@users.noreply.github.com>
2023-01-04 07:54:25 -08:00