LanguageModelBase — langchain Architecture
Abstract interfaces for Chat Models and legacy LLMs.
Entity Profile
Dependency Diagram
graph TD subdomain_LangChainCore_LanguageModelBase["LanguageModelBase"] 04c80aee_d8a8_8f26_7ec6_81351e398025["ai21.py"] subdomain_LangChainCore_LanguageModelBase --> 04c80aee_d8a8_8f26_7ec6_81351e398025 e8a12ac8_a98d_9b97_548e_a57588a0d3dc["base.py"] subdomain_LangChainCore_LanguageModelBase --> e8a12ac8_a98d_9b97_548e_a57588a0d3dc 107b4517_5d8d_c2f0_26fe_e47232c7ca12["test_chat_models.py"] subdomain_LangChainCore_LanguageModelBase --> 107b4517_5d8d_c2f0_26fe_e47232c7ca12 9bb972cc_2f02_ebfb_b33b_060b56e319fb["test_pydantic_imports.py"] subdomain_LangChainCore_LanguageModelBase --> 9bb972cc_2f02_ebfb_b33b_060b56e319fb e9bea05a_23c8_af90_9f92_5042282eae77["baseten.py"] subdomain_LangChainCore_LanguageModelBase --> e9bea05a_23c8_af90_9f92_5042282eae77 70610812_c969_fa28_abce_7fba8961e153["aleph_alpha.py"] subdomain_LangChainCore_LanguageModelBase --> 70610812_c969_fa28_abce_7fba8961e153 9dff5784_28d8_a5a0_d8dd_8cb5652c7e39["gigachat.py"] subdomain_LangChainCore_LanguageModelBase --> 9dff5784_28d8_a5a0_d8dd_8cb5652c7e39 da99f420_39ab_e2c8_5b43_69a8aaa95543["test_compile.py"] subdomain_LangChainCore_LanguageModelBase --> da99f420_39ab_e2c8_5b43_69a8aaa95543 5a5c2d7b_4823_4697_a3e1_c5e1c3fce238["test_chat_models_reasoning.py"] subdomain_LangChainCore_LanguageModelBase --> 5a5c2d7b_4823_4697_a3e1_c5e1c3fce238 80c98d4d_3f6a_0197_c2ea_3db4062a1246["test_fake_chat_model.py"] subdomain_LangChainCore_LanguageModelBase --> 80c98d4d_3f6a_0197_c2ea_3db4062a1246 d2ed4df8_dad7_db96_c49d_61ace57e305f["test_base.py"] subdomain_LangChainCore_LanguageModelBase --> d2ed4df8_dad7_db96_c49d_61ace57e305f 4e62fa97_b333_1091_22af_3ad119c9a8c1["fake.py"] subdomain_LangChainCore_LanguageModelBase --> 4e62fa97_b333_1091_22af_3ad119c9a8c1 0d9149da_b2f7_7953_4a7a_a544960ae920["test_chat_models_standard.py"] subdomain_LangChainCore_LanguageModelBase --> 0d9149da_b2f7_7953_4a7a_a544960ae920 0cf8dacb_0e19_2d81_017b_5e1da0c028c6["together.py"] subdomain_LangChainCore_LanguageModelBase --> 0cf8dacb_0e19_2d81_017b_5e1da0c028c6 style subdomain_LangChainCore_LanguageModelBase fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Domain
Functions
- ChatOpenAI()
- InputType()
- InputType()
- InputType()
- OutputType()
- OutputType()
- OutputType()
- _HAS_TRANSFORMERS()
- __add__()
- __add__()
- __add__()
- __add__()
- __add__()
- __aenter__()
- __aexit__()
- __aiter__()
- __anext__()
- __call__()
- __call__()
- __del__()
- __del__()
- __dir__()
- __enter__()
- __exit__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getattr__()
- __getitem__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init__()
- __init_subclass__()
- __iter__()
- __len__()
- __new__()
- __next__()
- __repr__()
- __str__()
- __str__()
- __str__()
- _acall()
- _acall()
- _acall()
- _acall()
- _acall()
- _acall()
- _acall()
- _acall()
- _acall()
- _achat_stream_with_aggregation()
- _acreate()
- _acreate_chat_stream()
- _acreate_generate_stream()
- _aevaluate_string_pairs()
- _aevaluate_string_pairs()
- _aevaluate_strings()
- _aevaluate_strings()
- _aformat_prompt_with_error_handling()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate()
- _agenerate_helper()
- _agenerate_with_cache()
- _aget_docs_with_query()
- _aget_len_safe_embeddings()
- _aget_relevant_documents()
- _aiter_sse()
- _aiterate_over_stream()
- _apply_overrides()
- _araise_on_error()
- _arun()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream()
- _astream_responses()
- _astream_with_aggregation()
- _async_client()
- _attempt_infer_model_provider()
- _attempt_infer_model_provider()
- _base62_encode()
- _build_async_httpx_client()
- _build_limit_exceeded_message()
- _build_sync_httpx_client()
- _cached_async_httpx_client()
- _cached_sync_httpx_client()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call()
- _call_async()
- _call_async()
- _chain_async_model_call_handlers()
- _chain_model_call_handlers()
- _chat_params()
- _chat_stream_with_aggregation()
- _chebyshev_distance()
- _check_numpy()
- _check_parsed_result()
- _check_pkg()
- _check_pkg()
- _check_response()
- _clean_block()
- _cleanup_llm_representation()
- _client()
- _client_params()
- _client_params()
- _collect_code_execution_tool_ids()
- _combine_llm_outputs()
- _combine_llm_outputs()
- _combine_llm_outputs()
- _combine_llm_outputs()
- _combine_llm_outputs()
- _compact_in_params()
- _compare_run_with_error()
- _compare_run_with_error()
- _compute_score()
- _consolidate_calls()
- _construct_lc_result_from_responses_api()
- _construct_responses_api_input()
- _construct_responses_api_payload()
- _content_blocks_equal_ignore_id()
- _convert_annotation_from_v1()
- _convert_cached_generations()
- _convert_chat_completions_blocks_to_responses()
- _convert_chunk_to_generation_chunk()
- _convert_chunk_to_generation_chunk()
- _convert_chunk_to_generation_chunk()
- _convert_chunk_to_message_chunk()
- _convert_chunk_to_message_chunk()
- _convert_chunk_to_message_chunk()
- _convert_chunk_to_message_chunk()
- _convert_delta_to_message_chunk()
- _convert_delta_to_message_chunk()
- _convert_dict_to_message()
- _convert_dict_to_message()
- _convert_dict_to_message()
- _convert_dict_to_message()
- _convert_from_v1_to_chat_completions()
- _convert_from_v1_to_chat_completions()
- _convert_from_v1_to_chat_completions()
- _convert_from_v1_to_responses()
- _convert_input()
- _convert_input()
- _convert_legacy_v0_content_block_to_v1()
- _convert_message_to_dict()
- _convert_message_to_dict()
- _convert_message_to_dict()
- _convert_message_to_dict()
- _convert_message_to_dict()
- _convert_message_to_mistral_chat_message()
- _convert_messages_to_ollama_messages()
- _convert_mistral_chat_message_to_message()
- _convert_responses_chunk_to_generation_chunk()
- _convert_to_anthropic_output_config_format()
- _convert_to_message_template()
- _convert_to_openai_response_format()
- _convert_to_openai_response_format()
- _convert_to_v03_ai_message()
- _convert_to_v1_from_chat_completions()
- _convert_to_v1_from_chat_completions_chunk()
- _convert_to_v1_from_chat_completions_input()
- _convert_tool_call_id_to_mistral_compatible()
- _cosine_distance()
- _count_image_tokens()
- _create()
- _create_chat_result()
- _create_chat_result()
- _create_chat_result()
- _create_chat_result()
- _create_chat_result()
- _create_chat_result()
- _create_chat_result()
- _create_chat_result()
- _create_chat_stream()
- _create_generate_stream()
- _create_message_dicts()
- _create_message_dicts()
- _create_message_dicts()
- _create_message_dicts()
- _create_message_dicts()
- _create_model_recursive()
- _create_retry_decorator()
- _create_template_from_message_type()
- _create_usage_metadata()
- _create_usage_metadata()
- _create_usage_metadata()
- _create_usage_metadata()
- _create_usage_metadata_responses()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _default_params()
- _documents_in_params()
- _dump_pydantic_models()
- _embedding_factory()
- _ensure_message_copy()
- _ensure_safe_output_path()
- _ensure_sync_client_available()
- _ensure_sync_client_available()
- _ensure_valid_tool_message_content()
- _euclidean_distance()
- _evaluate_string_pairs()
- _evaluate_string_pairs()
- _evaluate_strings()
- _evaluate_strings()
- _evaluate_strings()
- _evaluate_strings()
- _evaluate_strings()
- _evaluate_strings()
- _extract_reasoning_from_additional_kwargs()
- _fake_runtime()
- _filter_disabled_params()
- _filter_injected_args()
- _format_annotation_from_lc()
- _format_annotation_to_lc()
- _format_data_content_block()
- _format_failure_message()
- _format_for_tracing()
- _format_func()
- _format_image()
- _format_invalid_tool_call_for_mistral()
- _format_ls_structured_output()
- _format_message_content()
- _format_message_content()
- _format_messages()
- _format_messages()
- _format_output()
- _format_output()
- _format_output()
- _format_prompt_with_error_handling()
- _format_tool_call_for_mistral()
- _function_annotations_are_pydantic_v1()
- _gen_info_and_msg_metadata()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate()
- _generate_helper()
- _generate_params()
- _generate_response_from_error()
- _generate_with_cache()
- _get_annotation_description()
- _get_anthropic_stop()
- _get_base64_from_url()
- _get_builtin_translator()
- _get_chat_model_creator()
- _get_default_async_httpx_client()
- _get_default_httpx_client()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_default_model_profile()
- _get_docs_with_query()
- _get_document_info()
- _get_embeddings_class_creator()
- _get_encoding_model()
- _get_filtered_args()
- _get_generation_chunk_from_completion()
- _get_image_from_data_content_block()
- _get_input_output()
- _get_invocation_params()
- _get_invocation_params()
- _get_invocation_params()
- _get_joke_class()
- _get_joke_class()
- _get_last_messages()
- _get_len_safe_embeddings()
- _get_llm()
- _get_llm()
- _get_llm_for_structured_output_when_thinking_is_enabled()
- _get_llm_string()
- _get_llm_string()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_ls_params()
- _get_metric()
- _get_metric()
- _get_mock_client()
- _get_model()
- _get_next_response_in_sequence()
- _get_output_text()
- _get_provider_list()
- _get_provider_list()
- _get_relevant_documents()
- _get_request_payload()
- _get_request_payload()
- _get_request_payload()
- _get_request_payload()
- _get_request_payload()
- _get_run_ids_list()
- _get_runnable_config_param()
- _get_token_ids_default_method()
- _get_tool_calls_from_response()
- _get_type_hints()
- _get_usage_metadata_from_generation_info()
- _get_verbosity()
- _hamming_distance()
- _handle_anthropic_bad_request()
- _handle_failure()
- _handle_openai_api_error()
- _handle_openai_bad_request()
- _handle_tool_error()
- _handle_validation_error()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _identifying_params()
- _implode_reasoning_blocks()
- _import_ai21()
- _import_aleph_alpha()
- _import_amazon_api_gateway()
- _import_anthropic()
- _import_anyscale()
- _import_arcee()
- _import_aviary()
- _import_azure_openai()
- _import_azureml_endpoint()
- _import_baidu_qianfan_endpoint()
- _import_bananadev()
- _import_baseten()
- _import_beam()
- _import_bedrock()
- _import_bittensor()
- _import_cerebriumai()
- _import_chatglm()
- _import_clarifai()
- _import_cohere()
- _import_ctransformers()
- _import_ctranslate2()
- _import_databricks()
- _import_databricks_chat()
- _import_deepinfra()
- _import_deepsparse()
- _import_edenai()
- _import_fake()
- _import_fireworks()
- _import_forefrontai()
- _import_gigachat()
- _import_google_palm()
- _import_gooseai()
- _import_gpt4all()
- _import_gradient_ai()
- _import_huggingface_endpoint()
- _import_huggingface_hub()
- _import_huggingface_pipeline()
- _import_huggingface_text_gen_inference()
- _import_human()
- _import_javelin_ai_gateway()
- _import_koboldai()
- _import_llamacpp()
- _import_manifest()
- _import_minimax()
- _import_mlflow()
- _import_mlflow_ai_gateway()
- _import_mlflow_chat()
- _import_modal()
- _import_module()
- _import_mosaicml()
- _import_nlpcloud()
- _import_numpy()
- _import_octoai_endpoint()
- _import_ollama()
- _import_opaqueprompts()
- _import_openai()
- _import_openai_chat()
- _import_openllm()
- _import_openlm()
- _import_pai_eas_endpoint()
- _import_petals()
- _import_pipelineai()
- _import_predibase()
- _import_predictionguard()
- _import_promptlayer()
- _import_promptlayer_chat()
- _import_replicate()
- _import_rwkv()
- _import_sagemaker_endpoint()
- _import_self_hosted()
- _import_self_hosted_hugging_face()
- _import_stochasticai()
- _import_symblai_nebula()
- _import_textgen()
- _import_titan_takeoff()
- _import_titan_takeoff_pro()
- _import_together()
- _import_tongyi()
- _import_vertex()
- _import_vertex_model_garden()
- _import_vllm()
- _import_vllm_openai()
- _import_volcengine_maas()
- _import_watsonxllm()
- _import_writer()
- _import_xinference()
- _import_yandex_gpt()
- _infer_arg_descriptions()
- _infer_model_and_provider()
- _infer_model_and_provider()
- _inherit_llm_properties()
- _init_chat_model_helper()
- _init_chat_model_helper()
- _injected_args_keys()
- _invocation_params()
- _invocation_params()
- _invocation_params()
- _invocation_params()
- _invocation_params()
- _invocation_params()
- _invoke()
- _invoke()
- _is_annotated_type()
- _is_b64()
- _is_builtin_tool()
- _is_builtin_tool()
- _is_code_execution_related_block()
- _is_directly_injected_arg_type()
- _is_huggingface_endpoint()
- _is_huggingface_hub()
- _is_huggingface_pipeline()
- _is_huggingface_textgen_inference()
- _is_injected_arg_type()
- _is_pydantic_annotation()
- _is_pydantic_class()
- _is_pydantic_class()
- _is_pydantic_class()
- _is_pydantic_class()
- _is_pydantic_class()
- _is_pydantic_class()
- _is_tool_call()
- _is_url()
- _is_valid_mistral_tool_call_id()
- _iterate_over_stream()
- _lc_invalid_tool_call_to_fireworks_tool_call()
- _lc_invalid_tool_call_to_groq_tool_call()
- _lc_invalid_tool_call_to_hf_tool_call()
- _lc_invalid_tool_call_to_openai_tool_call()
- _lc_tool_call_to_fireworks_tool_call()
- _lc_tool_call_to_groq_tool_call()
- _lc_tool_call_to_hf_tool_call()
- _lc_tool_call_to_openai_tool_call()
- _lc_tool_call_to_openai_tool_call()
- _lc_tool_calls_to_anthropic_tool_use_blocks()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _llm_type()
- _load_augmentations()
- _load_chat_prompt()
- _load_rapidfuzz()
- _log_error_once()
- _make_completion_response_from_token()
- _make_computer_call_output_from_message()
- _make_custom_tool_output_from_message()
- _make_message_chunk_from_anthropic_event()
- _make_model_to_model_edge()
- _make_model_to_tools_edge()
- _make_request()
- _make_tools_to_model_edge()
- _manhattan_distance()
- _merge_messages()
- _merge_partial_and_user_variables()
- _mkdir_for_store()
- _mock_httpx_client_stream()
- _model()
- _model()
- _model_data_to_profile()
- _model_params()
- _model_params()
- _model_prefers_responses_api()
- _normalize_messages()
- _normalize_to_model_response()
- _oai_structured_outputs_parser()
- _on_llm_error()
- _on_llm_error()
- _parse_arguments_from_tool_call()
- _parse_data_uri()
- _parse_input()
- _parse_json()
- _parse_json_string()
- _parse_model()
- _parse_model()
- _parse_model_string()
- _parse_model_string()
- _parse_python_function_docstring()
- _persist_run()
- _persist_run()
- _persist_run()
- _persist_run()
- _persist_run()
- _pop_index_and_sub_index()
- _prep_run_args()
- _prepare_output()
- _prepare_output()
- _prepare_query()
- _process_batched_chunked_embeddings()
- _prompt_type()
- _prompt_type()
- _raise_on_error()
- _remove_prefix()
- _replace_type_vars()
- _resize()
- _resolve_cache()
- _resolve_model_id()
- _resolve_sync_and_async_api_keys()
- _run()
- _run()
- _serialized()
- _serialized()
- _serialized()
- _set_clients()
- _set_clients()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _set_model_profile()
- _should_stream()
- _should_stream()
- _should_stream_usage()
- _should_stream_usage()
- _split_docs_for_adding()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream()
- _stream_response_to_generation_chunk()
- _stream_responses()
- _stream_with_aggregation()
- _stringify()
- _strip_none()
- _thinking_in_params()
- _to_args_and_kwargs()
- _to_chat_prompt()
- _to_chat_result()
- _to_chatml_format()
- _tokenize()
- _tools_in_params()
- _trim_messages_for_summary()
- _update_content_block()
- _update_message_content_to_blocks()
- _update_token_usage()
- _update_token_usage()
- _url_to_size()
- _use_responses_api()
- _use_responses_api()
- _validate_collection_for_dense()
- _validate_collection_for_sparse()
- _validate_data_dir()
- _validate_docstring_args_against_annotations()
- _validate_example_inputs_for_chain()
- _validate_example_inputs_for_language_model()
- _validate_input()
- _validate_tiktoken_installed()
- _validate_tool_call_message()
- _validate_tool_call_message_no_args()
- _warn_search_parameters_deprecated()
- _write_profiles_file()
- aadd_example()
- aadd_messages()
- aadd_messages()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- aafter_model()
- abatch()
- abatch()
- abatch()
- abatch()
- abatch_as_completed()
- abatch_as_completed()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- abefore_model()
- aclear()
- aclear()
- aclear()
- aclear()
- acompletion_with_retry()
- acompress_documents()
- add_ai_message()
- add_example()
- add_example()
- add_message()
- add_message()
- add_message()
- add_messages()
- add_messages()
- add_user_message()
- aembed_documents()
- aembed_query()
- aformat()
- aformat()
- aformat()
- aformat()
- aformat()
- aformat_document()
- aformat_messages()
- aformat_messages()
- aformat_messages()
- aformat_messages()
- aformat_prompt()
- aformat_prompt()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- after_model()
- agenerate()
- agenerate()
- agenerate_from_stream()
- agenerate_prompt()
- agenerate_prompt()
- agenerate_prompt()
- aget_messages()
- aget_messages()
- aget_prompts()
- ainvoke()
- ainvoke()
- ainvoke()
- ainvoke()
- ainvoke()
- ainvoke()
- aload_memory_variables()
- append()
- args()
- arun()
- as_bytes()
- as_bytes_io()
- as_string()
- asave_context()
- asave_context()
- aselect_examples()
- ask_for_help()
- ask_for_passphrase()
- astream()
- astream()
- astream()
- astream()
- astream()
- astream_events()
- astream_events()
- astream_log()
- astream_log()
- atransform()
- atransform()
- aupdate_cache()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- awrap_model_call()
- batch()
- batch()
- batch()
- batch()
- batch_as_completed()
- batch_as_completed()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- before_model()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- bind_tools()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- build_extra()
- builtins()
- chat_hugging_face()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_class()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_model_params()
- chat_prompt_template()
- check_blob_is_valid()
- check_queries_required()
- clear()
- clear()
- clear()
- clear()
- clear()
- clear()
- clear()
- clear()
- clear()
- clear()
- collections()
- collections()
- collections()
- collections()
- collections()
- collections()
- collections()
- collections()
- collections()
- collections()
- compare()
- completion_with_retry()
- compress_documents()
- compute_metric()
- content_blocks()
- convert_prompt()
- convert_to_anthropic_tool()
- create_base_retry_decorator()
- create_llm_result()
- create_schema_from_function()
- deactivate_blockbuster()
- default_params()
- dict()
- dict()
- dict()
- dummy_tool()
- embed_documents()
- embed_query()
- embedding_model_params()
- embedding_model_params()
- enable_vcr_tests()
- enable_vcr_tests()
- evaluation_name()
- evaluation_name()
- evaluation_name()
- evaluation_name()
- evaluation_name()
- evaluation_name()
- evaluation_name()
- evaluation_name()
- exact_match_string_evaluator()
- exact_match_string_evaluator_ignore_case()
- extend()
- fake_llm()
- fake_model()
- fake_model()
- fake_self_query_retriever()
- fake_vectorstore()
- format()
- format()
- format()
- format()
- format()
- format_document()
- format_messages()
- format_messages()
- format_messages()
- format_messages()
- format_messages()
- format_prompt()
- format_prompt()
- from_data()
- from_llm()
- from_llms()
- from_messages()
- from_model_id()
- from_model_id()
- from_path()
- from_template()
- from_template()
- from_template()
- from_template_file()
- from_template_file()
- function()
- generate()
- generate()
- generate_from_stream()
- generate_prompt()
- generate_prompt()
- generate_prompt()
- generate_response()
- generate_schema_pydantic()
- get_action_and_input()
- get_action_and_input()
- get_all_basemodel_annotations()
- get_chat_model()
- get_current_weather()
- get_input_schema()
- get_input_schema()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_lc_namespace()
- get_msg_title_repr()
- get_num_tokens()
- get_num_tokens()
- get_num_tokens()
- get_num_tokens_from_messages()
- get_num_tokens_from_messages()
- get_num_tokens_from_messages()
- get_prompts()
- get_sub_prompts()
- get_token_ids()
- get_token_ids()
- get_token_ids()
- get_tokenizer()
- get_type_to_cls_dict()
- get_user_agent()
- has_structured_output()
- has_structured_output()
- has_structured_output()
- has_tool_calling()
- has_tool_calling()
- has_tool_calling()
- has_tool_choice()
- has_tool_choice()
- init_chat_model()
- init_chat_model()
- init_embeddings()
- init_embeddings()
- init_from_env_params()
- init_from_env_params()
- init_from_env_params()
- init_from_env_params()
- init_from_env_params()
- init_from_env_params()
- init_from_env_params()
- input_keys()
- input_keys()
- input_keys()
- input_keys()
- input_keys()
- input_keys()
- input_keys()
- input_variables()
- input_variables()
- input_variables()
- invoke()
- invoke()
- invoke()
- invoke()
- invoke()
- invoke()
- invoke_with_audio_input()
- invoke_with_audio_output()
- invoke_with_cache_creation_input()
- invoke_with_cache_read_input()
- invoke_with_cache_read_input()
- invoke_with_cache_read_input()
- invoke_with_reasoning_output()
- invoke_with_reasoning_output()
- invoke_with_reasoning_output()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_lc_serializable()
- is_openai_data_block()
- is_single_input()
- json()
- json_equality_evaluator()
- json_schema()
- json_validity_evaluator()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_community()
- langchain_core()
- langchain_core()
- langchain_core()
- langchain_core()
- langchain_core()
- langchain_core()
- langchain_core()
- langchain_core()
- langchain_core()
- langchain_huggingface()
- langgraph()
- lazy_load()
- lazy_load()
- lazy_parse()
- lazy_parse()
- lc_attributes()
- lc_attributes()
- lc_attributes()
- lc_attributes()
- lc_attributes()
- lc_attributes()
- lc_attributes()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- lc_secrets()
- llm()
- llm()
- llm_chain()
- load()
- load()
- load_memory_variables()
- load_memory_variables()
- lookup()
- lookup()
- lookup()
- magic_function()
- magic_function_no_args()
- main()
- max_context_size()
- max_tokens_for_prompt()
- memory_variables()
- memory_variables()
- merge_chat_generation_chunks()
- merge_content()
- message_to_dict()
- messages()
- messages()
- messages_2()
- messages_to_dict()
- metric()
- mock_async_client()
- mock_chat_astream()
- mock_chat_stream()
- mock_client()
- mock_completion()
- mock_completion()
- mock_completion()
- mock_completion()
- mock_deepseek_completion()
- mock_glm4_completion()
- mock_llm()
- mock_models_dev_response()
- mock_openai_completion()
- model()
- model_dump()
- model_override_value()
- modelname_to_contextsize()
- my_adder_tool()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start()
- on_chat_model_start_common()
- on_chat_model_start_common()
- on_chat_model_start_common()
- on_chat_model_start_common()
- on_chat_model_start_common()
- on_llm_end()
- on_llm_end()
- on_llm_end()
- on_llm_new_token()
- on_llm_new_token()
- on_llm_new_token()
- openai_function()
- os()
- output_keys()
- output_keys()
- output_keys()
- parse()
- parse_result()
- partial()
- partial()
- pre_init_validator()
- pretty_print()
- pretty_print()
- pretty_repr()
- pretty_repr()
- pretty_repr()
- pretty_repr()
- pretty_repr()
- pretty_repr()
- pydantic()
- pytest_benchmark()
- pytest_benchmark()
- raise_warning()
- refresh()
- regex_match_string_evaluator()
- regex_match_string_evaluator_ignore_case()
- requires_input()
- requires_input()
- requires_input()
- requires_input()
- requires_input()
- requires_reference()
- requires_reference()
- requires_reference()
- requires_reference()
- requires_reference()
- requires_reference()
- returns_usage_metadata()
- run()
- save()
- save()
- save()
- save_context()
- save_context()
- save_context()
- select_examples()
- select_examples()
- serialize_chat_messages()
- serialize_chat_messages()
- set_default_max_tokens()
- set_text()
- set_verbose()
- similarity_search()
- simple_tool()
- source()
- standard_chat_model_params()
- standard_chat_model_params()
- standard_chat_model_params()
- stream()
- stream()
- stream()
- stream()
- stream()
- structured_output_kwargs()
- structured_output_kwargs()
- supported_usage_metadata_details()
- supported_usage_metadata_details()
- supports_anthropic_inputs()
- supports_anthropic_inputs()
- supports_audio_inputs()
- supports_audio_inputs()
- supports_image_inputs()
- supports_image_inputs()
- supports_image_inputs()
- supports_image_inputs()
- supports_image_inputs()
- supports_image_inputs()
- supports_image_inputs()
- supports_image_tool_message()
- supports_image_tool_message()
- supports_image_urls()
- supports_image_urls()
- supports_image_urls()
- supports_image_urls()
- supports_json_mode()
- supports_json_mode()
- supports_json_mode()
- supports_json_mode()
- supports_json_mode()
- supports_json_mode()
- supports_model_override()
- supports_pdf_inputs()
- supports_pdf_inputs()
- supports_pdf_tool_message()
- supports_pdf_tool_message()
- supports_video_inputs()
- test__aget_relevant_documents()
- test__astream_no_reasoning()
- test__astream_with_reasoning()
- test__construct_lc_result_from_responses_api_basic_text_response()
- test__construct_lc_result_from_responses_api_complex_response()
- test__construct_lc_result_from_responses_api_error_handling()
- test__construct_lc_result_from_responses_api_file_search_response()
- test__construct_lc_result_from_responses_api_function_call_invalid_json()
- test__construct_lc_result_from_responses_api_function_call_valid_json()
- test__construct_lc_result_from_responses_api_mixed_search_responses()
- test__construct_lc_result_from_responses_api_multiple_messages()
- test__construct_lc_result_from_responses_api_multiple_text_blocks()
- test__construct_lc_result_from_responses_api_no_usage_metadata()
- test__construct_lc_result_from_responses_api_refusal_response()
- test__construct_lc_result_from_responses_api_web_search_response()
- test__construct_responses_api_input_ai_message_with_tool_calls()
- test__construct_responses_api_input_ai_message_with_tool_calls_and_content()
- test__construct_responses_api_input_human_message_with_image_url_conversion()
- test__construct_responses_api_input_human_message_with_text_blocks_conversion()
- test__construct_responses_api_input_multiple_message_components()
- test__construct_responses_api_input_multiple_message_types()
- test__construct_responses_api_input_skips_blocks_without_text()
- test__construct_responses_api_input_tool_message_conversion()
- test__convert_dict_to_message_ai()
- test__convert_dict_to_message_ai()
- test__convert_dict_to_message_ai_with_name()
- test__convert_dict_to_message_developer()
- test__convert_dict_to_message_human()
- test__convert_dict_to_message_human()
- test__convert_dict_to_message_human_with_name()
- test__convert_dict_to_message_human_with_name()
- test__convert_dict_to_message_system()
- test__convert_dict_to_message_system()
- test__convert_dict_to_message_system_with_name()
- test__convert_dict_to_message_tool()
- test__convert_dict_to_message_tool_call()
- test__convert_dict_to_message_tool_call()
- test__convert_dict_to_message_tool_call()
- test__convert_dict_to_message_tool_call_with_null_content()
- test__convert_dict_to_message_with_missing_content()
- test__convert_to_openai_response_format()
- test__create_usage_metadata()
- test__create_usage_metadata_responses()
- test__format_image()
- test__format_messages_openai_image_format()
- test__format_messages_trailing_whitespace()
- test__format_messages_with_cache_control()
- test__format_messages_with_citations()
- test__format_messages_with_list_content_and_tool_calls()
- test__format_messages_with_multiple_system()
- test__format_messages_with_str_content_and_tool_calls()
- test__format_messages_with_tool_calls()
- test__format_messages_with_tool_use_blocks_and_tool_calls()
- test__format_output()
- test__format_output_cached()
- test__format_tool_use_block()
- test__get_encoding_model()
- test__get_relevant_documents()
- test__get_request_payload()
- test__merge_messages()
- test__merge_messages_mutation()
- test__parse_arguments_from_tool_call()
- test__parse_arguments_from_tool_call_with_function_name_metadata()
- test__resize_caps_dimensions_preserving_ratio()
- test__stream_no_reasoning()
- test__stream_with_reasoning()
- test__validate_example_inputs_for_chain_input_mapper()
- test__validate_example_inputs_for_chain_multi_io()
- test__validate_example_inputs_for_chain_single_input()
- test__validate_example_inputs_for_chain_single_input_multi_expect()
- test__validate_example_inputs_for_language_model()
- test__validate_example_inputs_for_language_model_invalid()
- test_aadd_example()
- test_abatch()
- test_abatch()
- test_abatch()
- test_abatch()
- test_abatch()
- test_abatch()
- test_abatch()
- test_abatch_tags()
- test_abatch_tags()
- test_abatch_tags()
- test_abatch_tags()
- test_abatch_tags()
- test_abatch_tags()
- test_access_state_in_middleware()
- test_add_message_implementation_only()
- test_add_system_prompt()
- test_after_model_decorator()
- test_after_model_replaces_flagged_message()
- test_agenerate()
- test_agenerate_streaming()
- test_agent_hooks_run_once_with_multiple_model_calls()
- test_agent_loop()
- test_agent_loop()
- test_agent_loop()
- test_agent_loop_streaming()
- test_ai_message_return_unchanged()
- test_aindex_with_upsert_kwargs_for_document_indexer()
- test_ainvoke()
- test_ainvoke()
- test_ainvoke()
- test_ainvoke()
- test_ainvoke()
- test_ainvoke()
- test_ainvoke()
- test_ainvoke_with_model_override()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_imports()
- test_all_models_built()
- test_all_models_fail()
- test_all_models_fail_async()
- test_all_none_parameters_results_in_empty_options()
- test_anthropic_api_key_is_secret_string()
- test_anthropic_api_key_masked_when_passed_from_env()
- test_anthropic_api_key_masked_when_passed_via_constructor()
- test_anthropic_async_generate()
- test_anthropic_async_streaming_callback()
- test_anthropic_async_streaming_callback()
- test_anthropic_bind_tools_tool_choice()
- test_anthropic_bind_tools_tool_choice()
- test_anthropic_call()
- test_anthropic_call()
- test_anthropic_client_caching()
- test_anthropic_fields_in_model_kwargs()
- test_anthropic_generate()
- test_anthropic_incorrect_field()
- test_anthropic_initialization()
- test_anthropic_inputs()
- test_anthropic_model_kwargs()
- test_anthropic_model_name_param()
- test_anthropic_model_name_param()
- test_anthropic_model_param()
- test_anthropic_model_param()
- test_anthropic_model_params()
- test_anthropic_model_params()
- test_anthropic_multimodal()
- test_anthropic_prompt_caching_middleware_async_unsupported_model()
- test_anthropic_prompt_caching_middleware_unsupported_model()
- test_anthropic_proxy_from_environment()
- test_anthropic_proxy_support()
- test_anthropic_streaming()
- test_anthropic_streaming()
- test_anthropic_streaming_callback()
- test_anthropic_streaming_callback()
- test_anthropic_uses_actual_secret_value_from_secretstr()
- test_anthropic_with_empty_text_block()
- test_arbitrary_roles_accepted_in_chatmessages()
- test_aselect_examples()
- test_astream()
- test_astream()
- test_astream()
- test_astream()
- test_astream()
- test_astream()
- test_astream()
- test_astream()
- test_astream_fallback_to_ainvoke()
- test_astream_fallback_to_ainvoke()
- test_astream_implementation_fallback_to_stream()
- test_astream_implementation_fallback_to_stream()
- test_astream_implementation_uses_astream()
- test_astream_implementation_uses_astream()
- test_astream_o_series()
- test_astream_response_format()
- test_astream_response_format()
- test_astream_text_tokens()
- test_astream_with_callback()
- test_astream_with_model_override()
- test_astreaming()
- test_astreaming_tool_call()
- test_async_after_model_decorator()
- test_async_after_model_preserves_can_jump_to()
- test_async_batch_size()
- test_async_batch_size()
- test_async_before_model_decorator()
- test_async_before_model_preserves_can_jump_to()
- test_async_before_model_uses_async_moderation()
- test_async_both_commands_additive_messages()
- test_async_chat_openai()
- test_async_chat_openai_streaming()
- test_async_command_adds_messages()
- test_async_command_goto_raises_not_implemented()
- test_async_command_graph_raises_not_implemented()
- test_async_command_resume_raises_not_implemented()
- test_async_decorator_command()
- test_async_generation()
- test_async_inner_command_propagated()
- test_async_inner_command_retry_safe()
- test_async_interface()
- test_async_model_with_middleware()
- test_async_on_model_call_decorator()
- test_async_pass_run_id()
- test_async_response_metadata()
- test_async_response_metadata_streaming()
- test_async_retry()
- test_async_shared_client()
- test_async_tool_use()
- test_attempt_infer_model_provider()
- test_audio_input_modality()
- test_audio_inputs()
- test_audio_model()
- test_audio_output_modality()
- test_auto_append_betas_for_mcp_servers()
- test_auto_append_betas_for_tool_types()
- test_azure_chat_openai_secrets()
- test_azure_model_param()
- test_bad_inputs()
- test_bad_outputs()
- test_base_blob_parser()
- test_base_blob_parser()
- test_base_generation_parser()
- test_base_model_schema_consistency()
- test_base_transform_output_parser()
- test_basic_decorator_usage()
- test_batch()
- test_batch()
- test_batch()
- test_batch()
- test_batch()
- test_batch()
- test_batch()
- test_batch_size()
- test_batch_size()
- test_batch_tags()
- test_before_model_allows_clean_input()
- test_before_model_decorator()
- test_before_model_errors_on_flagged_input()
- test_before_model_jump_on_end_behavior()
- test_benchmark_model()
- test_bind_runnables_as_tools()
- test_bind_tool_pydantic()
- test_bind_tool_pydantic()
- test_bind_tools()
- test_bind_tools_errors()
- test_bind_tools_tool_choice()
- test_bind_tools_tool_choice()
- test_bind_tools_with_strict_mode_uses_beta_endpoint()
- test_bind_tools_without_strict_mode_uses_default_endpoint()
- test_builtin_tools_computer_use()
- test_builtin_tools_text_editor()
- test_bulk_message_implementation_only()
- test_cache_control_kwarg()
- test_cache_control_kwarg_skips_empty_messages()
- test_cache_key_ignores_message_id_async()
- test_cache_key_ignores_message_id_sync()
- test_cache_short_circuit()
- test_cache_with_generation_objects()
- test_caching()
- test_callable_api_key()
- test_callable_api_key()
- test_callable_api_key_async()
- test_callable_api_key_async()
- test_callback_handlers()
- test_callback_handlers()
- test_can_jump_to_with_after_model_decorator()
- test_can_jump_to_with_before_model_decorator()
- test_can_swap_caches()
- test_chat_completions_api_uses_model_name()
- test_chat_generation_chunk()
- test_chat_groq_extra_kwargs()
- test_chat_groq_invalid_streaming_params()
- test_chat_groq_secret()
- test_chat_input_schema()
- test_chat_invalid_input_variables_extra()
- test_chat_invalid_input_variables_missing()
- test_chat_message_chunks()
- test_chat_message_partial()
- test_chat_message_partial_composition()
- test_chat_model_inputs()
- test_chat_ollama_ignores_strict_arg()
- test_chat_ollama_url_auth_integration()
- test_chat_ollama_url_auth_with_existing_headers()
- test_chat_openai()
- test_chat_openai()
- test_chat_openai_generate()
- test_chat_openai_generate()
- test_chat_openai_get_num_tokens()
- test_chat_openai_invalid_streaming_params()
- test_chat_openai_llm_output_contains_model_name()
- test_chat_openai_model()
- test_chat_openai_multiple_completions()
- test_chat_openai_multiple_completions()
- test_chat_openai_secrets()
- test_chat_openai_streaming()
- test_chat_openai_streaming()
- test_chat_openai_streaming_generation_info()
- test_chat_openai_streaming_generation_info()
- test_chat_openai_streaming_llm_output_contains_model_name()
- test_chat_openai_system_message()
- test_chat_perplexity_secrets()
- test_chat_prompt_message_dict()
- test_chat_prompt_message_placeholder_dict()
- test_chat_prompt_message_placeholder_partial()
- test_chat_prompt_message_placeholder_tuple()
- test_chat_prompt_template()
- test_chat_prompt_template_append_and_extend()
- test_chat_prompt_template_data_prompt_from_message()
- test_chat_prompt_template_from_messages()
- test_chat_prompt_template_from_messages_jinja2()
- test_chat_prompt_template_from_messages_mustache()
- test_chat_prompt_template_from_messages_using_message_classes()
- test_chat_prompt_template_from_messages_using_role_strings()
- test_chat_prompt_template_image_prompt_from_message()
- test_chat_prompt_template_indexing()
- test_chat_prompt_template_message_class_tuples_append()
- test_chat_prompt_template_message_class_tuples_concatenation()
- test_chat_prompt_template_message_class_tuples_empty_template()
- test_chat_prompt_template_message_class_tuples_extend()
- test_chat_prompt_template_message_class_tuples_input_variables()
- test_chat_prompt_template_message_class_tuples_mixed_syntax()
- test_chat_prompt_template_message_class_tuples_multiple_variables()
- test_chat_prompt_template_message_class_tuples_mustache_format()
- test_chat_prompt_template_message_class_tuples_partial_variables()
- test_chat_prompt_template_message_class_tuples_slicing()
- test_chat_prompt_template_message_class_tuples_special_characters()
- test_chat_prompt_template_message_class_tuples_static_text()
- test_chat_prompt_template_message_class_tuples_with_invoke()
- test_chat_prompt_template_message_class_tuples_with_placeholder()
- test_chat_prompt_template_variable_names()
- test_chat_prompt_template_with_messages()
- test_chat_prompt_value_concrete()
- test_chat_prompt_w_msgs_placeholder_ser_des()
- test_chat_result_backward_compatibility()
- test_chat_result_with_cached_and_reasoning_tokens()
- test_chat_result_with_reasoning_tokens()
- test_chat_result_with_usage_metadata()
- test_chat_tmpl_dict_msg()
- test_chat_tmpl_from_messages_multipart_formatting_with_path()
- test_chat_tmpl_from_messages_multipart_image()
- test_chat_tmpl_from_messages_multipart_text()
- test_chat_tmpl_from_messages_multipart_text_with_template()
- test_chat_tmpl_serdes()
- test_chat_valid_infer_variables()
- test_chat_valid_with_partial_variables()
- test_chat_xai_extra_kwargs()
- test_chat_xai_invalid_streaming_params()
- test_chat_xai_secrets()
- test_chroma_legacy_batching()
- test_citations()
- test_citations_and_search_results()
- test_cleanup_serialized()
- test_code_execution()
- test_code_execution_old()
- test_code_interpreter()
- test_code_interpreter()
- test_code_interpreter_v1()
- test_combine_llm_outputs_with_missing_details()
- test_combine_llm_outputs_with_token_details()
- test_command_goto_raises_not_implemented()
- test_command_graph_raises_not_implemented()
- test_command_messages_added_alongside_model_messages()
- test_command_resume_raises_not_implemented()
- test_command_structured_response_conflicts_with_model_response()
- test_command_with_custom_state_field()
- test_command_with_extra_messages_and_model_response()
- test_compaction()
- test_compaction_streaming()
- test_compat_responses_v03()
- test_computer_calls()
- test_configurable()
- test_configurable()
- test_configurable_with_default()
- test_configurable_with_default()
- test_content_block_transformation_v0_to_v1_image()
- test_context_management()
- test_context_management_in_payload()
- test_context_overflow_error_backwards_compatibility()
- test_context_overflow_error_backwards_compatibility()
- test_context_overflow_error_invoke_async()
- test_context_overflow_error_invoke_async()
- test_context_overflow_error_invoke_async_responses_api()
- test_context_overflow_error_invoke_sync()
- test_context_overflow_error_invoke_sync()
- test_context_overflow_error_invoke_sync_responses_api()
- test_context_overflow_error_stream_async()
- test_context_overflow_error_stream_async()
- test_context_overflow_error_stream_async_responses_api()
- test_context_overflow_error_stream_sync()
- test_context_overflow_error_stream_sync()
- test_context_overflow_error_stream_sync_responses_api()
- test_conversation()
- test_convert_chunk_with_empty_delta()
- test_convert_chunk_with_reasoning()
- test_convert_chunk_with_reasoning_content()
- test_convert_chunk_without_reasoning()
- test_convert_dict_to_message()
- test_convert_dict_to_message_ai()
- test_convert_dict_to_message_ai_with_name()
- test_convert_dict_to_message_human()
- test_convert_dict_to_message_system()
- test_convert_dict_to_message_system_with_name()
- test_convert_dict_to_message_tool()
- test_convert_dict_to_message_with_reasoning_content()
- test_convert_dict_to_message_without_reasoning_content()
- test_convert_error_to_response()
- test_convert_from_v1_to_chat_completions()
- test_convert_from_v1_to_responses()
- test_convert_message_to_mistral_chat_message()
- test_convert_to_anthropic_tool()
- test_convert_to_message()
- test_convert_to_message_is_strict()
- test_correct_call()
- test_count_tokens_approximately_ai_tool_calls_skipped_for_list_content()
- test_count_tokens_approximately_usage_metadata_scaling_model_provider()
- test_counting_middleware()
- test_create_agent_error_only_model_controllable_params()
- test_create_chat_prompt_template_from_template()
- test_create_chat_prompt_template_from_template_partial()
- test_create_chat_result()
- test_create_chat_result_with_model_extra_reasoning()
- test_create_chat_result_with_reasoning_content()
- test_create_message_dicts_includes_inherited_params()
- test_create_model_v2()
- test_create_prompt_output()
- test_create_system_message_prompt_list_template()
- test_create_system_message_prompt_list_template_partial_variables_not_null()
- test_create_system_message_prompt_template_from_template_partial()
- test_create_usage_metadata_basic()
- test_create_usage_metadata_basic()
- test_create_usage_metadata_chat_completions_with_details()
- test_create_usage_metadata_empty_completion_details()
- test_create_usage_metadata_empty_details()
- test_create_usage_metadata_missing_total_tokens()
- test_create_usage_metadata_responses_api_format()
- test_create_usage_metadata_with_all_details()
- test_create_usage_metadata_with_cached_and_reasoning_tokens()
- test_create_usage_metadata_with_cached_tokens()
- test_create_usage_metadata_with_reasoning_tokens()
- test_create_usage_metadata_zero_cached_tokens()
- test_create_usage_metadata_zero_reasoning_tokens()
- test_custom_detector_for_multiple_types()
- test_custom_field_via_state_schema()
- test_custom_model_instance()
- test_custom_model_string()
- test_custom_token_counting()
- test_custom_token_counting()
- test_custom_token_counting()
- test_custom_tool()
- test_data_prompt_template_deserializable()
- test_decorator_complex_retry_logic()
- test_decorator_error_handling()
- test_decorator_mixed_with_class_middleware()
- test_decorator_parentheses_optional()
- test_decorator_preserves_function_name()
- test_decorator_request_modification()
- test_decorator_response_rewriting()
- test_decorator_retry_logic()
- test_decorator_returns_wrap_result()
- test_decorator_with_async_agent()
- test_decorator_with_custom_name()
- test_decorator_with_custom_state_schema()
- test_decorator_with_state_access()
- test_decorator_with_tools_parameter()
- test_deepseek_astream()
- test_deepseek_stream()
- test_default_aload()
- test_default_exact_matching()
- test_default_lazy_load()
- test_default_model_used_when_none()
- test_default_params_includes_inherited_values()
- test_default_regex_matching()
- test_deserialize_legacy()
- test_dict_message_prompt_template_errors_on_jinja2()
- test_disable_parallel_tool_calling()
- test_disable_parallel_tool_calling()
- test_disable_streaming()
- test_disable_streaming_async()
- test_disable_streaming_no_streaming_model()
- test_disable_streaming_no_streaming_model_async()
- test_double_messages_conversation()
- test_double_messages_conversation()
- test_effort_in_output_config()
- test_effort_in_output_config_payload()
- test_effort_parameter()
- test_effort_parameter_validation()
- test_effort_priority()
- test_embed_documents_with_custom_chunk_size()
- test_embed_documents_with_custom_chunk_size_no_check_ctx_length()
- test_embed_with_kwargs()
- test_embed_with_kwargs_async()
- test_embeddings_respects_token_limit()
- test_empty_docstring_model()
- test_error_callback()
- test_error_handling_with_success_path()
- test_exact_matching_with_ignore_case()
- test_exception_error_message()
- test_explicit_options_dict_preserved()
- test_extend_support_to_openai_multimodal_formats()
- test_extra_body_parameter()
- test_extra_body_with_model_kwargs()
- test_extra_kwargs()
- test_extract_sub_links_base()
- test_extras_with_cache_control()
- test_extras_with_defer_loading()
- test_extras_with_input_examples()
- test_extras_with_multiple_fields()
- test_fake_list_chat_model_batch()
- test_fake_messages_list_chat_model_sleep_delay()
- test_fallback_on_primary_failure()
- test_fallback_on_primary_failure_async()
- test_few_shot_chat_message_prompt_template()
- test_few_shot_chat_message_prompt_template_infer_input_variables()
- test_few_shot_chat_message_prompt_template_with_selector()
- test_few_shot_chat_message_prompt_template_with_selector_async()
- test_file_search()
- test_files_api_image()
- test_files_api_pdf()
- test_fine_grained_tool_streaming()
- test_fine_grained_tool_streaming_beta()
- test_fireworks_acall()
- test_fireworks_api_key_is_secret_string()
- test_fireworks_api_key_masked_when_passed_from_env()
- test_fireworks_api_key_masked_when_passed_via_constructor()
- test_fireworks_call()
- test_fireworks_model_params()
- test_fireworks_uses_actual_secret_value_from_secretstr()
- test_flex_usage_responses()
- test_format_instructions_preserves_language()
- test_format_message_content()
- test_format_message_content_empty_list()
- test_format_message_content_langchain_image_base64()
- test_format_message_content_langchain_image_url()
- test_format_message_content_mixed()
- test_format_message_content_none()
- test_format_message_content_string()
- test_format_message_content_text_and_image_url()
- test_from_schema_spec_with_model_docstring()
- test_fstring_rejects_invalid_identifier_variable_names()
- test_function_calling()
- test_function_calling_and_structured_output()
- test_function_calls_with_tool_calls()
- test_function_dict_to_message_function_message()
- test_function_message_dict_to_function_message()
- test_function_message_dict_to_function_message()
- test_generate()
- test_generate_response_from_error_handles_streaming_response_failure()
- test_generate_response_from_error_with_valid_json()
- test_generate_streaming_multiple_prompts_error()
- test_generic_fake_chat_model_ainvoke()
- test_generic_fake_chat_model_ainvoke()
- test_generic_fake_chat_model_astream_log()
- test_generic_fake_chat_model_astream_log()
- test_generic_fake_chat_model_invoke()
- test_generic_fake_chat_model_invoke()
- test_generic_fake_chat_model_stream()
- test_generic_fake_chat_model_stream()
- test_get_buffer_string_xml_chat_message_valid_role()
- test_get_buffer_string_xml_function_call_legacy()
- test_get_last_messages()
- test_get_last_messages_with_mixed_response_metadata()
- test_get_ls_params()
- test_get_ls_params()
- test_get_num_tokens_from_messages()
- test_get_num_tokens_from_messages()
- test_get_num_tokens_from_messages_passes_kwargs()
- test_get_request_payload()
- test_get_request_payload_use_previous_response_id()
- test_get_token_ids()
- test_glm4_astream()
- test_glm4_stream()
- test_glob_with_base_path()
- test_global_cache_abatch()
- test_global_cache_async()
- test_global_cache_batch()
- test_global_cache_stream()
- test_global_cache_sync()
- test_gpt_5_1_temperature_with_reasoning_effort_none()
- test_gpt_5_temperature()
- test_gpt_5_temperature_case_insensitive()
- test_grep_with_base_path()
- test_groq_ainvoke()
- test_groq_invoke()
- test_groq_model_param()
- test_groq_serialization()
- test_handle_empty_aimessage()
- test_huggingface_endpoint_specific_inheritance()
- test_huggingface_pipeline_streaming()
- test_image_generation_multi_turn()
- test_image_generation_multi_turn_v1()
- test_image_generation_streaming()
- test_image_generation_streaming_v1()
- test_image_inputs()
- test_image_token_counting_jpeg()
- test_image_token_counting_png()
- test_image_tool_calling()
- test_image_tool_message()
- test_imports()
- test_incomplete_response()
- test_index_with_upsert_kwargs_for_document_indexer()
- test_infer_model_and_provider()
- test_infer_model_and_provider()
- test_infer_model_and_provider_errors()
- test_infer_model_and_provider_errors()
- test_infer_variables()
- test_inference_geo_in_payload()
- test_inheritance_with_empty_llm()
- test_inheritance_with_no_llm_properties()
- test_init()
- test_init_chat_model()
- test_init_chat_model()
- test_init_chat_model_chain()
- test_init_chat_model_chain()
- test_init_chat_model_huggingface()
- test_init_connection_error()
- test_init_embedding_model()
- test_init_embedding_model()
- test_init_from_env()
- test_init_minimal_reasoning_effort()
- test_init_missing_dep()
- test_init_missing_dep()
- test_init_model_not_found()
- test_init_o1()
- test_init_response_error()
- test_init_streaming()
- test_init_time()
- test_init_unknown_provider()
- test_init_unknown_provider()
- test_initialization()
- test_initialization()
- test_initialization()
- test_initialization_with_from_model_id()
- test_initialize_azure_openai()
- test_initialize_azure_openai_with_base_set()
- test_initialize_azure_openai_with_openai_api_base_set()
- test_initialize_more()
- test_inner_command_propagated_through_composition()
- test_inner_command_retry_safe()
- test_inner_state_preserved_when_outer_has_no_conflict()
- test_invoke()
- test_invoke()
- test_invoke()
- test_invoke()
- test_invoke()
- test_invoke()
- test_invoke()
- test_invoke_no_reasoning()
- test_invoke_reasoning_none()
- test_invoke_streaming()
- test_invoke_with_model_override()
- test_is_sorted()
- test_is_sorted()
- test_json_equality_evaluator_evaluate_lists_permutation_invariant()
- test_json_equality_evaluator_evaluate_strings_custom_operator_equal()
- test_json_equality_evaluator_evaluate_strings_custom_operator_not_equal()
- test_json_equality_evaluator_evaluate_strings_equal()
- test_json_equality_evaluator_evaluate_strings_not_equal()
- test_json_equality_evaluator_evaluation_name()
- test_json_equality_evaluator_parse_json()
- test_json_equality_evaluator_requires_input()
- test_json_equality_evaluator_requires_reference()
- test_json_mode()
- test_json_mode()
- test_json_mode_async()
- test_json_mode_structured_output()
- test_json_schema_openai_format()
- test_json_validity_evaluator_evaluate_invalid_json()
- test_json_validity_evaluator_evaluate_valid_json()
- test_json_validity_evaluator_evaluation_name()
- test_json_validity_evaluator_requires_input()
- test_json_validity_evaluator_requires_reference()
- test_langchain_openai_embedding_documents()
- test_langchain_openai_embedding_query()
- test_langchain_openai_embeddings_dimensions()
- test_langchain_openai_embeddings_dimensions_large_num()
- test_langchain_openai_embeddings_equivalent_to_raw()
- test_langchain_openai_embeddings_equivalent_to_raw_async()
- test_lazy_load_not_implemented()
- test_lc_tool_call_to_openai_tool_call_unicode()
- test_llm_representation_for_serializable()
- test_load_followed_by_content_response()
- test_load_openai_chat()
- test_load_response_with_actual_content_is_not_skipped()
- test_load_response_with_empty_content_is_skipped()
- test_load_response_with_whitespace_content_is_skipped()
- test_load_runnable_sequence_prompt_model()
- test_loads_openai_chat()
- test_loads_runnable_sequence_prompt_model()
- test_local_cache_async()
- test_local_cache_generate_async()
- test_local_cache_generate_sync()
- test_local_cache_sync()
- test_logging_middleware()
- test_make_computer_call_output_from_message()
- test_manual_tool_call_msg()
- test_manually_specify_rid()
- test_manually_specify_rid_async()
- test_max_attempts_limit()
- test_max_completion_tokens_in_payload()
- test_max_completion_tokens_parameter()
- test_max_retries()
- test_max_tokens_converted_to_max_completion_tokens()
- test_mcp_builtin()
- test_mcp_builtin_zdr()
- test_mcp_builtin_zdr_v1()
- test_mcp_tracing()
- test_mcp_tracing()
- test_media_and_metadata()
- test_memory_tool()
- test_message_name_chat()
- test_message_prompt_template_from_template_file()
- test_message_with_name()
- test_messages_placeholder()
- test_messages_placeholder_with_max()
- test_messages_prompt_accepts_list()
- test_middle_retry_middleware()
- test_middleware_initialization_validation()
- test_middleware_model_swap_provider_to_tool_strategy()
- test_middleware_modifies_request()
- test_middleware_unit_functionality()
- test_minimal_reasoning_effort_payload()
- test_mistralai_initialization()
- test_mistralai_initialization_baseurl()
- test_mistralai_initialization_baseurl_env()
- test_mistralai_model_param()
- test_model_data_to_profile_text_modalities()
- test_model_fallback_middleware_exhausted_with_agent()
- test_model_fallback_middleware_initialization()
- test_model_fallback_middleware_with_agent()
- test_model_kwargs_inheritance()
- test_model_params()
- test_model_prefers_responses_api()
- test_model_profile_not_blocking()
- test_model_profiles()
- test_model_request_backwards_compat()
- test_model_request_backwards_compatible()
- test_model_request_explicit_none()
- test_model_request_is_frozen()
- test_model_request_preserves_context_type()
- test_model_response()
- test_model_response()
- test_model_response_backwards_compat()
- test_model_response_backwards_compatible()
- test_model_response_return_unchanged()
- test_model_response_with_response_type()
- test_model_response_without_structured()
- test_model_retry_async_backoff_timing()
- test_model_retry_async_failing_model()
- test_model_retry_async_succeeds_after_retries()
- test_model_retry_async_working_model()
- test_model_retry_backoff_timing()
- test_model_retry_constant_backoff()
- test_model_retry_custom_exception_filter()
- test_model_retry_custom_failure_formatter()
- test_model_retry_failing_model_raises()
- test_model_retry_failing_model_returns_message()
- test_model_retry_initialization_custom()
- test_model_retry_initialization_defaults()
- test_model_retry_invalid_backoff_factor()
- test_model_retry_invalid_initial_delay()
- test_model_retry_invalid_max_delay()
- test_model_retry_invalid_max_retries()
- test_model_retry_jitter_variation()
- test_model_retry_max_delay_cap()
- test_model_retry_multiple_middleware_composition()
- test_model_retry_specific_exceptions()
- test_model_retry_succeeds_after_retries()
- test_model_retry_working_model_no_retry_needed()
- test_model_retry_zero_retries()
- test_msg_no_text()
- test_msg_with_text()
- test_multi_party_conversation()
- test_multi_stage_transformation()
- test_multiple_decorated_middleware()
- test_multiple_fallbacks()
- test_multiple_fallbacks_async()
- test_multiple_output_keys_error()
- test_multiple_transformations()
- test_multiple_yields_retry_different_models()
- test_mustache_template_attribute_access_vulnerability()
- test_nested_structured_output_strict()
- test_nested_structured_output_strict()
- test_no_cache_async()
- test_no_cache_generate_async()
- test_no_cache_generate_sync()
- test_no_cache_sync()
- test_no_command()
- test_no_duplicate_tool_calls_when_multiple_tools()
- test_no_middleware_unchanged()
- test_no_retry_propagates_error()
- test_non_reducer_key_conflict_raises()
- test_non_zero_distance()
- test_non_zero_distance_async()
- test_non_zero_distance_pairwise()
- test_non_zero_distance_pairwise_async()
- test_none_parameters_excluded_from_options()
- test_normalize_messages_edge_cases()
- test_normalize_messages_v1_content_blocks_unchanged()
- test_o1()
- test_o1_stream_default_works()
- test_old_pattern_7_model_response_unparameterized()
- test_on_model_call()
- test_on_model_call_decorator()
- test_openai_abatch()
- test_openai_abatch()
- test_openai_abatch()
- test_openai_abatch_tags()
- test_openai_abatch_tags()
- test_openai_abatch_tags()
- test_openai_abatch_tags()
- test_openai_ainvoke()
- test_openai_ainvoke()
- test_openai_ainvoke()
- test_openai_ainvoke()
- test_openai_astream()
- test_openai_astream()
- test_openai_astream()
- test_openai_astream()
- test_openai_async_generate()
- test_openai_async_generate()
- test_openai_async_streaming_callback()
- test_openai_async_streaming_callback()
- test_openai_batch()
- test_openai_batch()
- test_openai_batch()
- test_openai_call()
- test_openai_call()
- test_openai_client_caching()
- test_openai_fields_in_model_kwargs()
- test_openai_incorrect_field()
- test_openai_incorrect_field()
- test_openai_invalid_model_kwargs()
- test_openai_invoke()
- test_openai_invoke()
- test_openai_invoke()
- test_openai_invoke()
- test_openai_invoke()
- test_openai_invoke_name()
- test_openai_llm_output_contains_model_name()
- test_openai_model_kwargs()
- test_openai_model_param()
- test_openai_model_param()
- test_openai_modelname_to_contextsize_invalid()
- test_openai_modelname_to_contextsize_valid()
- test_openai_multiple_prompts()
- test_openai_multiple_prompts()
- test_openai_o1_temperature()
- test_openai_pdf_inputs()
- test_openai_pdf_inputs()
- test_openai_pdf_tool_messages()
- test_openai_proxy()
- test_openai_response_headers()
- test_openai_response_headers_async()
- test_openai_stop_valid()
- test_openai_stream()
- test_openai_streaming()
- test_openai_streaming()
- test_openai_streaming()
- test_openai_streaming_best_of_error()
- test_openai_streaming_best_of_error()
- test_openai_streaming_call()
- test_openai_streaming_call()
- test_openai_streaming_callback()
- test_openai_streaming_callback()
- test_openai_streaming_multiple_prompts_error()
- test_openai_streaming_multiple_prompts_error()
- test_openai_streaming_n_error()
- test_openai_streaming_n_error()
- test_openai_structured_output()
- test_openai_structured_output_refusal_handling_responses_api()
- test_optional_description()
- test_outer_command_messages_added_alongside_model()
- test_output_config_without_effort()
- test_output_version_ainvoke()
- test_output_version_astream()
- test_output_version_compat()
- test_output_version_invoke()
- test_output_version_stream()
- test_override_model_settings()
- test_parameter_precedence_explicit_over_inherited()
- test_parse_case_matched_and_final_answer()
- test_parse_json_string_failure_case_raises_exception()
- test_parse_json_string_skip_returns_input_on_failure()
- test_parse_json_string_success_cases()
- test_parse_model_string()
- test_parse_model_string()
- test_parse_model_string_errors()
- test_parse_model_string_errors()
- test_parse_with_language()
- test_parse_with_language()
- test_parse_with_language_and_spaces()
- test_parse_with_language_without_a_new_line()
- test_parse_without_language()
- test_parse_without_language()
- test_parse_without_language_without_a_new_line()
- test_parsed_dict_schema()
- test_parsed_dict_schema_async()
- test_parsed_pydantic_schema()
- test_parsed_pydantic_schema_async()
- test_parsed_strict()
- test_pass_run_id()
- test_passthrough_middleware()
- test_pdf_document_input()
- test_pdf_inputs()
- test_pdf_tool_message()
- test_perplexity_initialization()
- test_perplexity_invoke_includes_num_search_queries()
- test_perplexity_model_kwargs()
- test_perplexity_model_name_param()
- test_perplexity_new_params()
- test_perplexity_stream_includes_citations()
- test_perplexity_stream_includes_videos_and_reasoning()
- test_placeholder()
- test_prediction_tokens()
- test_prefix_response()
- test_primary_model_succeeds()
- test_primary_model_succeeds_async()
- test_pro_search()
- test_profile()
- test_profile()
- test_profile()
- test_profile()
- test_profile()
- test_profile()
- test_profile()
- test_profile()
- test_programmatic_tool_use()
- test_programmatic_tool_use_streaming()
- test_prompt_cache_key_invoke()
- test_prompt_cache_key_model_kwargs()
- test_prompt_cache_key_parameter_exclusion()
- test_prompt_cache_key_parameter_inclusion()
- test_prompt_cache_key_per_call()
- test_prompt_cache_key_responses_api()
- test_prompt_cache_key_usage_methods_integration()
- test_property_inheritance_integration()
- test_public_private_state_for_custom_middleware()
- test_pydantic_model()
- test_pydantic_model()
- test_pydantic_model()
- test_pydantic_model_with_nested_secret()
- test_pydantic_model_with_secret_dict()
- test_pydantic_model_with_serializable_containing_secret()
- test_rate_limit_abatch()
- test_rate_limit_ainvoke()
- test_rate_limit_astream()
- test_rate_limit_batch()
- test_rate_limit_invoke()
- test_rate_limit_skips_cache()
- test_rate_limit_skips_cache_async()
- test_rate_limit_stream()
- test_reasoning()
- test_reasoning()
- test_reasoning()
- test_reasoning_aggregation()
- test_reasoning_content()
- test_reasoning_content_streaming()
- test_reasoning_effort_invoke_override()
- test_reasoning_effort_invoke_override_different_level()
- test_reasoning_effort_levels()
- test_reasoning_effort_none()
- test_reasoning_effort_streaming()
- test_reasoning_invoke()
- test_reasoning_modes_behavior()
- test_reasoning_output_invoke()
- test_reasoning_output_stream()
- test_reasoning_param_passed_to_client()
- test_reasoning_stream()
- test_reasoning_v1()
- test_redacted_thinking()
- test_refresh_aborts_when_user_declines_external_directory()
- test_refresh_generates_profiles_file()
- test_refresh_includes_models_defined_only_in_augmentations()
- test_refresh_raises_error_for_missing_provider()
- test_refresh_works_without_augmentations()
- test_regex_matching_with_ignore_case()
- test_remote_mcp()
- test_rendering_prompt_with_conditionals_no_empty_text_blocks()
- test_response_format()
- test_response_format_in_agent()
- test_response_format_with_output_config()
- test_response_metadata()
- test_response_metadata_streaming()
- test_responses_api_uses_deployment_name()
- test_responses_stream()
- test_responses_stream_with_image_generation_multiple_calls()
- test_retry_outer_transform_inner()
- test_retry_parameters()
- test_retry_with_failure_then_success()
- test_retry_with_logging()
- test_retry_with_state_tracking()
- test_route_from_model_kwargs()
- test_run_arg_with_memory()
- test_run_args_and_kwargs_error()
- test_run_chat_model_all_formats()
- test_run_info()
- test_run_kwargs()
- test_run_kwargs_error()
- test_run_limit_resets_between_invocations()
- test_run_limit_with_create_agent()
- test_run_multiple_args_error()
- test_run_single_arg()
- test_run_with_callback()
- test_run_with_callback_and_input_error()
- test_run_with_callback_and_output_error()
- test_sanitize_for_postgres()
- test_schema_for_prompt_and_chat_model()
- test_schema_from_with_structured_output()
- test_schema_parsing_failures()
- test_schema_parsing_failures_async()
- test_schema_parsing_failures_responses_api()
- test_schema_parsing_failures_responses_api_async()
- test_search_control()
- test_search_domain_filter()
- test_search_recency_filter()
- test_search_result_tool_message()
- test_search_result_top_level()
- test_selective_error_handling()
- test_serdes()
- test_serialization_with_rate_limiter()
- test_service_tier()
- test_set_default_max_tokens()
- test_setting_service_tier_class()
- test_setting_service_tier_request()
- test_setting_service_tier_request_async()
- test_setting_service_tier_streaming()
- test_simple_retry_on_error()
- test_single_input_correct()
- test_single_input_error()
- test_standard_generation()
- test_standard_params()
- test_stateful_api()
- test_stop_sequence()
- test_stop_sequence()
- test_stop_sequence()
- test_stop_sequence()
- test_stop_sequence()
- test_stream()
- test_stream()
- test_stream()
- test_stream()
- test_stream()
- test_stream()
- test_stream_error_callback()
- test_stream_no_reasoning()
- test_stream_o_series()
- test_stream_reasoning_none()
- test_stream_reasoning_summary()
- test_stream_response_format()
- test_stream_response_format()
- test_stream_response_to_generation_chunk()
- test_stream_text_tokens()
- test_stream_time()
- test_stream_usage()
- test_stream_usage()
- test_stream_usage_metadata()
- test_stream_usage_override()
- test_stream_with_callback()
- test_stream_with_model_override()
- test_streaming()
- test_streaming()
- test_streaming_attribute_overrides_streaming_callback()
- test_streaming_attribute_should_stream()
- test_streaming_attribute_should_stream()
- test_streaming_cache_token_reporting()
- test_streaming_generation_info()
- test_streaming_tool_call()
- test_streaming_with_cached_and_reasoning_tokens()
- test_streaming_with_reasoning_tokens()
- test_streaming_with_usage_metadata()
- test_streaming_without_usage_metadata()
- test_strict_tool_use()
- test_strict_tool_use()
- test_strict_tool_use_payload()
- test_structured_few_shot_examples()
- test_structured_output()
- test_structured_output()
- test_structured_output_and_tools()
- test_structured_output_async()
- test_structured_output_deeply_nested()
- test_structured_output_json_schema()
- test_structured_output_json_schema()
- test_structured_output_json_schema_async()
- test_structured_output_old_model()
- test_structured_output_old_model()
- test_structured_output_optional_param()
- test_structured_output_pydantic_2_v1()
- test_structured_output_strict()
- test_structured_output_strict()
- test_structured_output_thinking_enabled()
- test_structured_output_thinking_force_tool_use()
- test_structured_output_verbosity()
- test_structured_outputs_parser()
- test_structured_response_preserved()
- test_summarization_before_model_uses_unscaled_tokens_for_cutoff()
- test_supported_providers_is_sorted()
- test_supported_providers_package_names()
- test_supported_providers_package_names()
- test_sync_invoke_with_mixed_middleware()
- test_sync_invoke_with_only_async_middleware_raises_error()
- test_system_invoke()
- test_system_message()
- test_system_message_multiple_tools()
- test_system_message_single_tool()
- test_thinking()
- test_thinking_v1()
- test_thread_limit_with_create_agent()
- test_three_middleware_composition()
- test_to_chat_prompt_errors()
- test_to_chat_prompt_valid_messages()
- test_to_chatml_format()
- test_to_chatml_format_with_invalid_type()
- test_to_model_kwargs()
- test_to_model_kwargs_strict()
- test_todo_middleware_on_model_call()
- test_token_costs_are_zeroed_out()
- test_tool_astreaming()
- test_tool_calling()
- test_tool_calling()
- test_tool_calling_async()
- test_tool_calling_async()
- test_tool_calling_with_no_arguments()
- test_tool_calling_with_no_arguments()
- test_tool_choice()
- test_tool_choice()
- test_tool_choice_bool()
- test_tool_choice_bool()
- test_tool_id_conversion()
- test_tool_message_error_status()
- test_tool_message_histories_list_content()
- test_tool_message_histories_list_content()
- test_tool_message_histories_string_content()
- test_tool_retry_initialization_with_base_tools()
- test_tool_retry_specific_tools_with_base_tool()
- test_tool_search()
- test_tool_search_beta_headers()
- test_tool_search_is_builtin_tool()
- test_tool_search_result_formatting()
- test_tool_search_with_deferred_tools()
- test_tool_streaming()
- test_tool_use()
- test_tool_use()
- test_tools_and_structured_output()
- test_tools_to_model_edge_with_structured_and_regular_tool_calls()
- test_trace_content_blocks_with_no_type_key()
- test_trace_images_in_openai_format()
- test_trace_pdfs()
- test_traceable_to_tracing()
- test_tracer_chain_run()
- test_tracer_chain_run()
- test_tracer_chain_run_on_error()
- test_tracer_chain_run_on_error()
- test_tracer_chat_model_run()
- test_tracer_chat_model_run()
- test_tracer_llm_run()
- test_tracer_llm_run()
- test_tracer_llm_run_errors_no_start()
- test_tracer_llm_run_errors_no_start()
- test_tracer_llm_run_on_error()
- test_tracer_llm_run_on_error()
- test_tracer_llm_run_on_error_callback()
- test_tracer_llm_run_on_error_callback()
- test_tracer_multiple_llm_runs()
- test_tracer_multiple_llm_runs()
- test_tracer_nested_run()
- test_tracer_nested_run()
- test_tracer_nested_runs_on_error()
- test_tracer_nested_runs_on_error()
- test_tracer_tool_run()
- test_tracer_tool_run()
- test_tracer_tool_run_on_error()
- test_tracer_tool_run_on_error()
- test_trim_messages_bound_model_token_counter()
- test_two_middleware_composition()
- test_unicode_tool_call_integration()
- test_unicode_tool_call_integration()
- test_uppercase_response()
- test_usage_metadata()
- test_usage_metadata_standardization()
- test_usage_metadata_streaming()
- test_validate_model_on_init()
- test_validate_model_on_init()
- test_validate_model_on_init()
- test_verbosity_parameter()
- test_verbosity_parameter_payload()
- test_web_fetch()
- test_web_fetch_v1()
- test_web_search()
- test_web_search()
- test_web_search()
- test_web_search()
- test_web_search_async()
- test_web_search_v1()
- test_with_structured_output()
- test_with_structured_output()
- test_with_structured_output()
- test_with_structured_output_strict_mode_uses_beta_endpoint()
- test_xai_model_param()
- test_zero_distance()
- test_zero_distance_async()
- test_zero_distance_pairwise()
- test_zero_distance_pairwise_async()
- text()
- text()
- to_model_kwargs()
- tomli()
- tomllib()
- tool_call_schema()
- tool_mock()
- transform()
- transform()
- transformers()
- typing_extensions()
- unicode_customer()
- update()
- update()
- update()
- update_cache()
- uuid()
- uuid()
- validate_dependencies()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_environment()
- validate_input_variables()
- validate_llm()
- validate_model()
- validate_response()
- validate_temperature()
- validate_translator()
- validate_variable_names()
- visit_comparison()
- visit_operation()
- visit_structured_query()
- with_config()
- with_config()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- with_structured_output()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
- wrap_model_call()
Source Files
- libs/langchain/langchain_classic/llms/__init__.py
- libs/langchain/langchain_classic/chat_models/__init__.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/__init__.py
- libs/langchain/langchain_classic/memory/chat_message_histories/__init__.py
- libs/core/langchain_core/language_models/__init__.py
- libs/partners/openai/langchain_openai/chat_models/_client_utils.py
- libs/partners/fireworks/langchain_fireworks/_compat.py
- libs/partners/openai/langchain_openai/chat_models/_compat.py
- libs/partners/ollama/langchain_ollama/_utils.py
- libs/core/langchain_core/language_models/_utils.py
- libs/langchain/langchain_classic/llms/ai21.py
- libs/langchain/langchain_classic/llms/aleph_alpha.py
- libs/langchain/langchain_classic/llms/amazon_api_gateway.py
- libs/langchain/langchain_classic/chat_models/anthropic.py
- libs/langchain/langchain_classic/llms/anthropic.py
- libs/langchain/langchain_classic/llms/anyscale.py
- libs/langchain/langchain_classic/chat_models/anyscale.py
- libs/langchain/langchain_classic/llms/arcee.py
- libs/langchain/langchain_classic/memory/chat_message_histories/astradb.py
- libs/langchain/langchain_classic/llms/aviary.py
- libs/partners/openai/langchain_openai/chat_models/azure.py
- libs/partners/openai/langchain_openai/llms/azure.py
- libs/langchain/langchain_classic/chat_models/azure_openai.py
- libs/langchain/langchain_classic/llms/azureml_endpoint.py
- libs/langchain/langchain_classic/chat_models/azureml_endpoint.py
- libs/langchain/langchain_classic/chat_models/baichuan.py
- libs/langchain/langchain_classic/chat_models/baidu_qianfan_endpoint.py
- libs/langchain/langchain_classic/llms/baidu_qianfan_endpoint.py
- libs/langchain/langchain_classic/llms/bananadev.py
- libs/core/langchain_core/prompts/base.py
- libs/langchain/langchain_classic/retrievers/document_compressors/base.py
- libs/langchain/langchain_classic/tools/amadeus/base.py
- libs/core/langchain_core/documents/base.py
- libs/core/langchain_core/example_selectors/base.py
- libs/langchain/langchain_classic/embeddings/base.py
- libs/core/langchain_core/tools/base.py
- libs/langchain/langchain_classic/evaluation/parsing/base.py
- libs/langchain_v1/langchain/embeddings/base.py
- libs/langchain/langchain_classic/tools/slack/base.py
- libs/langchain/langchain_classic/evaluation/exact_match/base.py
- libs/langchain/langchain_classic/tools/ainetwork/base.py
- libs/langchain/langchain_classic/vectorstores/redis/base.py
- libs/langchain/langchain_classic/docstore/base.py
- libs/langchain/langchain_classic/evaluation/string_distance/base.py
- libs/langchain/langchain_classic/vectorstores/docarray/base.py
- libs/langchain/langchain_classic/retrievers/self_query/base.py
- libs/core/langchain_core/language_models/base.py
- libs/partners/openai/langchain_openai/llms/base.py
- libs/langchain/langchain_classic/tools/office365/base.py
- libs/langchain/langchain_classic/tools/playwright/base.py
- libs/langchain/langchain_classic/chat_models/base.py
- libs/langchain_v1/langchain/chat_models/base.py
- libs/partners/openai/langchain_openai/chat_models/base.py
- libs/langchain/langchain_classic/tools/gmail/base.py
- libs/core/langchain_core/messages/base.py
- libs/partners/openai/langchain_openai/embeddings/base.py
- libs/langchain/langchain_classic/evaluation/embedding_distance/base.py
- libs/langchain/langchain_classic/evaluation/regex_match/base.py
- libs/langchain/langchain_classic/base_memory.py
- libs/langchain/langchain_classic/document_loaders/base_o365.py
- libs/langchain/langchain_classic/llms/baseten.py
- libs/langchain/langchain_classic/llms/beam.py
- libs/langchain/langchain_classic/chat_models/bedrock.py
- libs/langchain/langchain_classic/llms/bedrock.py
- libs/langchain/langchain_classic/llms/bittensor.py
- libs/langchain/langchain_classic/memory/chat_message_histories/cassandra.py
- libs/langchain/langchain_classic/llms/cerebriumai.py
- libs/core/langchain_core/messages/chat.py
- libs/core/langchain_core/prompts/chat.py
- libs/core/langchain_core/outputs/chat_generation.py
- libs/core/langchain_core/chat_history.py
- libs/core/langchain_core/chat_loaders.py
- libs/langchain/langchain_classic/memory/chat_memory.py
- libs/standard-tests/langchain_tests/unit_tests/chat_models.py
- libs/partners/xai/langchain_xai/chat_models.py
- libs/partners/anthropic/langchain_anthropic/chat_models.py
- libs/partners/perplexity/langchain_perplexity/chat_models.py
- libs/partners/mistralai/langchain_mistralai/chat_models.py
- libs/standard-tests/langchain_tests/integration_tests/chat_models.py
- libs/core/langchain_core/language_models/chat_models.py
- libs/partners/fireworks/langchain_fireworks/chat_models.py
- libs/partners/groq/langchain_groq/chat_models.py
- libs/partners/deepseek/langchain_deepseek/chat_models.py
- libs/partners/ollama/langchain_ollama/chat_models.py
- libs/langchain/langchain_classic/llms/chatglm.py
- libs/langchain/langchain_classic/llms/clarifai.py
- libs/model-profiles/langchain_model_profiles/cli.py
- libs/langchain/langchain_classic/llms/cloudflare_workersai.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/cobol.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/code_segmenter.py
- libs/langchain/langchain_classic/chat_models/cohere.py
- libs/langchain/langchain_classic/llms/cohere.py
- libs/langchain/langchain_classic/memory/chat_message_histories/cosmos_db.py
- libs/langchain/langchain_classic/llms/ctransformers.py
- libs/langchain/langchain_classic/llms/ctranslate2.py
- libs/standard-tests/tests/unit_tests/custom_chat_model.py
- libs/langchain/langchain_classic/chat_models/databricks.py
- libs/langchain/langchain_classic/llms/databricks.py
- libs/langchain/langchain_classic/llms/deepinfra.py
- libs/langchain/langchain_classic/llms/deepsparse.py
- libs/langchain/langchain_classic/memory/chat_message_histories/dynamodb.py
- libs/langchain/langchain_classic/llms/edenai.py
- libs/langchain/langchain_classic/tools/edenai/edenai_base_tool.py
- libs/langchain/langchain_classic/memory/chat_message_histories/elasticsearch.py
- libs/langchain/langchain_classic/chat_models/ernie.py
- libs/langchain/langchain_classic/chat_models/everlyai.py
- libs/langchain/langchain_classic/document_loaders/facebook_chat.py
- libs/langchain/langchain_classic/chat_loaders/facebook_messenger.py
- libs/langchain/langchain_classic/chat_models/fake.py
- libs/langchain/langchain_classic/llms/fake.py
- libs/core/langchain_core/language_models/fake.py
- libs/langchain/tests/unit_tests/llms/fake_chat_model.py
- libs/core/langchain_core/language_models/fake_chat_models.py
- libs/langchain/tests/unit_tests/llms/fake_llm.py
- libs/langchain/langchain_classic/memory/chat_message_histories/file.py
- libs/langchain/langchain_classic/memory/chat_message_histories/firestore.py
- libs/langchain/langchain_classic/llms/fireworks.py
- libs/langchain/langchain_classic/chat_models/fireworks.py
- libs/langchain/langchain_classic/llms/forefrontai.py
- libs/langchain/langchain_classic/chat_models/gigachat.py
- libs/langchain/langchain_classic/llms/gigachat.py
- libs/langchain/langchain_classic/chat_loaders/gmail.py
- libs/langchain/langchain_classic/chat_models/google_palm.py
- libs/langchain/langchain_classic/llms/google_palm.py
- libs/langchain/langchain_classic/llms/gooseai.py
- libs/langchain/langchain_classic/llms/gpt4all.py
- libs/langchain/langchain_classic/llms/gradient_ai.py
- libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py
- libs/langchain/langchain_classic/llms/huggingface_endpoint.py
- libs/partners/huggingface/langchain_huggingface/llms/huggingface_endpoint.py
- libs/langchain/langchain_classic/llms/huggingface_hub.py
- libs/partners/huggingface/langchain_huggingface/llms/huggingface_pipeline.py
- libs/langchain/langchain_classic/llms/huggingface_pipeline.py
- libs/langchain/langchain_classic/llms/huggingface_text_gen_inference.py
- libs/langchain/langchain_classic/chat_models/human.py
- libs/langchain/langchain_classic/llms/human.py
- libs/langchain/langchain_classic/chat_models/hunyuan.py
- libs/langchain/langchain_classic/chat_loaders/imessage.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/javascript.py
- libs/langchain/langchain_classic/llms/javelin_ai_gateway.py
- libs/langchain/langchain_classic/chat_models/javelin_ai_gateway.py
- libs/langchain/langchain_classic/chat_models/jinachat.py
- libs/langchain/langchain_classic/llms/koboldai.py
- libs/langchain/langchain_classic/chat_models/konko.py
- libs/langchain/langchain_classic/chat_loaders/langsmith.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/language_parser.py
- libs/langchain/langchain_classic/chat_models/litellm.py
- libs/langchain/langchain_classic/llms/llamacpp.py
- libs/partners/fireworks/langchain_fireworks/llms.py
- libs/partners/ollama/langchain_ollama/llms.py
- libs/core/langchain_core/language_models/llms.py
- libs/partners/anthropic/langchain_anthropic/llms.py
- libs/langchain/langchain_classic/llms/loading.py
- libs/langchain/langchain_classic/llms/manifest.py
- libs/langchain/langchain_classic/chat_models/meta.py
- libs/langchain/langchain_classic/llms/minimax.py
- libs/langchain/langchain_classic/chat_models/minimax.py
- libs/langchain/langchain_classic/llms/mlflow.py
- libs/langchain/langchain_classic/chat_models/mlflow.py
- libs/langchain/langchain_classic/llms/mlflow_ai_gateway.py
- libs/langchain/langchain_classic/chat_models/mlflow_ai_gateway.py
- libs/langchain/langchain_classic/llms/modal.py
- libs/langchain_v1/tests/unit_tests/agents/model.py
- libs/langchain_v1/langchain/agents/middleware/model_call_limit.py
- libs/langchain_v1/langchain/agents/middleware/model_fallback.py
- libs/langchain/langchain_classic/model_laboratory.py
- libs/langchain_v1/langchain/agents/middleware/model_retry.py
- libs/langchain/langchain_classic/memory/chat_message_histories/momento.py
- libs/langchain/langchain_classic/memory/chat_message_histories/mongodb.py
- libs/langchain/langchain_classic/llms/mosaicml.py
- libs/langchain/langchain_classic/memory/chat_message_histories/neo4j.py
- libs/langchain/langchain_classic/llms/nlpcloud.py
- libs/langchain/langchain_classic/llms/octoai_endpoint.py
- libs/langchain/langchain_classic/chat_models/ollama.py
- libs/langchain/langchain_classic/llms/ollama.py
- libs/langchain/langchain_classic/llms/opaqueprompts.py
- libs/langchain/langchain_classic/chat_models/openai.py
- libs/langchain/langchain_classic/llms/openai.py
- libs/langchain/langchain_classic/llms/openllm.py
- libs/langchain/langchain_classic/llms/openlm.py
- libs/langchain/langchain_classic/chat_models/pai_eas_endpoint.py
- libs/langchain/langchain_classic/llms/pai_eas_endpoint.py
- libs/langchain/langchain_classic/retrievers/parent_document_retriever.py
- libs/langchain/langchain_classic/llms/petals.py
- libs/langchain/langchain_classic/llms/pipelineai.py
- libs/langchain/langchain_classic/memory/chat_message_histories/postgres.py
- libs/langchain/langchain_classic/llms/predibase.py
- libs/langchain/langchain_classic/llms/predictionguard.py
- libs/langchain/langchain_classic/llms/promptlayer_openai.py
- libs/langchain/langchain_classic/chat_models/promptlayer_openai.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/python.py
- libs/langchain/langchain_classic/memory/chat_message_histories/redis.py
- libs/langchain/langchain_classic/llms/replicate.py
- libs/langchain/langchain_classic/memory/chat_message_histories/rocksetdb.py
- libs/langchain/langchain_classic/llms/rwkv.py
- libs/langchain/langchain_classic/llms/sagemaker_endpoint.py
- libs/langchain/langchain_classic/llms/self_hosted.py
- libs/langchain/langchain_classic/llms/self_hosted_hugging_face.py
- libs/langchain/langchain_classic/memory/chat_message_histories/singlestoredb.py
- libs/langchain/langchain_classic/chat_loaders/slack.py
- libs/langchain/langchain_classic/memory/chat_message_histories/sql.py
- libs/langchain/langchain_classic/llms/stochasticai.py
- libs/langchain/langchain_classic/memory/chat_message_histories/streamlit.py
- libs/langchain/langchain_classic/llms/symblai_nebula.py
- libs/langchain/langchain_classic/chat_loaders/telegram.py
- libs/core/tests/unit_tests/tracers/test_async_base_tracer.py
- libs/partners/openai/tests/integration_tests/chat_models/test_azure.py
- libs/partners/openai/tests/unit_tests/llms/test_azure.py
- libs/partners/openai/tests/unit_tests/chat_models/test_azure.py
- libs/partners/openai/tests/integration_tests/llms/test_azure.py
- libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py
- libs/partners/openai/tests/integration_tests/chat_models/test_azure_standard.py
- libs/langchain/tests/unit_tests/callbacks/test_base.py
- libs/langchain_v1/tests/unit_tests/embeddings/test_base.py
- libs/partners/openai/tests/integration_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py
- libs/langchain/tests/unit_tests/llms/test_base.py
- libs/langchain/tests/unit_tests/evaluation/regex_match/test_base.py
- libs/partners/openai/tests/integration_tests/chat_models/test_base.py
- libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py
- libs/langchain/tests/unit_tests/chat_models/test_base.py
- libs/partners/openai/tests/integration_tests/llms/test_base.py
- libs/langchain/tests/unit_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/schema/runnable/test_base.py
- libs/core/tests/unit_tests/document_loaders/test_base.py
- libs/langchain/tests/unit_tests/prompts/test_base.py
- libs/langchain_v1/tests/integration_tests/embeddings/test_base.py
- libs/partners/openai/tests/unit_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/tools/test_base.py
- libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py
- libs/langchain/tests/integration_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/document_loaders/test_base.py
- libs/langchain/tests/unit_tests/evaluation/string_distance/test_base.py
- libs/langchain/tests/unit_tests/chains/test_base.py
- libs/langchain/tests/integration_tests/chat_models/test_base.py
- libs/core/tests/unit_tests/example_selectors/test_base.py
- libs/langchain_v1/tests/integration_tests/chat_models/test_base.py
- libs/partners/openai/tests/unit_tests/chat_models/test_base.py
- libs/core/tests/unit_tests/language_models/llms/test_base.py
- libs/core/tests/unit_tests/language_models/chat_models/test_base.py
- libs/partners/openai/tests/unit_tests/llms/test_base.py
- libs/core/tests/unit_tests/output_parsers/test_base_parsers.py
- libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py
- libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py
- libs/core/tests/unit_tests/tracers/test_base_tracer.py
- libs/core/tests/unit_tests/language_models/chat_models/test_benchmark.py
- libs/core/tests/unit_tests/language_models/chat_models/test_cache.py
- libs/core/tests/unit_tests/language_models/llms/test_cache.py
- libs/core/tests/unit_tests/prompts/test_chat.py
- libs/langchain/tests/unit_tests/schema/test_chat.py
- libs/langchain/tests/unit_tests/agents/test_chat.py
- libs/langchain/tests/unit_tests/prompts/test_chat.py
- libs/core/tests/unit_tests/outputs/test_chat_generation.py
- libs/core/tests/unit_tests/chat_history/test_chat_history.py
- libs/langchain/tests/unit_tests/schema/test_chat_history.py
- libs/partners/xai/tests/integration_tests/test_chat_models.py
- libs/partners/groq/tests/integration_tests/test_chat_models.py
- libs/partners/deepseek/tests/integration_tests/test_chat_models.py
- libs/partners/mistralai/tests/unit_tests/test_chat_models.py
- libs/partners/perplexity/tests/integration_tests/test_chat_models.py
- libs/partners/fireworks/tests/integration_tests/test_chat_models.py
- libs/partners/ollama/tests/unit_tests/test_chat_models.py
- libs/partners/xai/tests/unit_tests/test_chat_models.py
- libs/partners/anthropic/tests/integration_tests/test_chat_models.py
- libs/partners/groq/tests/unit_tests/test_chat_models.py
- libs/partners/perplexity/tests/unit_tests/test_chat_models.py
- libs/partners/huggingface/tests/unit_tests/test_chat_models.py
- libs/partners/huggingface/tests/integration_tests/test_chat_models.py
- libs/langchain_v1/tests/unit_tests/chat_models/test_chat_models.py
- libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models.py
- libs/partners/deepseek/tests/unit_tests/test_chat_models.py
- libs/partners/anthropic/tests/unit_tests/test_chat_models.py
- libs/partners/mistralai/tests/integration_tests/test_chat_models.py
- libs/partners/fireworks/tests/unit_tests/test_chat_models.py
- libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py
- libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py
- libs/partners/xai/tests/integration_tests/test_chat_models_standard.py
- libs/partners/xai/tests/unit_tests/test_chat_models_standard.py
- libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py
- libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_standard.py
- libs/model-profiles/tests/unit_tests/test_cli.py
- libs/model-profiles/tests/integration_tests/test_compile.py
- libs/standard-tests/tests/unit_tests/test_custom_chat_model.py
- libs/core/tests/unit_tests/fake/test_fake_chat_model.py
- libs/langchain/tests/unit_tests/llms/test_fake_chat_model.py
- libs/core/tests/unit_tests/language_models/test_imports.py
- libs/partners/openai/tests/unit_tests/chat_models/test_imports.py
- libs/langchain/tests/unit_tests/chat_models/test_imports.py
- libs/langchain/tests/unit_tests/memory/chat_message_histories/test_imports.py
- libs/partners/openai/tests/unit_tests/llms/test_imports.py
- libs/langchain/tests/unit_tests/llms/test_imports.py
- libs/langchain/tests/unit_tests/schema/test_language_model.py
- libs/partners/fireworks/tests/unit_tests/test_llms.py
- libs/partners/anthropic/tests/integration_tests/test_llms.py
- libs/partners/ollama/tests/unit_tests/test_llms.py
- libs/partners/fireworks/tests/integration_tests/test_llms.py
- libs/partners/huggingface/tests/integration_tests/test_llms.py
- libs/partners/anthropic/tests/unit_tests/test_llms.py
- libs/partners/ollama/tests/integration_tests/test_llms.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_call_limit.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_fallback.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_retry.py
- libs/partners/openai/tests/unit_tests/chat_models/test_prompt_cache_key.py
- libs/core/tests/unit_tests/test_prompt_values.py
- libs/core/tests/unit_tests/test_pydantic_imports.py
- libs/core/tests/unit_tests/language_models/chat_models/test_rate_limiting.py
- libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py
- libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py
- libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py
- libs/partners/openai/tests/unit_tests/chat_models/test_responses_stream.py
- libs/partners/openai/tests/unit_tests/test_secrets.py
- libs/partners/perplexity/tests/unit_tests/test_secrets.py
- libs/partners/xai/tests/unit_tests/test_secrets.py
- libs/core/tests/unit_tests/utils/test_strings.py
- libs/langchain/tests/unit_tests/agents/test_structured_chat.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call_state_update.py
- libs/langchain/langchain_classic/llms/textgen.py
- libs/langchain/langchain_classic/llms/titan_takeoff.py
- libs/langchain/langchain_classic/llms/titan_takeoff_pro.py
- libs/langchain/langchain_classic/llms/together.py
- libs/langchain/langchain_classic/llms/tongyi.py
- libs/langchain/langchain_classic/chat_models/tongyi.py
- libs/langchain/langchain_classic/memory/chat_message_histories/upstash_redis.py
- libs/langchain/langchain_classic/llms/utils.py
- libs/langchain/langchain_classic/chat_loaders/utils.py
- libs/langchain/langchain_classic/llms/vertexai.py
- libs/langchain/langchain_classic/chat_models/vertexai.py
- libs/langchain/langchain_classic/llms/vllm.py
- libs/langchain/langchain_classic/chat_models/volcengine_maas.py
- libs/langchain/langchain_classic/llms/volcengine_maas.py
- libs/langchain/langchain_classic/llms/watsonxllm.py
- libs/langchain/langchain_classic/document_loaders/web_base.py
- libs/langchain/langchain_classic/chat_loaders/whatsapp.py
- libs/langchain/langchain_classic/document_loaders/whatsapp_chat.py
- libs/langchain/langchain_classic/llms/writer.py
- libs/langchain/langchain_classic/memory/chat_message_histories/xata.py
- libs/langchain/langchain_classic/llms/xinference.py
- libs/langchain/langchain_classic/chat_models/yandex.py
- libs/langchain/langchain_classic/llms/yandex.py
- libs/langchain/langchain_classic/memory/chat_message_histories/zep.py
Source
- libs/langchain/langchain_classic/llms/__init__.py
- libs/langchain/langchain_classic/chat_models/__init__.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/__init__.py
- libs/langchain/langchain_classic/memory/chat_message_histories/__init__.py
- libs/core/langchain_core/language_models/__init__.py
- libs/partners/openai/langchain_openai/chat_models/_client_utils.py
- libs/partners/fireworks/langchain_fireworks/_compat.py
- libs/partners/openai/langchain_openai/chat_models/_compat.py
- libs/partners/ollama/langchain_ollama/_utils.py
- libs/core/langchain_core/language_models/_utils.py
- libs/langchain/langchain_classic/llms/ai21.py
- libs/langchain/langchain_classic/llms/aleph_alpha.py
- libs/langchain/langchain_classic/llms/amazon_api_gateway.py
- libs/langchain/langchain_classic/chat_models/anthropic.py
- libs/langchain/langchain_classic/llms/anthropic.py
- libs/langchain/langchain_classic/llms/anyscale.py
- libs/langchain/langchain_classic/chat_models/anyscale.py
- libs/langchain/langchain_classic/llms/arcee.py
- libs/langchain/langchain_classic/memory/chat_message_histories/astradb.py
- libs/langchain/langchain_classic/llms/aviary.py
- libs/partners/openai/langchain_openai/chat_models/azure.py
- libs/partners/openai/langchain_openai/llms/azure.py
- libs/langchain/langchain_classic/chat_models/azure_openai.py
- libs/langchain/langchain_classic/llms/azureml_endpoint.py
- libs/langchain/langchain_classic/chat_models/azureml_endpoint.py
- libs/langchain/langchain_classic/chat_models/baichuan.py
- libs/langchain/langchain_classic/chat_models/baidu_qianfan_endpoint.py
- libs/langchain/langchain_classic/llms/baidu_qianfan_endpoint.py
- libs/langchain/langchain_classic/llms/bananadev.py
- libs/core/langchain_core/prompts/base.py
- libs/langchain/langchain_classic/retrievers/document_compressors/base.py
- libs/langchain/langchain_classic/tools/amadeus/base.py
- libs/core/langchain_core/documents/base.py
- libs/core/langchain_core/example_selectors/base.py
- libs/langchain/langchain_classic/embeddings/base.py
- libs/core/langchain_core/tools/base.py
- libs/langchain/langchain_classic/evaluation/parsing/base.py
- libs/langchain_v1/langchain/embeddings/base.py
- libs/langchain/langchain_classic/tools/slack/base.py
- libs/langchain/langchain_classic/evaluation/exact_match/base.py
- libs/langchain/langchain_classic/tools/ainetwork/base.py
- libs/langchain/langchain_classic/vectorstores/redis/base.py
- libs/langchain/langchain_classic/docstore/base.py
- libs/langchain/langchain_classic/evaluation/string_distance/base.py
- libs/langchain/langchain_classic/vectorstores/docarray/base.py
- libs/langchain/langchain_classic/retrievers/self_query/base.py
- libs/core/langchain_core/language_models/base.py
- libs/partners/openai/langchain_openai/llms/base.py
- libs/langchain/langchain_classic/tools/office365/base.py
- libs/langchain/langchain_classic/tools/playwright/base.py
- libs/langchain/langchain_classic/chat_models/base.py
- libs/langchain_v1/langchain/chat_models/base.py
- libs/partners/openai/langchain_openai/chat_models/base.py
- libs/langchain/langchain_classic/tools/gmail/base.py
- libs/core/langchain_core/messages/base.py
- libs/partners/openai/langchain_openai/embeddings/base.py
- libs/langchain/langchain_classic/evaluation/embedding_distance/base.py
- libs/langchain/langchain_classic/evaluation/regex_match/base.py
- libs/langchain/langchain_classic/base_memory.py
- libs/langchain/langchain_classic/document_loaders/base_o365.py
- libs/langchain/langchain_classic/llms/baseten.py
- libs/langchain/langchain_classic/llms/beam.py
- libs/langchain/langchain_classic/chat_models/bedrock.py
- libs/langchain/langchain_classic/llms/bedrock.py
- libs/langchain/langchain_classic/llms/bittensor.py
- libs/langchain/langchain_classic/memory/chat_message_histories/cassandra.py
- libs/langchain/langchain_classic/llms/cerebriumai.py
- libs/core/langchain_core/messages/chat.py
- libs/core/langchain_core/prompts/chat.py
- libs/core/langchain_core/outputs/chat_generation.py
- libs/core/langchain_core/chat_history.py
- libs/core/langchain_core/chat_loaders.py
- libs/langchain/langchain_classic/memory/chat_memory.py
- libs/standard-tests/langchain_tests/unit_tests/chat_models.py
- libs/partners/xai/langchain_xai/chat_models.py
- libs/partners/anthropic/langchain_anthropic/chat_models.py
- libs/partners/perplexity/langchain_perplexity/chat_models.py
- libs/partners/mistralai/langchain_mistralai/chat_models.py
- libs/standard-tests/langchain_tests/integration_tests/chat_models.py
- libs/core/langchain_core/language_models/chat_models.py
- libs/partners/fireworks/langchain_fireworks/chat_models.py
- libs/partners/groq/langchain_groq/chat_models.py
- libs/partners/deepseek/langchain_deepseek/chat_models.py
- libs/partners/ollama/langchain_ollama/chat_models.py
- libs/langchain/langchain_classic/llms/chatglm.py
- libs/langchain/langchain_classic/llms/clarifai.py
- libs/model-profiles/langchain_model_profiles/cli.py
- libs/langchain/langchain_classic/llms/cloudflare_workersai.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/cobol.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/code_segmenter.py
- libs/langchain/langchain_classic/chat_models/cohere.py
- libs/langchain/langchain_classic/llms/cohere.py
- libs/langchain/langchain_classic/memory/chat_message_histories/cosmos_db.py
- libs/langchain/langchain_classic/llms/ctransformers.py
- libs/langchain/langchain_classic/llms/ctranslate2.py
- libs/standard-tests/tests/unit_tests/custom_chat_model.py
- libs/langchain/langchain_classic/chat_models/databricks.py
- libs/langchain/langchain_classic/llms/databricks.py
- libs/langchain/langchain_classic/llms/deepinfra.py
- libs/langchain/langchain_classic/llms/deepsparse.py
- libs/langchain/langchain_classic/memory/chat_message_histories/dynamodb.py
- libs/langchain/langchain_classic/llms/edenai.py
- libs/langchain/langchain_classic/tools/edenai/edenai_base_tool.py
- libs/langchain/langchain_classic/memory/chat_message_histories/elasticsearch.py
- libs/langchain/langchain_classic/chat_models/ernie.py
- libs/langchain/langchain_classic/chat_models/everlyai.py
- libs/langchain/langchain_classic/document_loaders/facebook_chat.py
- libs/langchain/langchain_classic/chat_loaders/facebook_messenger.py
- libs/langchain/langchain_classic/chat_models/fake.py
- libs/langchain/langchain_classic/llms/fake.py
- libs/core/langchain_core/language_models/fake.py
- libs/langchain/tests/unit_tests/llms/fake_chat_model.py
- libs/core/langchain_core/language_models/fake_chat_models.py
- libs/langchain/tests/unit_tests/llms/fake_llm.py
- libs/langchain/langchain_classic/memory/chat_message_histories/file.py
- libs/langchain/langchain_classic/memory/chat_message_histories/firestore.py
- libs/langchain/langchain_classic/llms/fireworks.py
- libs/langchain/langchain_classic/chat_models/fireworks.py
- libs/langchain/langchain_classic/llms/forefrontai.py
- libs/langchain/langchain_classic/chat_models/gigachat.py
- libs/langchain/langchain_classic/llms/gigachat.py
- libs/langchain/langchain_classic/chat_loaders/gmail.py
- libs/langchain/langchain_classic/chat_models/google_palm.py
- libs/langchain/langchain_classic/llms/google_palm.py
- libs/langchain/langchain_classic/llms/gooseai.py
- libs/langchain/langchain_classic/llms/gpt4all.py
- libs/langchain/langchain_classic/llms/gradient_ai.py
- libs/partners/huggingface/langchain_huggingface/chat_models/huggingface.py
- libs/langchain/langchain_classic/llms/huggingface_endpoint.py
- libs/partners/huggingface/langchain_huggingface/llms/huggingface_endpoint.py
- libs/langchain/langchain_classic/llms/huggingface_hub.py
- libs/partners/huggingface/langchain_huggingface/llms/huggingface_pipeline.py
- libs/langchain/langchain_classic/llms/huggingface_pipeline.py
- libs/langchain/langchain_classic/llms/huggingface_text_gen_inference.py
- libs/langchain/langchain_classic/chat_models/human.py
- libs/langchain/langchain_classic/llms/human.py
- libs/langchain/langchain_classic/chat_models/hunyuan.py
- libs/langchain/langchain_classic/chat_loaders/imessage.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/javascript.py
- libs/langchain/langchain_classic/llms/javelin_ai_gateway.py
- libs/langchain/langchain_classic/chat_models/javelin_ai_gateway.py
- libs/langchain/langchain_classic/chat_models/jinachat.py
- libs/langchain/langchain_classic/llms/koboldai.py
- libs/langchain/langchain_classic/chat_models/konko.py
- libs/langchain/langchain_classic/chat_loaders/langsmith.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/language_parser.py
- libs/langchain/langchain_classic/chat_models/litellm.py
- libs/langchain/langchain_classic/llms/llamacpp.py
- libs/partners/fireworks/langchain_fireworks/llms.py
- libs/partners/ollama/langchain_ollama/llms.py
- libs/core/langchain_core/language_models/llms.py
- libs/partners/anthropic/langchain_anthropic/llms.py
- libs/langchain/langchain_classic/llms/loading.py
- libs/langchain/langchain_classic/llms/manifest.py
- libs/langchain/langchain_classic/chat_models/meta.py
- libs/langchain/langchain_classic/llms/minimax.py
- libs/langchain/langchain_classic/chat_models/minimax.py
- libs/langchain/langchain_classic/llms/mlflow.py
- libs/langchain/langchain_classic/chat_models/mlflow.py
- libs/langchain/langchain_classic/llms/mlflow_ai_gateway.py
- libs/langchain/langchain_classic/chat_models/mlflow_ai_gateway.py
- libs/langchain/langchain_classic/llms/modal.py
- libs/langchain_v1/tests/unit_tests/agents/model.py
- libs/langchain_v1/langchain/agents/middleware/model_call_limit.py
- libs/langchain_v1/langchain/agents/middleware/model_fallback.py
- libs/langchain/langchain_classic/model_laboratory.py
- libs/langchain_v1/langchain/agents/middleware/model_retry.py
- libs/langchain/langchain_classic/memory/chat_message_histories/momento.py
- libs/langchain/langchain_classic/memory/chat_message_histories/mongodb.py
- libs/langchain/langchain_classic/llms/mosaicml.py
- libs/langchain/langchain_classic/memory/chat_message_histories/neo4j.py
- libs/langchain/langchain_classic/llms/nlpcloud.py
- libs/langchain/langchain_classic/llms/octoai_endpoint.py
- libs/langchain/langchain_classic/chat_models/ollama.py
- libs/langchain/langchain_classic/llms/ollama.py
- libs/langchain/langchain_classic/llms/opaqueprompts.py
- libs/langchain/langchain_classic/chat_models/openai.py
- libs/langchain/langchain_classic/llms/openai.py
- libs/langchain/langchain_classic/llms/openllm.py
- libs/langchain/langchain_classic/llms/openlm.py
- libs/langchain/langchain_classic/chat_models/pai_eas_endpoint.py
- libs/langchain/langchain_classic/llms/pai_eas_endpoint.py
- libs/langchain/langchain_classic/retrievers/parent_document_retriever.py
- libs/langchain/langchain_classic/llms/petals.py
- libs/langchain/langchain_classic/llms/pipelineai.py
- libs/langchain/langchain_classic/memory/chat_message_histories/postgres.py
- libs/langchain/langchain_classic/llms/predibase.py
- libs/langchain/langchain_classic/llms/predictionguard.py
- libs/langchain/langchain_classic/llms/promptlayer_openai.py
- libs/langchain/langchain_classic/chat_models/promptlayer_openai.py
- libs/langchain/langchain_classic/document_loaders/parsers/language/python.py
- libs/langchain/langchain_classic/memory/chat_message_histories/redis.py
- libs/langchain/langchain_classic/llms/replicate.py
- libs/langchain/langchain_classic/memory/chat_message_histories/rocksetdb.py
- libs/langchain/langchain_classic/llms/rwkv.py
- libs/langchain/langchain_classic/llms/sagemaker_endpoint.py
- libs/langchain/langchain_classic/llms/self_hosted.py
- libs/langchain/langchain_classic/llms/self_hosted_hugging_face.py
- libs/langchain/langchain_classic/memory/chat_message_histories/singlestoredb.py
- libs/langchain/langchain_classic/chat_loaders/slack.py
- libs/langchain/langchain_classic/memory/chat_message_histories/sql.py
- libs/langchain/langchain_classic/llms/stochasticai.py
- libs/langchain/langchain_classic/memory/chat_message_histories/streamlit.py
- libs/langchain/langchain_classic/llms/symblai_nebula.py
- libs/langchain/langchain_classic/chat_loaders/telegram.py
- libs/core/tests/unit_tests/tracers/test_async_base_tracer.py
- libs/partners/openai/tests/integration_tests/chat_models/test_azure.py
- libs/partners/openai/tests/unit_tests/llms/test_azure.py
- libs/partners/openai/tests/unit_tests/chat_models/test_azure.py
- libs/partners/openai/tests/integration_tests/llms/test_azure.py
- libs/partners/openai/tests/unit_tests/chat_models/test_azure_standard.py
- libs/partners/openai/tests/integration_tests/chat_models/test_azure_standard.py
- libs/langchain/tests/unit_tests/callbacks/test_base.py
- libs/langchain_v1/tests/unit_tests/embeddings/test_base.py
- libs/partners/openai/tests/integration_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/evaluation/parsing/test_base.py
- libs/langchain/tests/unit_tests/llms/test_base.py
- libs/langchain/tests/unit_tests/evaluation/regex_match/test_base.py
- libs/partners/openai/tests/integration_tests/chat_models/test_base.py
- libs/langchain/tests/unit_tests/evaluation/exact_match/test_base.py
- libs/langchain/tests/unit_tests/chat_models/test_base.py
- libs/partners/openai/tests/integration_tests/llms/test_base.py
- libs/langchain/tests/unit_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/schema/runnable/test_base.py
- libs/core/tests/unit_tests/document_loaders/test_base.py
- libs/langchain/tests/unit_tests/prompts/test_base.py
- libs/langchain_v1/tests/integration_tests/embeddings/test_base.py
- libs/partners/openai/tests/unit_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/tools/test_base.py
- libs/langchain/tests/unit_tests/retrievers/self_query/test_base.py
- libs/langchain/tests/integration_tests/embeddings/test_base.py
- libs/langchain/tests/unit_tests/document_loaders/test_base.py
- libs/langchain/tests/unit_tests/evaluation/string_distance/test_base.py
- libs/langchain/tests/unit_tests/chains/test_base.py
- libs/langchain/tests/integration_tests/chat_models/test_base.py
- libs/core/tests/unit_tests/example_selectors/test_base.py
- libs/langchain_v1/tests/integration_tests/chat_models/test_base.py
- libs/partners/openai/tests/unit_tests/chat_models/test_base.py
- libs/core/tests/unit_tests/language_models/llms/test_base.py
- libs/core/tests/unit_tests/language_models/chat_models/test_base.py
- libs/partners/openai/tests/unit_tests/llms/test_base.py
- libs/core/tests/unit_tests/output_parsers/test_base_parsers.py
- libs/partners/openai/tests/unit_tests/chat_models/test_base_standard.py
- libs/partners/openai/tests/integration_tests/chat_models/test_base_standard.py
- libs/core/tests/unit_tests/tracers/test_base_tracer.py
- libs/core/tests/unit_tests/language_models/chat_models/test_benchmark.py
- libs/core/tests/unit_tests/language_models/chat_models/test_cache.py
- libs/core/tests/unit_tests/language_models/llms/test_cache.py
- libs/core/tests/unit_tests/prompts/test_chat.py
- libs/langchain/tests/unit_tests/schema/test_chat.py
- libs/langchain/tests/unit_tests/agents/test_chat.py
- libs/langchain/tests/unit_tests/prompts/test_chat.py
- libs/core/tests/unit_tests/outputs/test_chat_generation.py
- libs/core/tests/unit_tests/chat_history/test_chat_history.py
- libs/langchain/tests/unit_tests/schema/test_chat_history.py
- libs/partners/xai/tests/integration_tests/test_chat_models.py
- libs/partners/groq/tests/integration_tests/test_chat_models.py
- libs/partners/deepseek/tests/integration_tests/test_chat_models.py
- libs/partners/mistralai/tests/unit_tests/test_chat_models.py
- libs/partners/perplexity/tests/integration_tests/test_chat_models.py
- libs/partners/fireworks/tests/integration_tests/test_chat_models.py
- libs/partners/ollama/tests/unit_tests/test_chat_models.py
- libs/partners/xai/tests/unit_tests/test_chat_models.py
- libs/partners/anthropic/tests/integration_tests/test_chat_models.py
- libs/partners/groq/tests/unit_tests/test_chat_models.py
- libs/partners/perplexity/tests/unit_tests/test_chat_models.py
- libs/partners/huggingface/tests/unit_tests/test_chat_models.py
- libs/partners/huggingface/tests/integration_tests/test_chat_models.py
- libs/langchain_v1/tests/unit_tests/chat_models/test_chat_models.py
- libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models.py
- libs/partners/deepseek/tests/unit_tests/test_chat_models.py
- libs/partners/anthropic/tests/unit_tests/test_chat_models.py
- libs/partners/mistralai/tests/integration_tests/test_chat_models.py
- libs/partners/fireworks/tests/unit_tests/test_chat_models.py
- libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_reasoning.py
- libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py
- libs/partners/xai/tests/integration_tests/test_chat_models_standard.py
- libs/partners/xai/tests/unit_tests/test_chat_models_standard.py
- libs/partners/perplexity/tests/unit_tests/test_chat_models_standard.py
- libs/partners/ollama/tests/integration_tests/chat_models/test_chat_models_standard.py
- libs/model-profiles/tests/unit_tests/test_cli.py
- libs/model-profiles/tests/integration_tests/test_compile.py
- libs/standard-tests/tests/unit_tests/test_custom_chat_model.py
- libs/core/tests/unit_tests/fake/test_fake_chat_model.py
- libs/langchain/tests/unit_tests/llms/test_fake_chat_model.py
- libs/core/tests/unit_tests/language_models/test_imports.py
- libs/partners/openai/tests/unit_tests/chat_models/test_imports.py
- libs/langchain/tests/unit_tests/chat_models/test_imports.py
- libs/langchain/tests/unit_tests/memory/chat_message_histories/test_imports.py
- libs/partners/openai/tests/unit_tests/llms/test_imports.py
- libs/langchain/tests/unit_tests/llms/test_imports.py
- libs/langchain/tests/unit_tests/schema/test_language_model.py
- libs/partners/fireworks/tests/unit_tests/test_llms.py
- libs/partners/anthropic/tests/integration_tests/test_llms.py
- libs/partners/ollama/tests/unit_tests/test_llms.py
- libs/partners/fireworks/tests/integration_tests/test_llms.py
- libs/partners/huggingface/tests/integration_tests/test_llms.py
- libs/partners/anthropic/tests/unit_tests/test_llms.py
- libs/partners/ollama/tests/integration_tests/test_llms.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_call_limit.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_fallback.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/implementations/test_model_retry.py
- libs/partners/openai/tests/unit_tests/chat_models/test_prompt_cache_key.py
- libs/core/tests/unit_tests/test_prompt_values.py
- libs/core/tests/unit_tests/test_pydantic_imports.py
- libs/core/tests/unit_tests/language_models/chat_models/test_rate_limiting.py
- libs/partners/openai/tests/integration_tests/chat_models/test_responses_api.py
- libs/partners/openai/tests/unit_tests/chat_models/test_responses_standard.py
- libs/partners/openai/tests/integration_tests/chat_models/test_responses_standard.py
- libs/partners/openai/tests/unit_tests/chat_models/test_responses_stream.py
- libs/partners/openai/tests/unit_tests/test_secrets.py
- libs/partners/perplexity/tests/unit_tests/test_secrets.py
- libs/partners/xai/tests/unit_tests/test_secrets.py
- libs/core/tests/unit_tests/utils/test_strings.py
- libs/langchain/tests/unit_tests/agents/test_structured_chat.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call.py
- libs/langchain_v1/tests/unit_tests/agents/middleware/core/test_wrap_model_call_state_update.py
- libs/langchain/langchain_classic/llms/textgen.py
- libs/langchain/langchain_classic/llms/titan_takeoff.py
- libs/langchain/langchain_classic/llms/titan_takeoff_pro.py
- libs/langchain/langchain_classic/llms/together.py
- libs/langchain/langchain_classic/llms/tongyi.py
- libs/langchain/langchain_classic/chat_models/tongyi.py
- libs/langchain/langchain_classic/memory/chat_message_histories/upstash_redis.py
- libs/langchain/langchain_classic/llms/utils.py
- libs/langchain/langchain_classic/chat_loaders/utils.py
- libs/langchain/langchain_classic/llms/vertexai.py
- libs/langchain/langchain_classic/chat_models/vertexai.py
- libs/langchain/langchain_classic/llms/vllm.py
- libs/langchain/langchain_classic/chat_models/volcengine_maas.py
- libs/langchain/langchain_classic/llms/volcengine_maas.py
- libs/langchain/langchain_classic/llms/watsonxllm.py
- libs/langchain/langchain_classic/document_loaders/web_base.py
- libs/langchain/langchain_classic/chat_loaders/whatsapp.py
- libs/langchain/langchain_classic/document_loaders/whatsapp_chat.py
- libs/langchain/langchain_classic/llms/writer.py
- libs/langchain/langchain_classic/memory/chat_message_histories/xata.py
- libs/langchain/langchain_classic/llms/xinference.py
- libs/langchain/langchain_classic/chat_models/yandex.py
- libs/langchain/langchain_classic/llms/yandex.py
- libs/langchain/langchain_classic/memory/chat_message_histories/zep.py
Frequently Asked Questions
What is the LanguageModelBase subdomain?
LanguageModelBase is a subdomain in the langchain codebase, part of the LangChainCore domain. Abstract interfaces for Chat Models and legacy LLMs. It contains 341 source files.
Which domain does LanguageModelBase belong to?
LanguageModelBase belongs to the LangChainCore domain.
What functions are in LanguageModelBase?
The LanguageModelBase subdomain contains 3116 function(s): ChatOpenAI, InputType, InputType, InputType, OutputType, OutputType, OutputType, _HAS_TRANSFORMERS, and 3108 more.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free