You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/core/tests/unit_tests/fake
William De Vena 42341bc787
infra: fake model invoke callback prior to yielding token (#18286)
## PR title
core[patch]: Invoke callback prior to yielding

## PR message
Description: Invoke on_llm_new_token callback prior to yielding token in
_stream and _astream methods.
Issue: https://github.com/langchain-ai/langchain/issues/16913
Dependencies: None
Twitter handle: None
7 months ago
..
__init__.py Separate out langchain_core package (#13577) 10 months ago
callbacks.py core[patch]: add response kwarg to on_llm_error 10 months ago
chat_model.py infra: fake model invoke callback prior to yielding token (#18286) 7 months ago
llm.py core[patch]: add response kwarg to on_llm_error 10 months ago
memory.py REFACTOR: Refactor langchain_core (#13627) 10 months ago
test_fake_chat_model.py Accept message-like things in Chat models, LLMs and MessagesPlaceholder (#16418) 8 months ago