Issue: Many unit tests failing when running on Windows
Labels: name: auto:bug, name: area: models

### Issue you'd like to raise.

I tried to follow the contributing Quick Start [here](https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md#-quick-start), but I'm running into issues when I run the unit tests using `make test`

Here are the failing tests:
```
FAILED tests/unit_tests/agents/test_agent_iterator.py::test_agent_iterator_stopped_early - AssertionError: assert 'curses foiled again' == 'Agent stopped due to iteration limit or time limit.'
FAILED tests/unit_tests/agents/test_agent_iterator.py::test_agent_iterator_reset - assert 0.0 > 0.0
FAILED tests/unit_tests/callbacks/test_callback_manager.py::test_callback_manager_with_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
FAILED tests/unit_tests/storage/test_filesystem.py::test_yield_keys - AssertionError: assert ['key1', 'subdir\\key2'] == ['key1', 'subdir/key2']
FAILED tests/unit_tests/tools/file_management/test_utils.py::test_get_validated_relative_path_errs_on_absolute - re.error: incomplete escape \U at position 53
FAILED tests/unit_tests/tools/file_management/test_utils.py::test_get_validated_relative_path_errs_on_parent_dir - re.error: incomplete escape \U at position 69
FAILED tests/unit_tests/tools/file_management/test_utils.py::test_get_validated_relative_path_errs_for_symlink_outside_root - re.error: incomplete escape \U at position 64
FAILED tests/unit_tests/tools/file_management/test_utils.py::test_get_validated_relative_path_for_symlink_inside_root - langchain.tools.file_management.utils.FileValidationError: Path symlink_inside_root is outside of the allowed direc...
FAILED tests/unit_tests/tools/requests/test_tool.py::test_requests_get_tool - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
FAILED tests/unit_tests/tools/requests/test_tool.py::test_requests_post_tool - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
FAILED tests/unit_tests/tools/requests/test_tool.py::test_requests_patch_tool - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
FAILED tests/unit_tests/tools/requests/test_tool.py::test_requests_put_tool - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
FAILED tests/unit_tests/tools/requests/test_tool.py::test_requests_delete_tool - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/agents/test_agent_iterator.py::test_agent_async_iterator_stopped_early - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/agents/test_agent_iterator.py::test_agent_async_iterator_with_callbacks - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/agents/test_agent_iterator.py::test_agent_async_iterator_output_structure - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/callbacks/test_callback_manager.py::test_callback_manager_with_async_with_running_loop - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/callbacks/test_callback_manager.py::test_async_callback_manager - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/callbacks/test_callback_manager.py::test_async_callback_manager_sync_handler - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/chains/test_sequential.py::test_simple_sequential_functionality_with_callbacks[False] - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/chains/test_sequential.py::test_simple_sequential_functionality_with_callbacks[True] - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/indexes/test_indexing.py::test_abatch - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/output_parsers/test_json.py::test_partial_text_json_output_parser_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/output_parsers/test_json.py::test_partial_functions_json_output_parser_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/output_parsers/test_json.py::test_partial_text_json_output_parser_diff_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/output_parsers/test_json.py::test_partial_functions_json_output_parser_diff_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/retrievers/test_base.py::test_fake_retriever_v1_upgrade_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/retrievers/test_base.py::test_fake_retriever_v1_with_kwargs_upgrade_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/retrievers/test_base.py::test_fake_retriever_v2_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/retrievers/self_query/test_base.py::test__aget_relevant_documents - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_locals.py::test_put_get_async[<lambda>-foo-foo] - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_locals.py::test_put_get_async[<lambda>-input1-output1] - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_passthrough_tap_async - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_with_config - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_default_method_implementations - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_prompt - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_prompt_with_chat_model - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_prompt_with_llm - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_stream_log_retriever - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_prompt_with_llm_and_async_lambda - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_router_runnable - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_higher_order_lambda_runnable - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_map_astream - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_map_astream_iterator_input - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_deep_astream - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_deep_astream_assign - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_runnable_sequence_atransform - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_llm_with_fallbacks[llm_with_fallbacks] - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_llm_with_fallbacks[llm_with_multi_fallbacks] - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_llm_with_fallbacks[llm_chain_with_fallbacks] - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_async_retrying - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_seq_abatch_return_exceptions - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_runnable_branch_ainvoke - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_runnable_branch_ainvoke_callbacks - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_runnable_branch_abatch - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_tool_from_runnable - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_runnable_gen - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/schema/runnable/test_runnable.py::test_runnable_gen_transform - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/smith/evaluation/test_runner_utils.py::test_arun_on_dataset - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_base.py::test_create_async_tool - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_base.py::test_async_exception_handling_bool - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_base.py::test_async_exception_handling_str - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_base.py::test_async_exception_handling_callable - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_base.py::test_async_exception_handling_non_tool_exception - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_zapier.py::test_apreview - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_zapier.py::test_arun - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/test_zapier.py::test_alist - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
ERROR tests/unit_tests/tools/shell/test_shell.py::test_shell_tool_arun - pytest_socket.SocketBlockedError: A test tried to use socket.socket.
```

Here is the complete log:
[test-log.txt](https://github.com/langchain-ai/langchain/files/12895952/test-log.txt)


### Suggestion:

_No response_