mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-26 11:35:02 +02:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
938d812089 | ||
|
|
95a2edc331 | ||
|
|
0ed8d2007f | ||
|
|
aa9f562828 | ||
|
|
8aa8ffcef5 |
@@ -54,6 +54,7 @@
|
|||||||
" if not os.environ.get(var):\n",
|
" if not os.environ.get(var):\n",
|
||||||
" os.environ[var] = getpass.getpass(f\"Please provide your {var}\")\n",
|
" os.environ[var] = getpass.getpass(f\"Please provide your {var}\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"\n",
|
||||||
"_set_if_undefined(\"OPENAI_API_KEY\")\n",
|
"_set_if_undefined(\"OPENAI_API_KEY\")\n",
|
||||||
"_set_if_undefined(\"TAVILY_API_KEY\")"
|
"_set_if_undefined(\"TAVILY_API_KEY\")"
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ from collections.abc import Sequence
|
|||||||
from typing import Annotated, Literal, TypedDict
|
from typing import Annotated, Literal, TypedDict
|
||||||
|
|
||||||
from langchain_anthropic import ChatAnthropic
|
from langchain_anthropic import ChatAnthropic
|
||||||
from langchain_community.tools.tavily_search import TavilySearchResults
|
|
||||||
from langchain_core.messages import BaseMessage
|
from langchain_core.messages import BaseMessage
|
||||||
from langchain_openai import ChatOpenAI
|
from langchain_openai import ChatOpenAI
|
||||||
|
from langchain_tavily import TavilySearchResults
|
||||||
from langgraph.graph import END, StateGraph, add_messages
|
from langgraph.graph import END, StateGraph, add_messages
|
||||||
from langgraph.prebuilt import ToolNode
|
from langgraph.prebuilt import ToolNode
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"python_version": "3.12",
|
"python_version": "3.12",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"langchain_community",
|
"langchain_community",
|
||||||
|
"langchain_tavily; python_version < '4.0'",
|
||||||
"langchain_anthropic",
|
"langchain_anthropic",
|
||||||
"langchain_openai",
|
"langchain_openai",
|
||||||
"wikipedia",
|
"wikipedia",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import json
|
|||||||
from typing import Annotated, Optional
|
from typing import Annotated, Optional
|
||||||
|
|
||||||
from langchain_community.retrievers import WikipediaRetriever
|
from langchain_community.retrievers import WikipediaRetriever
|
||||||
from langchain_community.tools.tavily_search import TavilySearchResults
|
|
||||||
from langchain_community.vectorstores import SKLearnVectorStore
|
from langchain_community.vectorstores import SKLearnVectorStore
|
||||||
from langchain_core.documents import Document
|
from langchain_core.documents import Document
|
||||||
from langchain_core.messages import (
|
from langchain_core.messages import (
|
||||||
@@ -18,6 +17,7 @@ from langchain_core.runnables import RunnableConfig, RunnableLambda
|
|||||||
from langchain_core.runnables import chain as as_runnable
|
from langchain_core.runnables import chain as as_runnable
|
||||||
from langchain_core.tools import tool
|
from langchain_core.tools import tool
|
||||||
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
|
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
|
||||||
|
from langchain_tavily import TavilySearchResults
|
||||||
from langgraph.graph import END, StateGraph
|
from langgraph.graph import END, StateGraph
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
from typing_extensions import TypedDict
|
from typing_extensions import TypedDict
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ from pathlib import Path
|
|||||||
from typing import Annotated, TypedDict
|
from typing import Annotated, TypedDict
|
||||||
|
|
||||||
from langchain_anthropic import ChatAnthropic
|
from langchain_anthropic import ChatAnthropic
|
||||||
from langchain_community.tools.tavily_search import TavilySearchResults
|
|
||||||
from langchain_core.messages import BaseMessage
|
from langchain_core.messages import BaseMessage
|
||||||
from langchain_openai import ChatOpenAI
|
from langchain_openai import ChatOpenAI
|
||||||
|
from langchain_tavily import TavilySearchResults
|
||||||
from langgraph.graph import END, StateGraph, add_messages
|
from langgraph.graph import END, StateGraph, add_messages
|
||||||
from langgraph.prebuilt import ToolNode
|
from langgraph.prebuilt import ToolNode
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ from pathlib import Path
|
|||||||
from typing import Annotated, TypedDict
|
from typing import Annotated, TypedDict
|
||||||
|
|
||||||
from langchain_anthropic import ChatAnthropic
|
from langchain_anthropic import ChatAnthropic
|
||||||
from langchain_community.tools.tavily_search import TavilySearchResults
|
|
||||||
from langchain_core.messages import BaseMessage
|
from langchain_core.messages import BaseMessage
|
||||||
from langchain_openai import ChatOpenAI
|
from langchain_openai import ChatOpenAI
|
||||||
|
from langchain_tavily import TavilySearchResults
|
||||||
from langgraph.graph import END, StateGraph, add_messages
|
from langgraph.graph import END, StateGraph, add_messages
|
||||||
from langgraph.prebuilt import ToolNode
|
from langgraph.prebuilt import ToolNode
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
"pip_config_file": "./pipconf.txt",
|
"pip_config_file": "./pipconf.txt",
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"langchain_community",
|
"langchain_community",
|
||||||
|
"langchain_tavily; python_version < '4.0'",
|
||||||
"langchain_anthropic",
|
"langchain_anthropic",
|
||||||
"langchain_openai",
|
"langchain_openai",
|
||||||
"wikipedia",
|
"wikipedia",
|
||||||
|
|||||||
Reference in New Issue
Block a user