diff --git a/README.md b/README.md index 4425ca270..f818e1bf8 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/libs/langgraph/README.md b/libs/langgraph/README.md index 4425ca270..f818e1bf8 100644 --- a/libs/langgraph/README.md +++ b/libs/langgraph/README.md @@ -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