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
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
..
_api docs: Fix bug that caused the word "Beta" to appear twice in doc-strings (#17704) 7 months ago
callbacks core[patch], langchain[patch], community[patch]: Revert #15326 (#15546) 9 months ago
chat_history Add async methods to BaseChatMessageHistory and BaseMemory (#16728) 8 months ago
data Separate out langchain_core package (#13577) 10 months ago
documents core[minor]: move document compressor base (#17910) 7 months ago
example_selectors BUG: more core fixes (#13665) 10 months ago
examples core:adds tests for partial_variables (#15427) 9 months ago
fake infra: fake model invoke callback prior to yielding token (#18286) 7 months ago
language_models [core: minor] fix getters (#15181) 9 months ago
load BUG: more core fixes (#13665) 10 months ago
messages Accept message-like things in Chat models, LLMs and MessagesPlaceholder (#16418) 8 months ago
output_parsers core[patch], langchain[patch], templates: move openai functions parsers to core (#18060) 7 months ago
outputs BUG: more core fixes (#13665) 10 months ago
prompts Add prompt metadata + tags (#17054) 8 months ago
runnables infra: fake model invoke callback prior to yielding token (#18286) 7 months ago
tracers core[patch]: Replace memory stream implementation used by LogStreamCallbackHandler (#17185) 7 months ago
utils core: improve None value processing in merge_dicts() (#17462) 7 months ago
__init__.py Separate out langchain_core package (#13577) 10 months ago
conftest.py core[patch], langchain[patch]: fix required deps (#14373) 10 months ago
prompt_file.txt Separate out langchain_core package (#13577) 10 months ago
test_globals.py Separate out langchain_core package (#13577) 10 months ago
test_imports.py infra: Fix test filesystem paths incompatible with windows (#14388) 9 months ago
test_messages.py core[minor]: add name to basemessage (#17539) 7 months ago
test_outputs.py REFACTOR: Refactor langchain_core (#13627) 10 months ago
test_sys_info.py core(minor): Add a way to print out system information for debugging purposes. (#15718) 9 months ago
test_tools.py core[patch]: Replace memory stream implementation used by LogStreamCallbackHandler (#17185) 7 months ago