Skip to content

Commit

Permalink
moved imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lkuligin committed Dec 18, 2023
1 parent cdc32f4 commit 45f2fd5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import TYPE_CHECKING

from langchain.agents import Tool
from langchain_core.tools import Tool

from langchain_community.utils.openai_functions import (
FunctionDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
from unittest.mock import MagicMock, Mock, patch

import pytest
from langchain.agents import AgentExecutor, Tool
from langchain.agents.format_scratchpad import format_to_openai_function_messages
from langchain.agents.output_parsers import VertexAIFunctionsAgentOutputParser
from langchain.chains import LLMMathChain
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder
from langchain_core.messages import (
AIMessage,
AIMessageChunk,
Expand Down Expand Up @@ -302,6 +297,12 @@ def test_parse_examples_failes_wrong_sequence() -> None:


def test_tools() -> None:
from langchain.agents import AgentExecutor, Tool
from langchain.agents.format_scratchpad import format_to_openai_function_messages
from langchain.agents.output_parsers import VertexAIFunctionsAgentOutputParser
from langchain.chains import LLMMathChain
from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder

llm = ChatVertexAI(model_name="gemini-pro")
math_chain = LLMMathChain.from_llm(llm=llm)
raw_tools = [
Expand Down

0 comments on commit 45f2fd5

Please sign in to comment.