Skip to content

Commit d8add20

Browse files
committed
lint
1 parent 1fd01df commit d8add20

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

examples/customer_support/src/agent/customer_support.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"outputs": [],
1919
"source": [
2020
"import os\n",
21-
"import getpass\n",
2221
"\n",
2322
"os.environ[\"ANTHROPIC_API_KEY\"] = \"\"\n",
2423
"os.environ[\"OPENAI_API_KEY\"] = \"\"\n",
@@ -55,12 +54,11 @@
5554
"metadata": {},
5655
"outputs": [],
5756
"source": [
58-
"from collections import defaultdict\n",
5957
"import datetime\n",
58+
"from collections import defaultdict\n",
6059
"from typing import Callable\n",
6160
"\n",
6261
"from langchain_core.runnables import RunnableConfig\n",
63-
"from langchain_core.tools import tool\n",
6462
"from langgraph.checkpoint.memory import MemorySaver\n",
6563
"from langgraph.prebuilt import create_react_agent\n",
6664
"from langgraph_swarm import create_handoff_tool, create_swarm\n",
@@ -196,7 +194,7 @@
196194
"metadata": {},
197195
"outputs": [],
198196
"source": [
199-
"from IPython.display import display, Image"
197+
"from IPython.display import Image, display"
200198
]
201199
},
202200
{

examples/customer_support/src/agent/customer_support.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from langchain_core.runnables import RunnableConfig
66
from langchain_openai import ChatOpenAI
77
from langgraph.prebuilt import create_react_agent
8-
98
from langgraph_swarm import create_handoff_tool, create_swarm
109

1110
model = ChatOpenAI(model="gpt-4o")

examples/research/src/agent/agent.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,10 +2025,10 @@
20252025
"metadata": {},
20262026
"outputs": [],
20272027
"source": [
2028-
"from typing_extensions import TypedDict\n",
2029-
"from langchain_core.messages import HumanMessage, AIMessage\n",
2028+
"from langchain_core.messages import HumanMessage\n",
20302029
"from langchain_openai import ChatOpenAI\n",
2031-
"from langgraph.graph import StateGraph, START, END\n",
2030+
"from langgraph.graph import END, START, StateGraph\n",
2031+
"from typing_extensions import TypedDict\n",
20322032
"\n",
20332033
"\n",
20342034
"# Define state schema for our joke generator\n",

examples/research/src/agent/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import os
2-
from pydantic import BaseModel, Field
3-
from typing import Any, Optional, Literal
2+
from typing import Any, Optional
43

54
from langchain_core.runnables import RunnableConfig
5+
from pydantic import BaseModel, Field
66

77

88
class Configuration(BaseModel):

examples/research/src/agent/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ def print_stream(stream):
3838

3939
def fetch_doc(url: str) -> str:
4040
"""Fetch a document from a URL and return the markdownified text.
41+
4142
Args:
4243
url (str): The URL of the document to fetch.
44+
4345
Returns:
4446
str: The markdownified text of the document.
4547
"""
46-
4748
try:
4849
response = httpx_client.get(url, timeout=10)
4950
response.raise_for_status()

0 commit comments

Comments
 (0)