langchain/docs/snippets/modules
Predrag Gruevski 9e32120cbb
Deprecate direct access to globals like debug and verbose. (#11311)
Instead of accessing `langchain.debug`, `langchain.verbose`, or
`langchain.llm_cache`, please use the new getter/setter functions in
`langchain.globals`:
- `langchain.globals.set_debug()` and `langchain.globals.get_debug()`
- `langchain.globals.set_verbose()` and
`langchain.globals.get_verbose()`
- `langchain.globals.set_llm_cache()` and
`langchain.globals.get_llm_cache()`

Using the old globals directly will now raise a warning.

---------

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-10-12 15:48:04 -07:00
..
agents Fix typos (#11663) 2023-10-12 11:44:03 -04:00
callbacks docs: agents & callbacks fixes (#10066) 2023-09-01 13:28:55 -07:00
chains Start cookbook and move stuff from use cases (#11636) 2023-10-11 12:27:13 -07:00
data_connection Fix typos (#11663) 2023-10-12 11:44:03 -04:00
memory Fixed typo in get_started.mdx (#10163) 2023-09-04 00:09:50 -07:00
model_io Deprecate direct access to globals like debug and verbose. (#11311) 2023-10-12 15:48:04 -07:00