Skip to content

Commit

Permalink
Merge pull request #1 from langchain-ai/erick/ibm-init-repo
Browse files Browse the repository at this point in the history
ibm: init repo
  • Loading branch information
efriis authored Jul 8, 2024
2 parents 303018a + 12b0908 commit ae22bb1
Show file tree
Hide file tree
Showing 1,340 changed files with 4,998 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/check_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import sys
from typing import Dict

LIB_DIRS = ["libs/{lib}"]
LIB_DIRS = ["libs/ibm"]

if __name__ == "__main__":
files = sys.argv[1:]
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
working-directory:
required: true
type: string
default: 'libs/'
default: 'libs/ibm'

env:
PYTHON_VERSION: "3.11"
Expand Down Expand Up @@ -158,7 +158,8 @@ jobs:

- name: Run integration tests
env:
PARTNER_API_KEY: ${{ secrets.PARTNER_API_KEY }}
WATSONX_APIKEY: ${{ secrets.WATSONX_APIKEY }}
WATSONX_PROJECT_ID: ${{ secrets.WATSONX_PROJECT_ID }}
run: make integration_tests
working-directory: ${{ inputs.working-directory }}

Expand Down
22 changes: 3 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
# 🦜️🔗 LangChain {partner}
# 🦜️🔗 LangChain IBM Watsonx

This repository contains {n} packages with {partner} integrations with LangChain:
This repository contains 1 package with IBM integrations with LangChain:

- [langchain-{package}](https://pypi.org/project/langchain-{package}/) integrates [{product}}]({product_link}).
{- ... if more packages}
- [langchain-ibm](https://pypi.org/project/langchain-ibm/) integrates [IBM Watsonx](https://www.ibm.com/watsonx).

## Initial Repo Checklist (Remove this section after completing)

This setup assumes that the partner package is already split. For those instructions,
see [these docs](https://python.langchain.com/docs/contributing/integrations#partner-packages).

Code

- [ ] Fill out the readme above (for folks that follow pypi link)
- [ ] Copy package into /libs folder
- [ ] Update these fields in /libs/*/pyproject.toml

- `tool.poetry.repository`
- `tool.poetry.urls["Source Code"]`

Workflow code

- [ ] Add secrets as env vars in .github/workflows/_release.yml
- [ ] Populate .github/workflows/_release.yml with `on.workflow_dispatch.inputs.working-directory.default`
- [ ] Configure `LIB_DIRS` in .github/scripts/check_diff.py

In github

- [ ] Add integration testing secrets in Github (ask Erick for help)
Expand Down
1 change: 1 addition & 0 deletions libs/ibm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/@plugins_snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/__future__.data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".class": "MypyFile", "_fullname": "__future__", "future_import_flags": [], "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "TypeAlias": {".class": "SymbolTableNode", "cross_ref": "typing.TypeAlias", "kind": "Gdef", "module_hidden": true, "module_public": false}, "_Feature": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "TypeInfo", "_promote": [], "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "__future__._Feature", "name": "_Feature", "type_vars": []}, "deletable_attributes": [], "flags": [], "fullname": "__future__._Feature", "has_param_spec_type": false, "metaclass_type": null, "metadata": {}, "module_name": "__future__", "mro": ["__future__._Feature", "builtins.object"], "names": {".class": "SymbolTable", "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "abstract_status": 0, "arg_kinds": [0, 0, 0, 0], "arg_names": ["self", "optionalRelease", "mandatoryRelease", "compiler_flag"], "flags": [], "fullname": "__future__._Feature.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0, 0], "arg_names": ["self", "optionalRelease", "mandatoryRelease", "compiler_flag"], "arg_types": ["__future__._Feature", {".class": "TypeAliasType", "args": [], "type_ref": "__future__._VersionInfo"}, {".class": "UnionType", "items": [{".class": "TypeAliasType", "args": [], "type_ref": "__future__._VersionInfo"}, {".class": "NoneType"}]}, "builtins.int"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "__init__ of _Feature", "ret_type": {".class": "NoneType"}, "type_guard": null, "unpack_kwargs": false, "variables": []}}}, "compiler_flag": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "Var", "flags": ["is_initialized_in_class", "is_ready"], "fullname": "__future__._Feature.compiler_flag", "name": "compiler_flag", "type": "builtins.int"}}, "getMandatoryRelease": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "abstract_status": 0, "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "__future__._Feature.getMandatoryRelease", "name": "getMandatoryRelease", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["__future__._Feature"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "getMandatoryRelease of _Feature", "ret_type": {".class": "UnionType", "items": [{".class": "TypeAliasType", "args": [], "type_ref": "__future__._VersionInfo"}, {".class": "NoneType"}]}, "type_guard": null, "unpack_kwargs": false, "variables": []}}}, "getOptionalRelease": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "abstract_status": 0, "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "__future__._Feature.getOptionalRelease", "name": "getOptionalRelease", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["__future__._Feature"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "from_concatenate": false, "implicit": false, "is_ellipsis_args": false, "name": "getOptionalRelease of _Feature", "ret_type": {".class": "TypeAliasType", "args": [], "type_ref": "__future__._VersionInfo"}, "type_guard": null, "unpack_kwargs": false, "variables": []}}}}, "slots": null, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "_VersionInfo": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "TypeAlias", "alias_tvars": [], "column": 0, "fullname": "__future__._VersionInfo", "line": 3, "no_args": false, "normalized": false, "target": {".class": "TupleType", "implicit": false, "items": ["builtins.int", "builtins.int", "builtins.int", "builtins.str", "builtins.int"], "partial_fallback": {".class": "Instance", "args": [{".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.tuple"}}}}, "__all__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_inferred", "has_explicit_value"], "fullname": "__future__.__all__", "name": "__all__", "type": {".class": "Instance", "args": ["builtins.str"], "type_ref": "builtins.list"}}}, "__annotations__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.__annotations__", "name": "__annotations__", "type": {".class": "Instance", "args": ["builtins.str", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 6}], "type_ref": "builtins.dict"}}}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.__package__", "name": "__package__", "type": "builtins.str"}}, "absolute_import": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.absolute_import", "name": "absolute_import", "type": "__future__._Feature"}}, "all_feature_names": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.all_feature_names", "name": "all_feature_names", "type": {".class": "Instance", "args": ["builtins.str"], "type_ref": "builtins.list"}}}, "annotations": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.annotations", "name": "annotations", "type": "__future__._Feature"}}, "barry_as_FLUFL": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.barry_as_FLUFL", "name": "barry_as_FLUFL", "type": "__future__._Feature"}}, "division": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.division", "name": "division", "type": "__future__._Feature"}}, "generator_stop": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.generator_stop", "name": "generator_stop", "type": "__future__._Feature"}}, "generators": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.generators", "name": "generators", "type": "__future__._Feature"}}, "nested_scopes": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.nested_scopes", "name": "nested_scopes", "type": "__future__._Feature"}}, "print_function": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.print_function", "name": "print_function", "type": "__future__._Feature"}}, "unicode_literals": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.unicode_literals", "name": "unicode_literals", "type": "__future__._Feature"}}, "with_statement": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "__future__.with_statement", "name": "with_statement", "type": "__future__._Feature"}}}, "path": "/Users/erickfriis/langchain/oss-py/libs/partners/ibm/.venv/lib/python3.11/site-packages/mypy/typeshed/stdlib/__future__.pyi"}
1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/__future__.meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"data_mtime": 1713559169, "dep_lines": [1, 1, 1, 1], "dep_prios": [5, 5, 30, 30], "dependencies": ["typing_extensions", "builtins", "abc", "typing"], "hash": "a88c160e68dac375c28ae94a628281401fde2632f1c1e7ac50ac017699204245", "id": "__future__", "ignore_all": true, "interface_hash": "f20e22179f1adbfd2cb84b97bbc89e9918d2913f5bef6e5bbdfe6ddb6abcd1af", "mtime": 1707254153, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disable_bytearray_promotion": false, "disable_error_code": [], "disable_memoryview_promotion": false, "disabled_error_codes": [], "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "enable_error_code": [], "enabled_error_codes": [], "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_optional": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "platform": "darwin", "plugins": [], "strict_concatenate": false, "strict_equality": false, "strict_optional": true, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "/Users/erickfriis/langchain/oss-py/libs/partners/ibm/.venv/lib/python3.11/site-packages/mypy/typeshed/stdlib/__future__.pyi", "plugin_data": null, "size": 915, "suppressed": [], "version_id": "0.991"}
1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_ast.data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_ast.meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"data_mtime": 1713559168, "dep_lines": [1, 2, 3, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 5, 5, 5, 30, 30, 30, 30, 30, 30], "dependencies": ["sys", "typing", "typing_extensions", "builtins", "_typeshed", "abc", "array", "ctypes", "mmap", "pickle"], "hash": "7d9705c979c2f64d32880cd0b5fc3bf428d93ee2447acaffc7e15d7b20437b0d", "id": "_ast", "ignore_all": true, "interface_hash": "2d62fdb80a7b5cde124a86e5c26c3e1c95159c4d92727cfa4f9e84eff648b47f", "mtime": 1707254153, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disable_bytearray_promotion": false, "disable_error_code": [], "disable_memoryview_promotion": false, "disabled_error_codes": [], "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "enable_error_code": [], "enabled_error_codes": [], "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_optional": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "platform": "darwin", "plugins": [], "strict_concatenate": false, "strict_equality": false, "strict_optional": true, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "/Users/erickfriis/langchain/oss-py/libs/partners/ibm/.venv/lib/python3.11/site-packages/mypy/typeshed/stdlib/_ast.pyi", "plugin_data": null, "size": 14704, "suppressed": [], "version_id": "0.991"}
1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_bisect.data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_bisect.meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"data_mtime": 1713559169, "dep_lines": [3, 1, 2, 4, 1, 1], "dep_prios": [5, 10, 5, 5, 5, 30], "dependencies": ["collections.abc", "sys", "_typeshed", "typing", "builtins", "abc"], "hash": "d9aa32fb690ab36b8b9b285e1a485ef1d585eb4ec2df5c548ccb88f770ccf03a", "id": "_bisect", "ignore_all": true, "interface_hash": "57ac77c060a1c09d67a07f46017cd4f32277c2ba04107998d4fd89d45d927aed", "mtime": 1707254153, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disable_bytearray_promotion": false, "disable_error_code": [], "disable_memoryview_promotion": false, "disabled_error_codes": [], "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "enable_error_code": [], "enabled_error_codes": [], "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_optional": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "platform": "darwin", "plugins": [], "strict_concatenate": false, "strict_equality": false, "strict_optional": true, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "/Users/erickfriis/langchain/oss-py/libs/partners/ibm/.venv/lib/python3.11/site-packages/mypy/typeshed/stdlib/_bisect.pyi", "plugin_data": null, "size": 2510, "suppressed": [], "version_id": "0.991"}
1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_codecs.data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_codecs.meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"data_mtime": 1713559168, "dep_lines": [3, 1, 2, 4, 5, 1, 1, 1], "dep_prios": [5, 10, 10, 5, 5, 5, 30, 30], "dependencies": ["collections.abc", "codecs", "sys", "typing", "typing_extensions", "builtins", "_typeshed", "abc"], "hash": "00687f99dffa3891a4b8b08e83d14e6784289dbf4cf08a56f2f262dfb13bcb03", "id": "_codecs", "ignore_all": true, "interface_hash": "677e71685b859649c14903dfb488b413d31b0a93409ed44ea780715d94e7174d", "mtime": 1707254153, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disable_bytearray_promotion": false, "disable_error_code": [], "disable_memoryview_promotion": false, "disabled_error_codes": [], "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "enable_error_code": [], "enabled_error_codes": [], "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_optional": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "platform": "darwin", "plugins": [], "strict_concatenate": false, "strict_equality": false, "strict_optional": true, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "/Users/erickfriis/langchain/oss-py/libs/partners/ibm/.venv/lib/python3.11/site-packages/mypy/typeshed/stdlib/_codecs.pyi", "plugin_data": null, "size": 6825, "suppressed": [], "version_id": "0.991"}
1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_collections_abc.data.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions libs/ibm/.mypy_cache/3.11/_collections_abc.meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"data_mtime": 1713559168, "dep_lines": [1, 2, 3, 32, 1, 1], "dep_prios": [10, 5, 5, 5, 5, 30], "dependencies": ["sys", "types", "typing", "typing_extensions", "builtins", "abc"], "hash": "208f6a232e3d6af6fdabb5136f825af57e6e2d578a67081453f483b67f173fec", "id": "_collections_abc", "ignore_all": true, "interface_hash": "fb150a7b3f6b49b09c7d3e059d9b44bfaaf30a1dc7d8e9726db5ab9057ee5b7f", "mtime": 1707254153, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disable_bytearray_promotion": false, "disable_error_code": [], "disable_memoryview_promotion": false, "disabled_error_codes": [], "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": false, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "enable_error_code": [], "enabled_error_codes": [], "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": false, "implicit_optional": false, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "platform": "darwin", "plugins": [], "strict_concatenate": false, "strict_equality": false, "strict_optional": true, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": false}, "path": "/Users/erickfriis/langchain/oss-py/libs/partners/ibm/.venv/lib/python3.11/site-packages/mypy/typeshed/stdlib/_collections_abc.pyi", "plugin_data": null, "size": 2123, "suppressed": [], "version_id": "0.991"}
Loading

0 comments on commit ae22bb1

Please sign in to comment.