langchain/tests/unit_tests
Harrison Chase 5d43246694
WIP: stdout callback (#479)
first pass at stdout callback

for the most part, went pretty smoothly. aside from the code here, here
are some comments/observations.

1. 
should somehow default to stdouthandler so i dont have to do 
```
from langchain.callbacks import get_callback_manager
from langchain.callbacks.stdout import StdOutCallbackHandler

get_callback_manager().add_handler(StdOutCallbackHandler())
```

2. I kept around the verbosity flag. 1) this is pretty important for
getting the stdout to look good for agents (and other things). 2) I
actually added this for LLM class since it didn't have it.

3. The only part that isn't basically perfectly moved over is the end of
the agent run. Here's a screenshot of the new stdout tracing
![Screen Shot 2022-12-29 at 4 03 50
PM](https://user-images.githubusercontent.com/11986836/210011538-6a74551a-2e61-437b-98d3-674212dede56.png)

Noticing it is missing logging of the final thought, eg before this is
what it looked like
![Screen Shot 2022-12-29 at 4 13 07
PM](https://user-images.githubusercontent.com/11986836/210011635-de68b3f5-e2b0-4cd3-9f1a-3afe970a8716.png)

The reason its missing is that this was previously logged as part of
agent end (lines 205 and 206)

this is probably only relevant for the std out logger? any thoughts for
how to get it back in?
2022-12-29 21:34:47 -05:00
..
agents WIP: stdout callback (#479) 2022-12-29 21:34:47 -05:00
callbacks WIP: stdout callback (#479) 2022-12-29 21:34:47 -05:00
chains WIP: stdout callback (#479) 2022-12-29 21:34:47 -05:00
data Prompt from file proof of concept using plain text (#127) 2022-11-13 13:15:30 -08:00
docstore wip: add method for both docstore and embeddings (#119) 2022-11-20 16:23:58 -08:00
llms WIP: stdout callback (#479) 2022-12-29 21:34:47 -05:00
prompts Bug Fix (#221) 2022-11-29 07:03:40 -08:00
__init__.py initial commit 2022-10-24 14:51:15 -07:00
test_bash.py update branch name in gha (#274) 2022-12-06 22:28:50 -08:00
test_formatting.py initial commit 2022-10-24 14:51:15 -07:00
test_hyde.py Add BaseCallbackHandler and CallbackManager (#476) 2022-12-29 15:11:37 -05:00
test_python.py Harrison/tools exp (#372) 2022-12-18 21:51:23 -05:00
test_sql_database_schema.py Add schema property to sql database utility class (#448) (#462) 2022-12-28 17:37:53 -05:00
test_sql_database.py Support SQL statements that return no results (#222) 2022-11-29 08:28:45 -08:00
test_text_splitter.py Harrison/improve data augmented generation docs (#390) 2022-12-20 22:24:08 -05:00