From b67c3d1eddcda019a886668643960883d266768e Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Thu, 11 Jul 2024 15:16:58 -0700 Subject: [PATCH] Sync readmes --- README.md | 2 -- libs/langgraph/README.md | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 1dcd82a5d..bc293e031 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,6 @@ export LANGSMITH_API_KEY=lsv2_sk_... ``` ```python -from typing import Annotated, Literal, TypedDict - from langchain_core.messages import HumanMessage from langchain_anthropic import ChatAnthropic from langchain_core.tools import tool diff --git a/libs/langgraph/README.md b/libs/langgraph/README.md index 46e014b7c..bc293e031 100644 --- a/libs/langgraph/README.md +++ b/libs/langgraph/README.md @@ -57,8 +57,6 @@ export LANGSMITH_API_KEY=lsv2_sk_... ``` ```python -from typing import Annotated, Literal, TypedDict - from langchain_core.messages import HumanMessage from langchain_anthropic import ChatAnthropic from langchain_core.tools import tool @@ -84,7 +82,7 @@ tool_node = ToolNode(tools) model = ChatAnthropic(model="claude-3-5-sonnet-20240620", temperature=0).bind_tools(tools) # Define the function that determines whether to continue or not -def should_continue(state: MessagesState) -> Literal["tools", END]: +def should_continue(state: MessagesState): messages = state['messages'] last_message = messages[-1] # If the LLM makes a tool call, then we route to the "tools" node