Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


from langchain_core import prompts
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump
from langchain.agents.format_scratchpad import format_to_openai_function_messages
from langchain.tools.base import StructuredTool

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import pytest

from langchain_core import runnables
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump
from langchain.tools.base import StructuredTool


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@


from langchain_core import prompts
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump
from langchain.agents.format_scratchpad import format_to_openai_function_messages
from langchain.tools.base import StructuredTool

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import pytest

from langchain_core import runnables
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump
from langchain.tools.base import StructuredTool


Expand Down
4 changes: 2 additions & 2 deletions vertexai/agent_engines/templates/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ def query(
Returns:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down Expand Up @@ -662,7 +662,7 @@ def stream_query(
Yields:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down
4 changes: 2 additions & 2 deletions vertexai/agent_engines/templates/langgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def query(
Returns:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down Expand Up @@ -587,7 +587,7 @@ def stream_query(
Yields:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down
4 changes: 2 additions & 2 deletions vertexai/preview/reasoning_engines/templates/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ def query(
Returns:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down Expand Up @@ -636,7 +636,7 @@ def stream_query(
Yields:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down
4 changes: 2 additions & 2 deletions vertexai/preview/reasoning_engines/templates/langgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def query(
Returns:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down Expand Up @@ -572,7 +572,7 @@ def stream_query(
Yields:
The output of querying the Agent with the given input and config.
"""
from langchain.load import dump as langchain_load_dump
from langchain_core.load import dump as langchain_load_dump

if isinstance(input, str):
input = {"input": input}
Expand Down