docs: remove unused annotation comments in readmes (#4656)

This commit is contained in:
Sydney Runkle
2025-05-12 07:45:22 -04:00
committed by GitHub
parent 0b5529108f
commit 347fbf1625
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -30,14 +30,14 @@ Then, create an agent [using prebuilt components](https://langchain-ai.github.io
from langgraph.prebuilt import create_react_agent
def get_weather(city: str) -> str: # (1)!
def get_weather(city: str) -> str:
"""Get weather for a given city."""
return f"It's always sunny in {city}!"
agent = create_react_agent(
model="anthropic:claude-3-7-sonnet-latest", # (2)!
tools=[get_weather], # (3)!
prompt="You are a helpful assistant" # (4)!
model="anthropic:claude-3-7-sonnet-latest",
tools=[get_weather],
prompt="You are a helpful assistant"
)
# Run the agent
+4 -4
View File
@@ -30,14 +30,14 @@ Then, create an agent [using prebuilt components](https://langchain-ai.github.io
from langgraph.prebuilt import create_react_agent
def get_weather(city: str) -> str: # (1)!
def get_weather(city: str) -> str:
"""Get weather for a given city."""
return f"It's always sunny in {city}!"
agent = create_react_agent(
model="anthropic:claude-3-7-sonnet-latest", # (2)!
tools=[get_weather], # (3)!
prompt="You are a helpful assistant" # (4)!
model="anthropic:claude-3-7-sonnet-latest",
tools=[get_weather],
prompt="You are a helpful assistant"
)
# Run the agent