Globals¶
langchain-classic documentation
These docs cover the langchain-classic package. This package will be maintained for security vulnerabilities until December 2026. Users are encouraged to migrate to the langchain package for the latest features and improvements. See docs for langchain
langchain_classic.globals
¶
Global values and configuration that apply to all of LangChain.
| FUNCTION | DESCRIPTION |
|---|---|
get_debug |
Get the value of the |
get_llm_cache |
Get the value of the |
get_verbose |
Get the value of the |
set_debug |
Set a new value for the |
set_llm_cache |
Set a new LLM cache, overwriting the previous value, if any. |
set_verbose |
Set a new value for the |
get_debug
¶
get_debug() -> bool
Get the value of the debug global setting.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
The value of the |
get_llm_cache
¶
get_llm_cache() -> BaseCache | None
Get the value of the llm_cache global setting.
| RETURNS | DESCRIPTION |
|---|---|
BaseCache | None
|
The value of the |
get_verbose
¶
get_verbose() -> bool
Get the value of the verbose global setting.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
The value of the |
set_debug
¶
set_debug(value: bool) -> None
Set a new value for the debug global setting.
| PARAMETER | DESCRIPTION |
|---|---|
value
|
The new value for the
TYPE:
|