langchain-core 0.4.0.dev0__tar.gz → 1.0.0a2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of langchain-core might be problematic. Click here for more details.
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/PKG-INFO +7 -9
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/README.md +5 -7
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/_api/beta_decorator.py +2 -2
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/_api/deprecation.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/beta/runnables/context.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/callbacks/base.py +14 -23
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/callbacks/file.py +13 -2
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/callbacks/manager.py +74 -157
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/callbacks/streaming_stdout.py +3 -4
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/callbacks/usage.py +2 -12
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/chat_history.py +6 -6
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/documents/base.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/documents/compressor.py +9 -6
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/indexing/base.py +2 -2
- langchain_core-1.0.0a2/langchain_core/language_models/_utils.py +307 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/language_models/base.py +35 -23
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/language_models/chat_models.py +248 -54
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/language_models/fake_chat_models.py +28 -81
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/load/dump.py +3 -4
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/__init__.py +30 -24
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/ai.py +188 -30
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/base.py +164 -25
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/__init__.py +89 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/anthropic.py +451 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/bedrock.py +45 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/bedrock_converse.py +47 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/google_genai.py +45 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/google_vertexai.py +47 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/groq.py +45 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/langchain_v0.py +164 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/ollama.py +45 -0
- langchain_core-1.0.0a2/langchain_core/messages/block_translators/openai.py +798 -0
- langchain_core-0.4.0.dev0/langchain_core/messages/content_blocks.py → langchain_core-1.0.0a2/langchain_core/messages/content.py +303 -278
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/human.py +29 -9
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/system.py +29 -9
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/tool.py +94 -13
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/utils.py +34 -234
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/base.py +14 -50
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/json.py +2 -5
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/list.py +2 -7
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/openai_functions.py +5 -28
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/openai_tools.py +49 -90
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/pydantic.py +2 -3
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/transform.py +12 -53
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/xml.py +9 -17
- langchain_core-1.0.0a2/langchain_core/prompt_values.py +142 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/chat.py +1 -3
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/base.py +500 -451
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/branch.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/fallbacks.py +4 -4
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/history.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/passthrough.py +3 -3
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/retry.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/router.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/structured_query.py +3 -7
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tools/base.py +14 -41
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tools/convert.py +2 -22
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tools/retriever.py +1 -8
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tools/structured.py +2 -10
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/_streaming.py +6 -7
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/base.py +7 -14
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/core.py +4 -27
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/event_stream.py +4 -15
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/langchain.py +3 -14
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/log_stream.py +2 -3
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/_merge.py +45 -7
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/function_calling.py +22 -9
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/utils.py +29 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/version.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/pyproject.toml +6 -6
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/benchmarks/test_async_callbacks.py +2 -6
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/_api/test_beta_decorator.py +3 -3
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/fake/callbacks.py +1 -2
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/fake/test_fake_chat_model.py +18 -16
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/chat_models/test_base.py +422 -213
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/chat_models/test_cache.py +20 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/chat_models/test_rate_limiting.py +5 -3
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/load/test_serializable.py +93 -1
- langchain_core-1.0.0a2/tests/unit_tests/messages/block_translators/test_anthropic.py +439 -0
- langchain_core-1.0.0a2/tests/unit_tests/messages/block_translators/test_langchain_v0.py +79 -0
- langchain_core-1.0.0a2/tests/unit_tests/messages/block_translators/test_openai.py +444 -0
- langchain_core-1.0.0a2/tests/unit_tests/messages/block_translators/test_registration.py +29 -0
- langchain_core-1.0.0a2/tests/unit_tests/messages/test_ai.py +461 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/messages/test_imports.py +3 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/messages/test_utils.py +31 -26
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_base_parsers.py +21 -47
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_openai_tools.py +18 -337
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_pydantic_parser.py +8 -6
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/__snapshots__/test_chat.ambr +50 -50
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_prompt.py +1 -1
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_structured.py +2 -2
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/__snapshots__/test_graph.ambr +560 -1847
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/__snapshots__/test_runnable.ambr +750 -2024
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_configurable.py +5 -5
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_fallbacks.py +3 -3
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_runnable.py +2 -2
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_runnable_events_v1.py +81 -16
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_runnable_events_v2.py +77 -16
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_imports.py +3 -2
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_messages.py +174 -203
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_tools.py +69 -289
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/tracers/test_async_base_tracer.py +2 -40
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/tracers/test_base_tracer.py +2 -41
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_utils.py +1 -1
- langchain_core-1.0.0a2/tests/unit_tests/vectorstores/__init__.py +0 -0
- langchain_core-0.4.0.dev0/langchain_core/language_models/_utils.py +0 -176
- langchain_core-0.4.0.dev0/langchain_core/prompt_values.py +0 -246
- langchain_core-0.4.0.dev0/langchain_core/v1/__init__.py +0 -1
- langchain_core-0.4.0.dev0/langchain_core/v1/chat_models.py +0 -1047
- langchain_core-0.4.0.dev0/langchain_core/v1/messages.py +0 -755
- langchain_core-0.4.0.dev0/tests/unit_tests/messages/test_ai.py +0 -198
- langchain_core-0.4.0.dev0/tests/unit_tests/messages/test_content_block_factories.py +0 -974
- langchain_core-0.4.0.dev0/tests/unit_tests/messages/test_response_metadata.py +0 -343
- langchain_core-0.4.0.dev0/tests/unit_tests/messages/test_response_metadata.py.bak +0 -361
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/_api/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/_api/internal.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/_api/path.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/_import_utils.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/agents.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/beta/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/beta/runnables/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/caches.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/callbacks/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/callbacks/stdout.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/chat_loaders.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/chat_sessions.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/document_loaders/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/document_loaders/base.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/document_loaders/blob_loaders.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/document_loaders/langsmith.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/documents/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/documents/transformers.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/embeddings/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/embeddings/embeddings.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/embeddings/fake.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/env.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/example_selectors/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/example_selectors/base.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/example_selectors/length_based.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/example_selectors/semantic_similarity.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/exceptions.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/globals.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/indexing/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/indexing/api.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/indexing/in_memory.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/language_models/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/language_models/fake.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/language_models/llms.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/load/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/load/load.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/load/mapping.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/load/serializable.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/memory.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/chat.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/function.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/messages/modifier.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/format_instructions.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/output_parsers/string.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/outputs/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/outputs/chat_generation.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/outputs/chat_result.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/outputs/generation.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/outputs/llm_result.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/outputs/run_info.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/base.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/dict.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/few_shot.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/few_shot_with_templates.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/image.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/loading.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/message.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/pipeline.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/prompt.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/string.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/prompts/structured.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/py.typed +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/pydantic_v1/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/pydantic_v1/dataclasses.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/pydantic_v1/main.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/rate_limiters.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/retrievers.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/config.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/configurable.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/graph.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/graph_ascii.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/graph_mermaid.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/graph_png.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/schema.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/runnables/utils.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/stores.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/sys_info.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tools/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tools/render.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tools/simple.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/context.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/evaluation.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/langchain_v1.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/memory_stream.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/root_listeners.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/run_collector.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/schemas.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/tracers/stdout.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/aiter.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/env.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/formatting.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/html.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/image.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/input.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/interactive_env.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/iter.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/json.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/json_schema.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/loading.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/mustache.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/pydantic.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/strings.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/utils/usage.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/vectorstores/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/vectorstores/base.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/vectorstores/in_memory.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/vectorstores/utils.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/benchmarks/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/benchmarks/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/integration_tests/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/integration_tests/test_compile.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/_api/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/_api/test_deprecation.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/_api/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/_api/test_path.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/caches/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/caches/test_in_memory_cache.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/callbacks/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/callbacks/test_async_callback_manager.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/callbacks/test_dispatch_custom_event.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/callbacks/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/callbacks/test_sync_callback_manager.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/callbacks/test_usage_callback.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/chat_history/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/chat_history/test_chat_history.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/conftest.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/data/prompt_file.txt +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/data/prompts/prompt_extra_args.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/data/prompts/prompt_missing_args.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/data/prompts/simple_prompt.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/dependencies/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/dependencies/test_dependencies.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/document_loaders/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/document_loaders/test_base.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/document_loaders/test_langsmith.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/documents/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/documents/test_document.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/documents/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/documents/test_str.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/embeddings/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/embeddings/test_deterministic_embedding.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/example_selectors/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/example_selectors/test_base.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/example_selectors/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/example_selectors/test_length_based_example_selector.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/example_selectors/test_similarity.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/example-non-utf8.csv +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/example-non-utf8.txt +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/example-utf8.csv +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/example-utf8.txt +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/example_prompt.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/examples.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/examples.yaml +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/few_shot_prompt.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/few_shot_prompt.yaml +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/few_shot_prompt_example_prompt.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/few_shot_prompt_examples_in.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/few_shot_prompt_yaml_examples.yaml +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/jinja_injection_prompt.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/jinja_injection_prompt.yaml +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/prompt_with_output_parser.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/simple_prompt.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/simple_prompt.yaml +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/simple_prompt_with_template_file.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/examples/simple_template.txt +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/fake/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/indexing/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/indexing/test_hashed_document.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/indexing/test_in_memory_indexer.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/indexing/test_in_memory_record_manager.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/indexing/test_indexing.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/indexing/test_public_api.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/chat_models/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/chat_models/test_benchmark.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/llms/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/llms/test_base.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/llms/test_cache.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/language_models/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/load/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/load/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/messages/__init__.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/output_parsers → langchain_core-1.0.0a2/tests/unit_tests/messages/block_translators}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/outputs → langchain_core-1.0.0a2/tests/unit_tests/output_parsers}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_json.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_list_parser.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_openai_functions.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/output_parsers/test_xml_parser.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/rate_limiters → langchain_core-1.0.0a2/tests/unit_tests/outputs}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/outputs/test_chat_generation.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/outputs/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompt_file.txt +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/__snapshots__/test_prompt.ambr +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/prompt_extra_args.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/prompt_missing_args.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/simple_prompt.json +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_chat.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_dict.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_few_shot.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_few_shot_with_templates.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_image.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_loading.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_pipeline_prompt.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/prompts/test_utils.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/pydantic_utils.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/runnables → langchain_core-1.0.0a2/tests/unit_tests/rate_limiters}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/rate_limiters/test_in_memory_rate_limiter.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/stores → langchain_core-1.0.0a2/tests/unit_tests/runnables}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/__snapshots__/test_fallbacks.ambr +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_concurrency.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_config.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_context.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_graph.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_history.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_tracing_interops.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/runnables/test_utils.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/tracers → langchain_core-1.0.0a2/tests/unit_tests/stores}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/stores/test_in_memory.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/stubs.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_globals.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_outputs.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_prompt_values.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_pydantic_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_pydantic_serde.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_retrievers.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_setup.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/test_sys_info.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/utils → langchain_core-1.0.0a2/tests/unit_tests/tracers}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/tracers/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/tracers/test_langchain.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/tracers/test_memory_stream.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/tracers/test_run_collector.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/tracers/test_schemas.py +0 -0
- {langchain_core-0.4.0.dev0/tests/unit_tests/vectorstores → langchain_core-1.0.0a2/tests/unit_tests/utils}/__init__.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_aiter.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_env.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_function_calling.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_html.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_imports.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_iter.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_json_schema.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_pydantic.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_rm_titles.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_strings.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/utils/test_usage.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/vectorstores/test_in_memory.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/vectorstores/test_utils.py +0 -0
- {langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/tests/unit_tests/vectorstores/test_vectorstore.py +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: langchain-core
|
|
3
|
-
Version:
|
|
3
|
+
Version: 1.0.0a2
|
|
4
4
|
Summary: Building applications with LLMs through composability
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/core
|
|
7
7
|
Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-core%3D%3D0%22&expanded=true
|
|
8
8
|
Project-URL: repository, https://github.com/langchain-ai/langchain
|
|
9
|
-
Requires-Python: >=3.
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
10
|
Requires-Dist: langsmith>=0.3.45
|
|
11
11
|
Requires-Dist: tenacity!=8.4.0,<10.0.0,>=8.1.0
|
|
12
12
|
Requires-Dist: jsonpatch<2.0,>=1.33
|
|
@@ -39,13 +39,13 @@ For full documentation see the [API reference](https://python.langchain.com/api_
|
|
|
39
39
|
|
|
40
40
|
## 1️⃣ Core Interface: Runnables
|
|
41
41
|
|
|
42
|
-
The concept of a Runnable is central to LangChain Core – it is the interface that most LangChain Core components implement, giving them
|
|
42
|
+
The concept of a `Runnable` is central to LangChain Core – it is the interface that most LangChain Core components implement, giving them
|
|
43
43
|
|
|
44
|
-
- a common invocation interface (invoke
|
|
44
|
+
- a common invocation interface (`invoke()`, `batch()`, `stream()`, etc.)
|
|
45
45
|
- built-in utilities for retries, fallbacks, schemas and runtime configurability
|
|
46
|
-
- easy deployment with [
|
|
46
|
+
- easy deployment with [LangGraph](https://github.com/langchain-ai/langgraph)
|
|
47
47
|
|
|
48
|
-
For more check out the [runnable docs](https://python.langchain.com/docs/
|
|
48
|
+
For more check out the [runnable docs](https://python.langchain.com/docs/concepts/runnables/). Examples of components that implement the interface include: LLMs, Chat Models, Prompts, Retrievers, Tools, Output Parsers.
|
|
49
49
|
|
|
50
50
|
You can use LangChain Core objects in two ways:
|
|
51
51
|
|
|
@@ -69,7 +69,7 @@ LangChain Expression Language (LCEL) is a _declarative language_ for composing L
|
|
|
69
69
|
|
|
70
70
|
LangChain Core compiles LCEL sequences to an _optimized execution plan_, with automatic parallelization, streaming, tracing, and async support.
|
|
71
71
|
|
|
72
|
-
For more check out the [LCEL docs](https://python.langchain.com/docs/
|
|
72
|
+
For more check out the [LCEL docs](https://python.langchain.com/docs/concepts/lcel/).
|
|
73
73
|
|
|
74
74
|

|
|
75
75
|
|
|
@@ -77,8 +77,6 @@ For more advanced use cases, also check out [LangGraph](https://github.com/langc
|
|
|
77
77
|
|
|
78
78
|
## 📕 Releases & Versioning
|
|
79
79
|
|
|
80
|
-
`langchain-core` is currently on version `0.1.x`.
|
|
81
|
-
|
|
82
80
|
As `langchain-core` contains the base abstractions and runtime for the whole LangChain ecosystem, we will communicate any breaking changes with advance notice and version bumps. The exception for this is anything in `langchain_core.beta`. The reason for `langchain_core.beta` is that given the rate of change of the field, being able to move quickly is still a priority, and this module is our attempt to do so.
|
|
83
81
|
|
|
84
82
|
Minor version increases will occur for:
|
|
@@ -21,13 +21,13 @@ For full documentation see the [API reference](https://python.langchain.com/api_
|
|
|
21
21
|
|
|
22
22
|
## 1️⃣ Core Interface: Runnables
|
|
23
23
|
|
|
24
|
-
The concept of a Runnable is central to LangChain Core – it is the interface that most LangChain Core components implement, giving them
|
|
24
|
+
The concept of a `Runnable` is central to LangChain Core – it is the interface that most LangChain Core components implement, giving them
|
|
25
25
|
|
|
26
|
-
- a common invocation interface (invoke
|
|
26
|
+
- a common invocation interface (`invoke()`, `batch()`, `stream()`, etc.)
|
|
27
27
|
- built-in utilities for retries, fallbacks, schemas and runtime configurability
|
|
28
|
-
- easy deployment with [
|
|
28
|
+
- easy deployment with [LangGraph](https://github.com/langchain-ai/langgraph)
|
|
29
29
|
|
|
30
|
-
For more check out the [runnable docs](https://python.langchain.com/docs/
|
|
30
|
+
For more check out the [runnable docs](https://python.langchain.com/docs/concepts/runnables/). Examples of components that implement the interface include: LLMs, Chat Models, Prompts, Retrievers, Tools, Output Parsers.
|
|
31
31
|
|
|
32
32
|
You can use LangChain Core objects in two ways:
|
|
33
33
|
|
|
@@ -51,7 +51,7 @@ LangChain Expression Language (LCEL) is a _declarative language_ for composing L
|
|
|
51
51
|
|
|
52
52
|
LangChain Core compiles LCEL sequences to an _optimized execution plan_, with automatic parallelization, streaming, tracing, and async support.
|
|
53
53
|
|
|
54
|
-
For more check out the [LCEL docs](https://python.langchain.com/docs/
|
|
54
|
+
For more check out the [LCEL docs](https://python.langchain.com/docs/concepts/lcel/).
|
|
55
55
|
|
|
56
56
|

|
|
57
57
|
|
|
@@ -59,8 +59,6 @@ For more advanced use cases, also check out [LangGraph](https://github.com/langc
|
|
|
59
59
|
|
|
60
60
|
## 📕 Releases & Versioning
|
|
61
61
|
|
|
62
|
-
`langchain-core` is currently on version `0.1.x`.
|
|
63
|
-
|
|
64
62
|
As `langchain-core` contains the base abstractions and runtime for the whole LangChain ecosystem, we will communicate any breaking changes with advance notice and version bumps. The exception for this is anything in `langchain_core.beta`. The reason for `langchain_core.beta` is that given the rate of change of the field, being able to move quickly is still a priority, and this module is our attempt to do so.
|
|
65
63
|
|
|
66
64
|
Minor version increases will occur for:
|
|
@@ -144,10 +144,9 @@ def beta(
|
|
|
144
144
|
obj.__init__ = functools.wraps(obj.__init__)( # type: ignore[misc]
|
|
145
145
|
warn_if_direct_instance
|
|
146
146
|
)
|
|
147
|
-
return
|
|
147
|
+
return obj
|
|
148
148
|
|
|
149
149
|
elif isinstance(obj, property):
|
|
150
|
-
# note(erick): this block doesn't seem to be used?
|
|
151
150
|
if not _obj_type:
|
|
152
151
|
_obj_type = "attribute"
|
|
153
152
|
wrapped = None
|
|
@@ -168,6 +167,7 @@ def beta(
|
|
|
168
167
|
self.__orig_fget = fget
|
|
169
168
|
self.__orig_fset = fset
|
|
170
169
|
self.__orig_fdel = fdel
|
|
170
|
+
self.__doc__ = doc
|
|
171
171
|
|
|
172
172
|
def __get__(
|
|
173
173
|
self, instance: Any, owner: Union[type, None] = None
|
{langchain_core-0.4.0.dev0 → langchain_core-1.0.0a2}/langchain_core/beta/runnables/context.py
RENAMED
|
@@ -253,7 +253,7 @@ class ContextSet(RunnableSerializable):
|
|
|
253
253
|
"""
|
|
254
254
|
if key is not None:
|
|
255
255
|
kwargs[key] = value
|
|
256
|
-
super().__init__(
|
|
256
|
+
super().__init__(
|
|
257
257
|
keys={
|
|
258
258
|
k: _coerce_set_value(v) if v is not None else None
|
|
259
259
|
for k, v in kwargs.items()
|
|
@@ -7,8 +7,6 @@ from typing import TYPE_CHECKING, Any, Optional, Union
|
|
|
7
7
|
|
|
8
8
|
from typing_extensions import Self
|
|
9
9
|
|
|
10
|
-
from langchain_core.v1.messages import AIMessage, AIMessageChunk, MessageV1
|
|
11
|
-
|
|
12
10
|
if TYPE_CHECKING:
|
|
13
11
|
from collections.abc import Sequence
|
|
14
12
|
from uuid import UUID
|
|
@@ -68,9 +66,7 @@ class LLMManagerMixin:
|
|
|
68
66
|
self,
|
|
69
67
|
token: str,
|
|
70
68
|
*,
|
|
71
|
-
chunk: Optional[
|
|
72
|
-
Union[GenerationChunk, ChatGenerationChunk, AIMessageChunk]
|
|
73
|
-
] = None,
|
|
69
|
+
chunk: Optional[Union[GenerationChunk, ChatGenerationChunk]] = None,
|
|
74
70
|
run_id: UUID,
|
|
75
71
|
parent_run_id: Optional[UUID] = None,
|
|
76
72
|
**kwargs: Any,
|
|
@@ -79,8 +75,8 @@ class LLMManagerMixin:
|
|
|
79
75
|
|
|
80
76
|
Args:
|
|
81
77
|
token (str): The new token.
|
|
82
|
-
chunk (GenerationChunk | ChatGenerationChunk
|
|
83
|
-
|
|
78
|
+
chunk (GenerationChunk | ChatGenerationChunk): The new generated chunk,
|
|
79
|
+
containing content and other information.
|
|
84
80
|
run_id (UUID): The run ID. This is the ID of the current run.
|
|
85
81
|
parent_run_id (UUID): The parent run ID. This is the ID of the parent run.
|
|
86
82
|
kwargs (Any): Additional keyword arguments.
|
|
@@ -88,7 +84,7 @@ class LLMManagerMixin:
|
|
|
88
84
|
|
|
89
85
|
def on_llm_end(
|
|
90
86
|
self,
|
|
91
|
-
response:
|
|
87
|
+
response: LLMResult,
|
|
92
88
|
*,
|
|
93
89
|
run_id: UUID,
|
|
94
90
|
parent_run_id: Optional[UUID] = None,
|
|
@@ -97,7 +93,7 @@ class LLMManagerMixin:
|
|
|
97
93
|
"""Run when LLM ends running.
|
|
98
94
|
|
|
99
95
|
Args:
|
|
100
|
-
response (LLMResult
|
|
96
|
+
response (LLMResult): The response which was generated.
|
|
101
97
|
run_id (UUID): The run ID. This is the ID of the current run.
|
|
102
98
|
parent_run_id (UUID): The parent run ID. This is the ID of the parent run.
|
|
103
99
|
kwargs (Any): Additional keyword arguments.
|
|
@@ -265,7 +261,7 @@ class CallbackManagerMixin:
|
|
|
265
261
|
def on_chat_model_start(
|
|
266
262
|
self,
|
|
267
263
|
serialized: dict[str, Any],
|
|
268
|
-
messages:
|
|
264
|
+
messages: list[list[BaseMessage]],
|
|
269
265
|
*,
|
|
270
266
|
run_id: UUID,
|
|
271
267
|
parent_run_id: Optional[UUID] = None,
|
|
@@ -443,9 +439,6 @@ class BaseCallbackHandler(
|
|
|
443
439
|
run_inline: bool = False
|
|
444
440
|
"""Whether to run the callback inline."""
|
|
445
441
|
|
|
446
|
-
accepts_new_messages: bool = False
|
|
447
|
-
"""Whether the callback accepts new message format."""
|
|
448
|
-
|
|
449
442
|
@property
|
|
450
443
|
def ignore_llm(self) -> bool:
|
|
451
444
|
"""Whether to ignore LLM callbacks."""
|
|
@@ -516,7 +509,7 @@ class AsyncCallbackHandler(BaseCallbackHandler):
|
|
|
516
509
|
async def on_chat_model_start(
|
|
517
510
|
self,
|
|
518
511
|
serialized: dict[str, Any],
|
|
519
|
-
messages:
|
|
512
|
+
messages: list[list[BaseMessage]],
|
|
520
513
|
*,
|
|
521
514
|
run_id: UUID,
|
|
522
515
|
parent_run_id: Optional[UUID] = None,
|
|
@@ -547,9 +540,7 @@ class AsyncCallbackHandler(BaseCallbackHandler):
|
|
|
547
540
|
self,
|
|
548
541
|
token: str,
|
|
549
542
|
*,
|
|
550
|
-
chunk: Optional[
|
|
551
|
-
Union[GenerationChunk, ChatGenerationChunk, AIMessageChunk]
|
|
552
|
-
] = None,
|
|
543
|
+
chunk: Optional[Union[GenerationChunk, ChatGenerationChunk]] = None,
|
|
553
544
|
run_id: UUID,
|
|
554
545
|
parent_run_id: Optional[UUID] = None,
|
|
555
546
|
tags: Optional[list[str]] = None,
|
|
@@ -559,8 +550,8 @@ class AsyncCallbackHandler(BaseCallbackHandler):
|
|
|
559
550
|
|
|
560
551
|
Args:
|
|
561
552
|
token (str): The new token.
|
|
562
|
-
chunk (GenerationChunk | ChatGenerationChunk
|
|
563
|
-
|
|
553
|
+
chunk (GenerationChunk | ChatGenerationChunk): The new generated chunk,
|
|
554
|
+
containing content and other information.
|
|
564
555
|
run_id (UUID): The run ID. This is the ID of the current run.
|
|
565
556
|
parent_run_id (UUID): The parent run ID. This is the ID of the parent run.
|
|
566
557
|
tags (Optional[list[str]]): The tags.
|
|
@@ -569,7 +560,7 @@ class AsyncCallbackHandler(BaseCallbackHandler):
|
|
|
569
560
|
|
|
570
561
|
async def on_llm_end(
|
|
571
562
|
self,
|
|
572
|
-
response:
|
|
563
|
+
response: LLMResult,
|
|
573
564
|
*,
|
|
574
565
|
run_id: UUID,
|
|
575
566
|
parent_run_id: Optional[UUID] = None,
|
|
@@ -579,7 +570,7 @@ class AsyncCallbackHandler(BaseCallbackHandler):
|
|
|
579
570
|
"""Run when LLM ends running.
|
|
580
571
|
|
|
581
572
|
Args:
|
|
582
|
-
response (LLMResult
|
|
573
|
+
response (LLMResult): The response which was generated.
|
|
583
574
|
run_id (UUID): The run ID. This is the ID of the current run.
|
|
584
575
|
parent_run_id (UUID): The parent run ID. This is the ID of the parent run.
|
|
585
576
|
tags (Optional[list[str]]): The tags.
|
|
@@ -603,8 +594,8 @@ class AsyncCallbackHandler(BaseCallbackHandler):
|
|
|
603
594
|
parent_run_id: The parent run ID. This is the ID of the parent run.
|
|
604
595
|
tags: The tags.
|
|
605
596
|
kwargs (Any): Additional keyword arguments.
|
|
606
|
-
- response (LLMResult
|
|
607
|
-
|
|
597
|
+
- response (LLMResult): The response which was generated before
|
|
598
|
+
the error occurred.
|
|
608
599
|
"""
|
|
609
600
|
|
|
610
601
|
async def on_chain_start(
|
|
@@ -49,7 +49,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
49
49
|
mode: The file open mode. Defaults to ``'a'`` (append).
|
|
50
50
|
color: Default color for text output. Defaults to ``None``.
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
.. note::
|
|
53
53
|
When not used as a context manager, a deprecation warning will be issued
|
|
54
54
|
on first use. The file will be opened immediately in ``__init__`` and closed
|
|
55
55
|
in ``__del__`` or when ``close()`` is called explicitly.
|
|
@@ -65,6 +65,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
65
65
|
filename: Path to the output file.
|
|
66
66
|
mode: File open mode (e.g., ``'w'``, ``'a'``, ``'x'``). Defaults to ``'a'``.
|
|
67
67
|
color: Default text color for output. Defaults to ``None``.
|
|
68
|
+
|
|
68
69
|
"""
|
|
69
70
|
self.filename = filename
|
|
70
71
|
self.mode = mode
|
|
@@ -82,9 +83,10 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
82
83
|
Returns:
|
|
83
84
|
The FileCallbackHandler instance.
|
|
84
85
|
|
|
85
|
-
|
|
86
|
+
.. note::
|
|
86
87
|
The file is already opened in ``__init__``, so this just marks that
|
|
87
88
|
the handler is being used as a context manager.
|
|
89
|
+
|
|
88
90
|
"""
|
|
89
91
|
self._file_opened_in_context = True
|
|
90
92
|
return self
|
|
@@ -101,6 +103,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
101
103
|
exc_type: Exception type if an exception occurred.
|
|
102
104
|
exc_val: Exception value if an exception occurred.
|
|
103
105
|
exc_tb: Exception traceback if an exception occurred.
|
|
106
|
+
|
|
104
107
|
"""
|
|
105
108
|
self.close()
|
|
106
109
|
|
|
@@ -113,6 +116,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
113
116
|
|
|
114
117
|
This method is safe to call multiple times and will only close
|
|
115
118
|
the file if it's currently open.
|
|
119
|
+
|
|
116
120
|
"""
|
|
117
121
|
if hasattr(self, "file") and self.file and not self.file.closed:
|
|
118
122
|
self.file.close()
|
|
@@ -133,6 +137,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
133
137
|
|
|
134
138
|
Raises:
|
|
135
139
|
RuntimeError: If the file is closed or not available.
|
|
140
|
+
|
|
136
141
|
"""
|
|
137
142
|
global _GLOBAL_DEPRECATION_WARNED # noqa: PLW0603
|
|
138
143
|
if not self._file_opened_in_context and not _GLOBAL_DEPRECATION_WARNED:
|
|
@@ -163,6 +168,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
163
168
|
serialized: The serialized chain information.
|
|
164
169
|
inputs: The inputs to the chain.
|
|
165
170
|
**kwargs: Additional keyword arguments that may contain ``'name'``.
|
|
171
|
+
|
|
166
172
|
"""
|
|
167
173
|
name = (
|
|
168
174
|
kwargs.get("name")
|
|
@@ -178,6 +184,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
178
184
|
Args:
|
|
179
185
|
outputs: The outputs of the chain.
|
|
180
186
|
**kwargs: Additional keyword arguments.
|
|
187
|
+
|
|
181
188
|
"""
|
|
182
189
|
self._write("\n> Finished chain.", end="\n")
|
|
183
190
|
|
|
@@ -192,6 +199,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
192
199
|
color: Color override for this specific output. If ``None``, uses
|
|
193
200
|
``self.color``.
|
|
194
201
|
**kwargs: Additional keyword arguments.
|
|
202
|
+
|
|
195
203
|
"""
|
|
196
204
|
self._write(action.log, color=color or self.color)
|
|
197
205
|
|
|
@@ -213,6 +221,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
213
221
|
observation_prefix: Optional prefix to write before the output.
|
|
214
222
|
llm_prefix: Optional prefix to write after the output.
|
|
215
223
|
**kwargs: Additional keyword arguments.
|
|
224
|
+
|
|
216
225
|
"""
|
|
217
226
|
if observation_prefix is not None:
|
|
218
227
|
self._write(f"\n{observation_prefix}")
|
|
@@ -232,6 +241,7 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
232
241
|
``self.color``.
|
|
233
242
|
end: String appended after the text. Defaults to ``""``.
|
|
234
243
|
**kwargs: Additional keyword arguments.
|
|
244
|
+
|
|
235
245
|
"""
|
|
236
246
|
self._write(text, color=color or self.color, end=end)
|
|
237
247
|
|
|
@@ -246,5 +256,6 @@ class FileCallbackHandler(BaseCallbackHandler):
|
|
|
246
256
|
color: Color override for this specific output. If ``None``, uses
|
|
247
257
|
``self.color``.
|
|
248
258
|
**kwargs: Additional keyword arguments.
|
|
259
|
+
|
|
249
260
|
"""
|
|
250
261
|
self._write(finish.log, color=color or self.color, end="\n")
|