Skip to content

Commit 0752a29

Browse files
yeesiancopybara-github
authored andcommitted
feat: Initial template for Langchain on Vertex.
PiperOrigin-RevId: 622468677
1 parent 765d60d commit 0752a29

File tree

4 files changed

+430
-10
lines changed

4 files changed

+430
-10
lines changed

setup.py

+7
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,12 @@
150150
"pandas >= 1.0.0, < 2.2.0",
151151
]
152152

153+
langchain_extra_require = [
154+
"langchain >= 0.1.13, < 0.2",
155+
"langchain-core < 0.2",
156+
"langchain-google-vertexai < 0.2",
157+
]
158+
153159
full_extra_require = list(
154160
set(
155161
tensorboard_extra_require
@@ -253,6 +259,7 @@
253259
"ray_testing": ray_testing_extra_require,
254260
"reasoningengine": reasoning_engine_extra_require,
255261
"rapid_evaluation": rapid_evaluation_extra_require,
262+
"langchain": langchain_extra_require,
256263
},
257264
python_requires=">=3.8",
258265
classifiers=[

vertexai/preview/reasoning_engines.py vertexai/preview/reasoning_engines/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@
2020
Queryable,
2121
ReasoningEngine,
2222
)
23+
from vertexai.preview.reasoning_engines.templates.langchain import (
24+
LangchainAgent
25+
)
2326

2427
__all__ = (
28+
"LangchainAgent",
2529
"Queryable",
2630
"ReasoningEngine",
2731
)

0 commit comments

Comments
 (0)