langchain-core 1.0.0a6__tar.gz → 1.0.0a8__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-1.0.0a8/.gitignore +163 -0
- langchain_core-1.0.0a8/Makefile +75 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/PKG-INFO +10 -21
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/README.md +3 -14
- langchain_core-1.0.0a8/extended_testing_deps.txt +1 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/_api/__init__.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/_api/beta_decorator.py +6 -6
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/_api/deprecation.py +21 -29
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/_api/path.py +3 -6
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/_import_utils.py +2 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/agents.py +10 -11
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/caches.py +7 -7
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/callbacks/base.py +91 -91
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/callbacks/file.py +11 -11
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/callbacks/manager.py +86 -89
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/callbacks/stdout.py +8 -8
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/callbacks/usage.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/chat_history.py +5 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/document_loaders/base.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/document_loaders/langsmith.py +15 -15
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/documents/base.py +16 -16
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/documents/compressor.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/example_selectors/length_based.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/example_selectors/semantic_similarity.py +17 -19
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/exceptions.py +3 -3
- langchain_core-1.0.0a8/langchain_core/globals.py +72 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/indexing/api.py +44 -43
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/indexing/base.py +30 -30
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/indexing/in_memory.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/language_models/_utils.py +5 -7
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/language_models/base.py +18 -132
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/language_models/chat_models.py +118 -227
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/language_models/fake.py +11 -11
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/language_models/fake_chat_models.py +35 -29
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/language_models/llms.py +91 -201
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/load/dump.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/load/load.py +11 -12
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/load/mapping.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/load/serializable.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/ai.py +17 -20
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/base.py +23 -25
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/__init__.py +2 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/anthropic.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/bedrock_converse.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/langchain_v0.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/openai.py +6 -6
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/content.py +120 -124
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/human.py +7 -7
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/system.py +7 -7
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/tool.py +24 -24
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/utils.py +67 -79
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/base.py +12 -14
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/json.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/list.py +3 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/openai_functions.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/openai_tools.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/pydantic.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/transform.py +13 -15
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/xml.py +7 -9
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/outputs/chat_generation.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/outputs/chat_result.py +1 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/outputs/generation.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/outputs/llm_result.py +5 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/__init__.py +1 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/base.py +10 -15
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/chat.py +31 -82
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/dict.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/few_shot.py +5 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/few_shot_with_templates.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/loading.py +3 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/prompt.py +4 -16
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/string.py +2 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/structured.py +16 -23
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/rate_limiters.py +3 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/retrievers.py +14 -14
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/base.py +928 -1042
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/branch.py +36 -40
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/config.py +27 -35
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/configurable.py +108 -124
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/fallbacks.py +76 -72
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/graph.py +39 -45
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/graph_ascii.py +9 -11
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/graph_mermaid.py +18 -19
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/graph_png.py +8 -9
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/history.py +114 -127
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/passthrough.py +113 -139
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/retry.py +43 -48
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/router.py +23 -28
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/schema.py +42 -44
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/utils.py +28 -31
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/stores.py +9 -13
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/structured_query.py +8 -8
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tools/base.py +62 -115
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tools/convert.py +31 -35
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tools/render.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tools/retriever.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tools/simple.py +13 -17
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tools/structured.py +12 -15
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/base.py +62 -64
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/context.py +17 -35
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/core.py +49 -53
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/evaluation.py +11 -11
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/event_stream.py +58 -60
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/langchain.py +13 -13
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/log_stream.py +22 -24
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/root_listeners.py +14 -14
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/run_collector.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/schemas.py +8 -8
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/stdout.py +2 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/__init__.py +0 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/_merge.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/aiter.py +24 -28
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/env.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/function_calling.py +31 -41
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/html.py +3 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/input.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/iter.py +15 -19
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/json.py +3 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/json_schema.py +6 -6
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/mustache.py +3 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/pydantic.py +16 -18
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/usage.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/utils.py +29 -29
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/vectorstores/base.py +18 -21
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/vectorstores/in_memory.py +14 -87
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/vectorstores/utils.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/version.py +1 -1
- langchain_core-1.0.0a8/pyproject.toml +133 -0
- langchain_core-1.0.0a8/scripts/check_imports.py +24 -0
- langchain_core-1.0.0a8/scripts/lint_imports.sh +17 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/benchmarks/test_async_callbacks.py +7 -7
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/_api/test_deprecation.py +12 -12
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/callbacks/test_async_callback_manager.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/callbacks/test_dispatch_custom_event.py +5 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/example_selectors/test_base.py +1 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/example_selectors/test_similarity.py +6 -6
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/fake/callbacks.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/fake/test_fake_chat_model.py +7 -7
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/chat_models/test_base.py +185 -29
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/chat_models/test_cache.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/llms/test_base.py +15 -15
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/llms/test_cache.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/block_translators/test_anthropic.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/block_translators/test_bedrock.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/block_translators/test_bedrock_converse.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/block_translators/test_openai.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/test_ai.py +7 -15
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/test_utils.py +15 -6
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_openai_tools.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_pydantic_parser.py +3 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/outputs/test_chat_generation.py +2 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/__snapshots__/test_chat.ambr +8 -10
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_chat.py +2 -33
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_imports.py +0 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_prompt.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_structured.py +4 -4
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/pydantic_utils.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/__snapshots__/test_graph.ambr +4 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/__snapshots__/test_runnable.ambr +32 -40
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_configurable.py +5 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_fallbacks.py +10 -13
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_graph.py +3 -3
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_history.py +21 -22
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_runnable.py +18 -18
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_runnable_events_v1.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_runnable_events_v2.py +7 -9
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_tracing_interops.py +5 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_utils.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_imports.py +1 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_messages.py +3 -5
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_tools.py +44 -52
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/test_async_base_tracer.py +3 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/test_base_tracer.py +3 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_function_calling.py +11 -14
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_imports.py +0 -1
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_pydantic.py +2 -2
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_utils.py +14 -13
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/vectorstores/test_vectorstore.py +7 -7
- langchain_core-1.0.0a8/uv.lock +3372 -0
- langchain_core-1.0.0a6/langchain_core/globals.py +0 -220
- langchain_core-1.0.0a6/langchain_core/messages/block_translators/ollama.py +0 -47
- langchain_core-1.0.0a6/langchain_core/prompts/pipeline.py +0 -138
- langchain_core-1.0.0a6/langchain_core/tracers/langchain_v1.py +0 -31
- langchain_core-1.0.0a6/langchain_core/utils/loading.py +0 -35
- langchain_core-1.0.0a6/pyproject.toml +0 -181
- langchain_core-1.0.0a6/tests/unit_tests/prompts/test_pipeline_prompt.py +0 -68
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/_api/internal.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/callbacks/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/callbacks/streaming_stdout.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/chat_loaders.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/chat_sessions.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/document_loaders/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/document_loaders/blob_loaders.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/documents/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/documents/transformers.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/embeddings/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/embeddings/embeddings.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/embeddings/fake.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/env.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/example_selectors/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/example_selectors/base.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/indexing/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/language_models/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/load/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/memory.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/bedrock.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/google_genai.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/google_vertexai.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/block_translators/groq.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/chat.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/function.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/messages/modifier.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/format_instructions.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/output_parsers/string.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/outputs/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/outputs/run_info.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompt_values.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/image.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/prompts/message.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/py.typed +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/pydantic_v1/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/pydantic_v1/dataclasses.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/pydantic_v1/main.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/runnables/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/sys_info.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tools/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/_streaming.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/tracers/memory_stream.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/formatting.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/image.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/interactive_env.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/utils/strings.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/langchain_core/vectorstores/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/benchmarks/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/benchmarks/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/integration_tests/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/integration_tests/test_compile.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/_api/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/_api/test_beta_decorator.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/_api/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/_api/test_path.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/caches/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/caches/test_in_memory_cache.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/callbacks/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/callbacks/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/callbacks/test_sync_callback_manager.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/callbacks/test_usage_callback.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/chat_history/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/chat_history/test_chat_history.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/conftest.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/data/prompt_file.txt +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/data/prompts/prompt_extra_args.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/data/prompts/prompt_missing_args.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/data/prompts/simple_prompt.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/dependencies/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/dependencies/test_dependencies.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/document_loaders/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/document_loaders/test_base.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/document_loaders/test_langsmith.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/documents/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/documents/test_document.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/documents/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/documents/test_str.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/embeddings/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/embeddings/test_deterministic_embedding.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/example_selectors/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/example_selectors/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/example_selectors/test_length_based_example_selector.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/example-non-utf8.csv +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/example-non-utf8.txt +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/example-utf8.csv +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/example-utf8.txt +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/example_prompt.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/examples.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/examples.yaml +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/few_shot_prompt.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/few_shot_prompt.yaml +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/few_shot_prompt_example_prompt.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/few_shot_prompt_examples_in.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/few_shot_prompt_yaml_examples.yaml +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/jinja_injection_prompt.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/jinja_injection_prompt.yaml +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/prompt_with_output_parser.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/simple_prompt.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/simple_prompt.yaml +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/simple_prompt_with_template_file.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/examples/simple_template.txt +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/fake/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/indexing/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/indexing/test_hashed_document.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/indexing/test_in_memory_indexer.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/indexing/test_in_memory_record_manager.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/indexing/test_indexing.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/indexing/test_public_api.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/chat_models/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/chat_models/test_benchmark.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/chat_models/test_rate_limiting.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/llms/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/language_models/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/load/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/load/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/load/test_serializable.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/block_translators/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/block_translators/test_langchain_v0.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/block_translators/test_registration.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/messages/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_base_parsers.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_json.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_list_parser.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_openai_functions.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/output_parsers/test_xml_parser.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/outputs/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/outputs/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompt_file.txt +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/__snapshots__/test_prompt.ambr +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/prompt_extra_args.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/prompt_missing_args.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/simple_prompt.json +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_dict.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_few_shot.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_few_shot_with_templates.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_image.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_loading.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/prompts/test_utils.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/rate_limiters/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/rate_limiters/test_in_memory_rate_limiter.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/__snapshots__/test_fallbacks.ambr +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_concurrency.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_config.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/runnables/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/stores/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/stores/test_in_memory.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/stubs.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_globals.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_outputs.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_prompt_values.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_pydantic_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_pydantic_serde.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_retrievers.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_setup.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/test_sys_info.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/test_imports.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/test_langchain.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/test_memory_stream.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/test_run_collector.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/tracers/test_schemas.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_aiter.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_env.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_html.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_iter.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_json_schema.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_rm_titles.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_strings.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/utils/test_usage.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/vectorstores/__init__.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/vectorstores/test_in_memory.py +0 -0
- {langchain_core-1.0.0a6 → langchain_core-1.0.0a8}/tests/unit_tests/vectorstores/test_utils.py +0 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.vs/
|
|
2
|
+
.claude/
|
|
3
|
+
.idea/
|
|
4
|
+
# Byte-compiled / optimized / DLL files
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*$py.class
|
|
8
|
+
|
|
9
|
+
# C extensions
|
|
10
|
+
*.so
|
|
11
|
+
|
|
12
|
+
# Distribution / packaging
|
|
13
|
+
.Python
|
|
14
|
+
build/
|
|
15
|
+
develop-eggs/
|
|
16
|
+
dist/
|
|
17
|
+
downloads/
|
|
18
|
+
eggs/
|
|
19
|
+
.eggs/
|
|
20
|
+
lib/
|
|
21
|
+
lib64/
|
|
22
|
+
parts/
|
|
23
|
+
sdist/
|
|
24
|
+
var/
|
|
25
|
+
wheels/
|
|
26
|
+
pip-wheel-metadata/
|
|
27
|
+
share/python-wheels/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
.installed.cfg
|
|
30
|
+
*.egg
|
|
31
|
+
MANIFEST
|
|
32
|
+
|
|
33
|
+
# Google GitHub Actions credentials files created by:
|
|
34
|
+
# https://github.com/google-github-actions/auth
|
|
35
|
+
#
|
|
36
|
+
# That action recommends adding this gitignore to prevent accidentally committing keys.
|
|
37
|
+
gha-creds-*.json
|
|
38
|
+
|
|
39
|
+
# PyInstaller
|
|
40
|
+
# Usually these files are written by a python script from a template
|
|
41
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
42
|
+
*.manifest
|
|
43
|
+
*.spec
|
|
44
|
+
|
|
45
|
+
# Installer logs
|
|
46
|
+
pip-log.txt
|
|
47
|
+
pip-delete-this-directory.txt
|
|
48
|
+
|
|
49
|
+
# Unit test / coverage reports
|
|
50
|
+
htmlcov/
|
|
51
|
+
.tox/
|
|
52
|
+
.nox/
|
|
53
|
+
.coverage
|
|
54
|
+
.coverage.*
|
|
55
|
+
.cache
|
|
56
|
+
nosetests.xml
|
|
57
|
+
coverage.xml
|
|
58
|
+
*.cover
|
|
59
|
+
*.py,cover
|
|
60
|
+
.hypothesis/
|
|
61
|
+
.pytest_cache/
|
|
62
|
+
.codspeed/
|
|
63
|
+
|
|
64
|
+
# Translations
|
|
65
|
+
*.mo
|
|
66
|
+
*.pot
|
|
67
|
+
|
|
68
|
+
# Django stuff:
|
|
69
|
+
*.log
|
|
70
|
+
local_settings.py
|
|
71
|
+
db.sqlite3
|
|
72
|
+
db.sqlite3-journal
|
|
73
|
+
|
|
74
|
+
# Flask stuff:
|
|
75
|
+
instance/
|
|
76
|
+
.webassets-cache
|
|
77
|
+
|
|
78
|
+
# Scrapy stuff:
|
|
79
|
+
.scrapy
|
|
80
|
+
|
|
81
|
+
# PyBuilder
|
|
82
|
+
target/
|
|
83
|
+
|
|
84
|
+
# Jupyter Notebook
|
|
85
|
+
.ipynb_checkpoints
|
|
86
|
+
notebooks/
|
|
87
|
+
|
|
88
|
+
# IPython
|
|
89
|
+
profile_default/
|
|
90
|
+
ipython_config.py
|
|
91
|
+
|
|
92
|
+
# pyenv
|
|
93
|
+
.python-version
|
|
94
|
+
|
|
95
|
+
# pipenv
|
|
96
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
97
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
98
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
99
|
+
# install all needed dependencies.
|
|
100
|
+
#Pipfile.lock
|
|
101
|
+
|
|
102
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
103
|
+
__pypackages__/
|
|
104
|
+
|
|
105
|
+
# Celery stuff
|
|
106
|
+
celerybeat-schedule
|
|
107
|
+
celerybeat.pid
|
|
108
|
+
|
|
109
|
+
# SageMath parsed files
|
|
110
|
+
*.sage.py
|
|
111
|
+
|
|
112
|
+
# Environments
|
|
113
|
+
.env
|
|
114
|
+
.envrc
|
|
115
|
+
.venv*
|
|
116
|
+
venv*
|
|
117
|
+
env/
|
|
118
|
+
ENV/
|
|
119
|
+
env.bak/
|
|
120
|
+
|
|
121
|
+
# Spyder project settings
|
|
122
|
+
.spyderproject
|
|
123
|
+
.spyproject
|
|
124
|
+
|
|
125
|
+
# Rope project settings
|
|
126
|
+
.ropeproject
|
|
127
|
+
|
|
128
|
+
# mkdocs documentation
|
|
129
|
+
/site
|
|
130
|
+
|
|
131
|
+
# mypy
|
|
132
|
+
.mypy_cache/
|
|
133
|
+
.mypy_cache_test/
|
|
134
|
+
.dmypy.json
|
|
135
|
+
dmypy.json
|
|
136
|
+
|
|
137
|
+
# Pyre type checker
|
|
138
|
+
.pyre/
|
|
139
|
+
|
|
140
|
+
# macOS display setting files
|
|
141
|
+
.DS_Store
|
|
142
|
+
|
|
143
|
+
# Wandb directory
|
|
144
|
+
wandb/
|
|
145
|
+
|
|
146
|
+
# asdf tool versions
|
|
147
|
+
.tool-versions
|
|
148
|
+
/.ruff_cache/
|
|
149
|
+
|
|
150
|
+
*.pkl
|
|
151
|
+
*.bin
|
|
152
|
+
|
|
153
|
+
# integration test artifacts
|
|
154
|
+
data_map*
|
|
155
|
+
\[('_type', 'fake'), ('stop', None)]
|
|
156
|
+
|
|
157
|
+
# Replit files
|
|
158
|
+
*replit*
|
|
159
|
+
|
|
160
|
+
node_modules
|
|
161
|
+
|
|
162
|
+
prof
|
|
163
|
+
virtualenv/
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
.PHONY: all format lint test tests test_watch integration_tests help extended_tests
|
|
2
|
+
|
|
3
|
+
# Default target executed when no arguments are given to make.
|
|
4
|
+
all: help
|
|
5
|
+
|
|
6
|
+
# Define a variable for the test file path.
|
|
7
|
+
TEST_FILE ?= tests/unit_tests/
|
|
8
|
+
|
|
9
|
+
.EXPORT_ALL_VARIABLES:
|
|
10
|
+
UV_FROZEN = true
|
|
11
|
+
|
|
12
|
+
test tests:
|
|
13
|
+
env \
|
|
14
|
+
-u LANGCHAIN_TRACING_V2 \
|
|
15
|
+
-u LANGCHAIN_API_KEY \
|
|
16
|
+
-u LANGSMITH_TRACING \
|
|
17
|
+
-u LANGCHAIN_PROJECT \
|
|
18
|
+
uv run --group test pytest -n auto --disable-socket --allow-unix-socket $(TEST_FILE)
|
|
19
|
+
|
|
20
|
+
test_watch:
|
|
21
|
+
env \
|
|
22
|
+
-u LANGCHAIN_TRACING_V2 \
|
|
23
|
+
-u LANGCHAIN_API_KEY \
|
|
24
|
+
-u LANGSMITH_TRACING \
|
|
25
|
+
-u LANGCHAIN_PROJECT \
|
|
26
|
+
uv run --group test ptw --snapshot-update --now . --disable-socket --allow-unix-socket -vv -- $(TEST_FILE)
|
|
27
|
+
|
|
28
|
+
test_profile:
|
|
29
|
+
uv run --group test pytest -vv tests/unit_tests/ --profile-svg
|
|
30
|
+
|
|
31
|
+
check_imports: $(shell find langchain_core -name '*.py')
|
|
32
|
+
uv run --group test python ./scripts/check_imports.py $^
|
|
33
|
+
|
|
34
|
+
extended_tests:
|
|
35
|
+
uv run --group test pytest --only-extended --disable-socket --allow-unix-socket $(TEST_FILE)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
######################
|
|
39
|
+
# LINTING AND FORMATTING
|
|
40
|
+
######################
|
|
41
|
+
|
|
42
|
+
# Define a variable for Python and notebook files.
|
|
43
|
+
PYTHON_FILES=.
|
|
44
|
+
MYPY_CACHE=.mypy_cache
|
|
45
|
+
lint format: PYTHON_FILES=.
|
|
46
|
+
lint_diff format_diff: PYTHON_FILES=$(shell git diff --relative=libs/core --name-only --diff-filter=d master | grep -E '\.py$$|\.ipynb$$')
|
|
47
|
+
lint_package: PYTHON_FILES=langchain_core
|
|
48
|
+
lint_tests: PYTHON_FILES=tests
|
|
49
|
+
lint_tests: MYPY_CACHE=.mypy_cache_test
|
|
50
|
+
|
|
51
|
+
lint lint_diff lint_package lint_tests:
|
|
52
|
+
./scripts/lint_imports.sh
|
|
53
|
+
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check $(PYTHON_FILES)
|
|
54
|
+
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES) --diff
|
|
55
|
+
[ "$(PYTHON_FILES)" = "" ] || mkdir -p $(MYPY_CACHE) && uv run --all-groups mypy $(PYTHON_FILES) --cache-dir $(MYPY_CACHE)
|
|
56
|
+
|
|
57
|
+
format format_diff:
|
|
58
|
+
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff format $(PYTHON_FILES)
|
|
59
|
+
[ "$(PYTHON_FILES)" = "" ] || uv run --all-groups ruff check --fix $(PYTHON_FILES)
|
|
60
|
+
|
|
61
|
+
benchmark:
|
|
62
|
+
uv run pytest tests/benchmarks --codspeed
|
|
63
|
+
|
|
64
|
+
######################
|
|
65
|
+
# HELP
|
|
66
|
+
######################
|
|
67
|
+
|
|
68
|
+
help:
|
|
69
|
+
@echo '----'
|
|
70
|
+
@echo 'format - run code formatters'
|
|
71
|
+
@echo 'lint - run linters'
|
|
72
|
+
@echo 'test - run unit tests'
|
|
73
|
+
@echo 'tests - run unit tests'
|
|
74
|
+
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
|
75
|
+
@echo 'test_watch - run unit tests in watch mode'
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: langchain-core
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0a8
|
|
4
4
|
Summary: Building applications with LLMs through composability
|
|
5
|
-
License: MIT
|
|
6
5
|
Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/core
|
|
7
6
|
Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22langchain-core%3D%3D0%22&expanded=true
|
|
8
7
|
Project-URL: repository, https://github.com/langchain-ai/langchain
|
|
8
|
+
License: MIT
|
|
9
9
|
Requires-Python: <4.0.0,>=3.10.0
|
|
10
|
-
Requires-Dist: langsmith<1.0.0,>=0.3.45
|
|
11
|
-
Requires-Dist: tenacity!=8.4.0,<10.0.0,>=8.1.0
|
|
12
10
|
Requires-Dist: jsonpatch<2.0.0,>=1.33.0
|
|
13
|
-
Requires-Dist:
|
|
14
|
-
Requires-Dist: typing-extensions<5.0.0,>=4.7.0
|
|
11
|
+
Requires-Dist: langsmith<1.0.0,>=0.3.45
|
|
15
12
|
Requires-Dist: packaging<26.0.0,>=23.2.0
|
|
16
13
|
Requires-Dist: pydantic<3.0.0,>=2.7.4
|
|
14
|
+
Requires-Dist: pyyaml<7.0.0,>=5.3.0
|
|
15
|
+
Requires-Dist: tenacity!=8.4.0,<10.0.0,>=8.1.0
|
|
16
|
+
Requires-Dist: typing-extensions<5.0.0,>=4.7.0
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
19
|
# 🦜🍎️ LangChain Core
|
|
@@ -35,7 +35,7 @@ These abstractions are designed to be as modular and simple as possible.
|
|
|
35
35
|
|
|
36
36
|
The benefit of having these abstractions is that any provider can implement the required interface and then easily be used in the rest of the LangChain ecosystem.
|
|
37
37
|
|
|
38
|
-
For full documentation see the [API reference](https://
|
|
38
|
+
For full documentation see the [API reference](https://reference.langchain.com/python/).
|
|
39
39
|
|
|
40
40
|
## ⛰️ Why build on top of LangChain Core?
|
|
41
41
|
|
|
@@ -47,21 +47,10 @@ The LangChain ecosystem is built on top of `langchain-core`. Some of the benefit
|
|
|
47
47
|
|
|
48
48
|
## 📕 Releases & Versioning
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Minor version increases will occur for:
|
|
53
|
-
|
|
54
|
-
- Breaking changes for any public interfaces NOT in `langchain_core.beta`
|
|
55
|
-
|
|
56
|
-
Patch version increases will occur for:
|
|
57
|
-
|
|
58
|
-
- Bug fixes
|
|
59
|
-
- New features
|
|
60
|
-
- Any changes to private interfaces
|
|
61
|
-
- Any changes to `langchain_core.beta`
|
|
50
|
+
See our [Releases](https://docs.langchain.com/oss/python/release-policy) and [Versioning Policy](https://docs.langchain.com/oss/python/versioning).
|
|
62
51
|
|
|
63
52
|
## 💁 Contributing
|
|
64
53
|
|
|
65
54
|
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
|
|
66
55
|
|
|
67
|
-
For detailed information on how to contribute, see the [Contributing Guide](https://
|
|
56
|
+
For detailed information on how to contribute, see the [Contributing Guide](https://docs.langchain.com/oss/python/contributing).
|
|
@@ -17,7 +17,7 @@ These abstractions are designed to be as modular and simple as possible.
|
|
|
17
17
|
|
|
18
18
|
The benefit of having these abstractions is that any provider can implement the required interface and then easily be used in the rest of the LangChain ecosystem.
|
|
19
19
|
|
|
20
|
-
For full documentation see the [API reference](https://
|
|
20
|
+
For full documentation see the [API reference](https://reference.langchain.com/python/).
|
|
21
21
|
|
|
22
22
|
## ⛰️ Why build on top of LangChain Core?
|
|
23
23
|
|
|
@@ -29,21 +29,10 @@ The LangChain ecosystem is built on top of `langchain-core`. Some of the benefit
|
|
|
29
29
|
|
|
30
30
|
## 📕 Releases & Versioning
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
Minor version increases will occur for:
|
|
35
|
-
|
|
36
|
-
- Breaking changes for any public interfaces NOT in `langchain_core.beta`
|
|
37
|
-
|
|
38
|
-
Patch version increases will occur for:
|
|
39
|
-
|
|
40
|
-
- Bug fixes
|
|
41
|
-
- New features
|
|
42
|
-
- Any changes to private interfaces
|
|
43
|
-
- Any changes to `langchain_core.beta`
|
|
32
|
+
See our [Releases](https://docs.langchain.com/oss/python/release-policy) and [Versioning Policy](https://docs.langchain.com/oss/python/versioning).
|
|
44
33
|
|
|
45
34
|
## 💁 Contributing
|
|
46
35
|
|
|
47
36
|
As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.
|
|
48
37
|
|
|
49
|
-
For detailed information on how to contribute, see the [Contributing Guide](https://
|
|
38
|
+
For detailed information on how to contribute, see the [Contributing Guide](https://docs.langchain.com/oss/python/contributing).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
jinja2>=3,<4
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
This module is only relevant for LangChain developers, not for users.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
!!! warning
|
|
6
6
|
|
|
7
|
-
This module and its submodules are for internal use only.
|
|
8
|
-
|
|
7
|
+
This module and its submodules are for internal use only. Do not use them in your
|
|
8
|
+
own code. We may change the API at any time with no warning.
|
|
9
9
|
|
|
10
10
|
"""
|
|
11
11
|
|
|
@@ -4,18 +4,18 @@ This module was loosely adapted from matplotlibs _api/deprecation.py module:
|
|
|
4
4
|
|
|
5
5
|
https://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/_api/deprecation.py
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
!!! warning
|
|
8
8
|
|
|
9
|
-
This module is for internal use only.
|
|
10
|
-
|
|
9
|
+
This module is for internal use only. Do not use it in your own code. We may change
|
|
10
|
+
the API at any time with no warning.
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
import contextlib
|
|
14
14
|
import functools
|
|
15
15
|
import inspect
|
|
16
16
|
import warnings
|
|
17
|
-
from collections.abc import Generator
|
|
18
|
-
from typing import Any,
|
|
17
|
+
from collections.abc import Callable, Generator
|
|
18
|
+
from typing import Any, TypeVar, cast
|
|
19
19
|
|
|
20
20
|
from langchain_core._api.internal import is_caller_internal
|
|
21
21
|
|
|
@@ -27,7 +27,7 @@ class LangChainBetaWarning(DeprecationWarning):
|
|
|
27
27
|
# PUBLIC API
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
T = TypeVar("T", bound=
|
|
30
|
+
T = TypeVar("T", bound=Callable[..., Any] | type)
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
def beta(
|
|
@@ -4,23 +4,21 @@ This module was adapted from matplotlibs _api/deprecation.py module:
|
|
|
4
4
|
|
|
5
5
|
https://github.com/matplotlib/matplotlib/blob/main/lib/matplotlib/_api/deprecation.py
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
!!! warning
|
|
8
8
|
|
|
9
|
-
This module is for internal use only.
|
|
10
|
-
|
|
9
|
+
This module is for internal use only. Do not use it in your own code. We may change
|
|
10
|
+
the API at any time with no warning.
|
|
11
11
|
"""
|
|
12
12
|
|
|
13
13
|
import contextlib
|
|
14
14
|
import functools
|
|
15
15
|
import inspect
|
|
16
16
|
import warnings
|
|
17
|
-
from collections.abc import Generator
|
|
17
|
+
from collections.abc import Callable, Generator
|
|
18
18
|
from typing import (
|
|
19
19
|
Any,
|
|
20
|
-
Callable,
|
|
21
20
|
ParamSpec,
|
|
22
21
|
TypeVar,
|
|
23
|
-
Union,
|
|
24
22
|
cast,
|
|
25
23
|
)
|
|
26
24
|
|
|
@@ -42,7 +40,7 @@ class LangChainPendingDeprecationWarning(PendingDeprecationWarning):
|
|
|
42
40
|
|
|
43
41
|
|
|
44
42
|
# Last Any should be FieldInfoV1 but this leads to circular imports
|
|
45
|
-
T = TypeVar("T", bound=
|
|
43
|
+
T = TypeVar("T", bound=type | Callable[..., Any] | Any)
|
|
46
44
|
|
|
47
45
|
|
|
48
46
|
def _validate_deprecation_params(
|
|
@@ -276,7 +274,7 @@ def deprecated(
|
|
|
276
274
|
if not _obj_type:
|
|
277
275
|
_obj_type = "attribute"
|
|
278
276
|
wrapped = None
|
|
279
|
-
_name = _name or cast("
|
|
277
|
+
_name = _name or cast("type | Callable", obj.fget).__qualname__
|
|
280
278
|
old_doc = obj.__doc__
|
|
281
279
|
|
|
282
280
|
class _DeprecatedProperty(property):
|
|
@@ -284,19 +282,17 @@ def deprecated(
|
|
|
284
282
|
|
|
285
283
|
def __init__(
|
|
286
284
|
self,
|
|
287
|
-
fget:
|
|
288
|
-
fset:
|
|
289
|
-
fdel:
|
|
290
|
-
doc:
|
|
285
|
+
fget: Callable[[Any], Any] | None = None,
|
|
286
|
+
fset: Callable[[Any, Any], None] | None = None,
|
|
287
|
+
fdel: Callable[[Any], None] | None = None,
|
|
288
|
+
doc: str | None = None,
|
|
291
289
|
) -> None:
|
|
292
290
|
super().__init__(fget, fset, fdel, doc)
|
|
293
291
|
self.__orig_fget = fget
|
|
294
292
|
self.__orig_fset = fset
|
|
295
293
|
self.__orig_fdel = fdel
|
|
296
294
|
|
|
297
|
-
def __get__(
|
|
298
|
-
self, instance: Any, owner: Union[type, None] = None
|
|
299
|
-
) -> Any:
|
|
295
|
+
def __get__(self, instance: Any, owner: type | None = None) -> Any:
|
|
300
296
|
if instance is not None or owner is not None:
|
|
301
297
|
emit_warning()
|
|
302
298
|
if self.fget is None:
|
|
@@ -315,7 +311,7 @@ def deprecated(
|
|
|
315
311
|
if self.fdel is not None:
|
|
316
312
|
self.fdel(instance)
|
|
317
313
|
|
|
318
|
-
def __set_name__(self, owner:
|
|
314
|
+
def __set_name__(self, owner: type | None, set_name: str) -> None:
|
|
319
315
|
nonlocal _name
|
|
320
316
|
if _name == "<lambda>":
|
|
321
317
|
_name = set_name
|
|
@@ -330,7 +326,7 @@ def deprecated(
|
|
|
330
326
|
)
|
|
331
327
|
|
|
332
328
|
else:
|
|
333
|
-
_name = _name or cast("
|
|
329
|
+
_name = _name or cast("type | Callable", obj).__qualname__
|
|
334
330
|
if not _obj_type:
|
|
335
331
|
# edge case: when a function is within another function
|
|
336
332
|
# within a test, this will call it a "method" not a "function"
|
|
@@ -363,19 +359,15 @@ def deprecated(
|
|
|
363
359
|
_alternative
|
|
364
360
|
and _alternative.rsplit(".", maxsplit=1)[-1].lower()
|
|
365
361
|
== _alternative.rsplit(".", maxsplit=1)[-1]
|
|
366
|
-
):
|
|
367
|
-
_alternative = f"
|
|
368
|
-
elif _alternative:
|
|
369
|
-
_alternative = f":class:`~{_alternative}`"
|
|
362
|
+
) or _alternative:
|
|
363
|
+
_alternative = f"`{_alternative}`"
|
|
370
364
|
|
|
371
365
|
if (
|
|
372
366
|
_alternative_import
|
|
373
367
|
and _alternative_import.rsplit(".", maxsplit=1)[-1].lower()
|
|
374
368
|
== _alternative_import.rsplit(".", maxsplit=1)[-1]
|
|
375
|
-
):
|
|
376
|
-
_alternative_import = f"
|
|
377
|
-
elif _alternative_import:
|
|
378
|
-
_alternative_import = f":class:`~{_alternative_import}`"
|
|
369
|
+
) or _alternative_import:
|
|
370
|
+
_alternative_import = f"`{_alternative_import}`"
|
|
379
371
|
|
|
380
372
|
components = [
|
|
381
373
|
_message,
|
|
@@ -395,7 +387,7 @@ def deprecated(
|
|
|
395
387
|
else:
|
|
396
388
|
removal_str = ""
|
|
397
389
|
new_doc = f"""\
|
|
398
|
-
|
|
390
|
+
!!! deprecated "{since} {details} {removal_str}"
|
|
399
391
|
|
|
400
392
|
{old_doc}\
|
|
401
393
|
"""
|
|
@@ -544,9 +536,9 @@ def rename_parameter(
|
|
|
544
536
|
) -> Callable[[Callable[_P, _R]], Callable[_P, _R]]:
|
|
545
537
|
"""Decorator indicating that parameter *old* of *func* is renamed to *new*.
|
|
546
538
|
|
|
547
|
-
The actual implementation of *func* should use *new*, not *old*.
|
|
548
|
-
|
|
549
|
-
|
|
539
|
+
The actual implementation of *func* should use *new*, not *old*. If *old* is passed
|
|
540
|
+
to *func*, a DeprecationWarning is emitted, and its value is used, even if *new* is
|
|
541
|
+
also passed by keyword.
|
|
550
542
|
|
|
551
543
|
Args:
|
|
552
544
|
since: The version in which the parameter was renamed.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import os
|
|
2
2
|
from pathlib import Path
|
|
3
|
-
from typing import Optional, Union
|
|
4
3
|
|
|
5
4
|
HERE = Path(__file__).parent
|
|
6
5
|
|
|
@@ -9,9 +8,7 @@ PACKAGE_DIR = HERE.parent
|
|
|
9
8
|
SEPARATOR = os.sep
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
def get_relative_path(
|
|
13
|
-
file: Union[Path, str], *, relative_to: Path = PACKAGE_DIR
|
|
14
|
-
) -> str:
|
|
11
|
+
def get_relative_path(file: Path | str, *, relative_to: Path = PACKAGE_DIR) -> str:
|
|
15
12
|
"""Get the path of the file as a relative path to the package directory.
|
|
16
13
|
|
|
17
14
|
Args:
|
|
@@ -27,9 +24,9 @@ def get_relative_path(
|
|
|
27
24
|
|
|
28
25
|
|
|
29
26
|
def as_import_path(
|
|
30
|
-
file:
|
|
27
|
+
file: Path | str,
|
|
31
28
|
*,
|
|
32
|
-
suffix:
|
|
29
|
+
suffix: str | None = None,
|
|
33
30
|
relative_to: Path = PACKAGE_DIR,
|
|
34
31
|
) -> str:
|
|
35
32
|
"""Path of the file as a LangChain import exclude langchain top namespace.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
from importlib import import_module
|
|
2
|
-
from typing import Union
|
|
3
2
|
|
|
4
3
|
|
|
5
4
|
def import_attr(
|
|
6
5
|
attr_name: str,
|
|
7
|
-
module_name:
|
|
8
|
-
package:
|
|
6
|
+
module_name: str | None,
|
|
7
|
+
package: str | None,
|
|
9
8
|
) -> object:
|
|
10
9
|
"""Import an attribute from a module located in a package.
|
|
11
10
|
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
**ATTENTION** The schema definitions are provided for backwards compatibility.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
!!! important
|
|
6
|
+
New agents should be built using the
|
|
7
|
+
[langgraph library](https://github.com/langchain-ai/langgraph), which provides a
|
|
8
|
+
simpler and more flexible way to define agents.
|
|
8
9
|
|
|
9
|
-
Please see the
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
Please see the
|
|
11
|
+
[migration guide](https://python.langchain.com/docs/how_to/migrate_agent/) for
|
|
12
|
+
information on how to migrate existing agents to modern langgraph agents.
|
|
12
13
|
|
|
13
14
|
Agents use language models to choose a sequence of actions to take.
|
|
14
15
|
|
|
@@ -28,7 +29,7 @@ from __future__ import annotations
|
|
|
28
29
|
|
|
29
30
|
import json
|
|
30
31
|
from collections.abc import Sequence
|
|
31
|
-
from typing import Any, Literal
|
|
32
|
+
from typing import Any, Literal
|
|
32
33
|
|
|
33
34
|
from langchain_core.load.serializable import Serializable
|
|
34
35
|
from langchain_core.messages import (
|
|
@@ -48,7 +49,7 @@ class AgentAction(Serializable):
|
|
|
48
49
|
|
|
49
50
|
tool: str
|
|
50
51
|
"""The name of the Tool to execute."""
|
|
51
|
-
tool_input:
|
|
52
|
+
tool_input: str | dict
|
|
52
53
|
"""The input to pass in to the Tool."""
|
|
53
54
|
log: str
|
|
54
55
|
"""Additional information to log about the action.
|
|
@@ -61,9 +62,7 @@ class AgentAction(Serializable):
|
|
|
61
62
|
type: Literal["AgentAction"] = "AgentAction"
|
|
62
63
|
|
|
63
64
|
# Override init to support instantiation by position for backward compat.
|
|
64
|
-
def __init__(
|
|
65
|
-
self, tool: str, tool_input: Union[str, dict], log: str, **kwargs: Any
|
|
66
|
-
):
|
|
65
|
+
def __init__(self, tool: str, tool_input: str | dict, log: str, **kwargs: Any):
|
|
67
66
|
"""Create an AgentAction.
|
|
68
67
|
|
|
69
68
|
Args:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Cache classes.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
!!! warning
|
|
4
4
|
Beta Feature!
|
|
5
5
|
|
|
6
6
|
**Cache** provides an optional caching layer for LLMs.
|
|
@@ -25,7 +25,7 @@ from __future__ import annotations
|
|
|
25
25
|
|
|
26
26
|
from abc import ABC, abstractmethod
|
|
27
27
|
from collections.abc import Sequence
|
|
28
|
-
from typing import Any
|
|
28
|
+
from typing import Any
|
|
29
29
|
|
|
30
30
|
from typing_extensions import override
|
|
31
31
|
|
|
@@ -52,7 +52,7 @@ class BaseCache(ABC):
|
|
|
52
52
|
"""
|
|
53
53
|
|
|
54
54
|
@abstractmethod
|
|
55
|
-
def lookup(self, prompt: str, llm_string: str) ->
|
|
55
|
+
def lookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None:
|
|
56
56
|
"""Look up based on prompt and llm_string.
|
|
57
57
|
|
|
58
58
|
A cache implementation is expected to generate a key from the 2-tuple
|
|
@@ -97,7 +97,7 @@ class BaseCache(ABC):
|
|
|
97
97
|
def clear(self, **kwargs: Any) -> None:
|
|
98
98
|
"""Clear cache that can take additional keyword arguments."""
|
|
99
99
|
|
|
100
|
-
async def alookup(self, prompt: str, llm_string: str) ->
|
|
100
|
+
async def alookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None:
|
|
101
101
|
"""Async look up based on prompt and llm_string.
|
|
102
102
|
|
|
103
103
|
A cache implementation is expected to generate a key from the 2-tuple
|
|
@@ -149,7 +149,7 @@ class BaseCache(ABC):
|
|
|
149
149
|
class InMemoryCache(BaseCache):
|
|
150
150
|
"""Cache that stores things in memory."""
|
|
151
151
|
|
|
152
|
-
def __init__(self, *, maxsize:
|
|
152
|
+
def __init__(self, *, maxsize: int | None = None) -> None:
|
|
153
153
|
"""Initialize with empty cache.
|
|
154
154
|
|
|
155
155
|
Args:
|
|
@@ -167,7 +167,7 @@ class InMemoryCache(BaseCache):
|
|
|
167
167
|
raise ValueError(msg)
|
|
168
168
|
self._maxsize = maxsize
|
|
169
169
|
|
|
170
|
-
def lookup(self, prompt: str, llm_string: str) ->
|
|
170
|
+
def lookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None:
|
|
171
171
|
"""Look up based on prompt and llm_string.
|
|
172
172
|
|
|
173
173
|
Args:
|
|
@@ -201,7 +201,7 @@ class InMemoryCache(BaseCache):
|
|
|
201
201
|
"""Clear cache."""
|
|
202
202
|
self._cache = {}
|
|
203
203
|
|
|
204
|
-
async def alookup(self, prompt: str, llm_string: str) ->
|
|
204
|
+
async def alookup(self, prompt: str, llm_string: str) -> RETURN_VAL_TYPE | None:
|
|
205
205
|
"""Async look up based on prompt and llm_string.
|
|
206
206
|
|
|
207
207
|
Args:
|