diff --git a/docs/docs/troubleshooting/errors/INVALID_CHAT_HISTORY.md b/docs/docs/troubleshooting/errors/INVALID_CHAT_HISTORY.md index 121152ba0..7582dd515 100644 --- a/docs/docs/troubleshooting/errors/INVALID_CHAT_HISTORY.md +++ b/docs/docs/troubleshooting/errors/INVALID_CHAT_HISTORY.md @@ -6,7 +6,7 @@ There could be a few reasons you're seeing this error: 1. You manually passed a malformed list of messages when invoking the graph, e.g. `graph.invoke({'messages': [AIMessage(..., tool_calls=[...])]})` 2. The graph was interrupted before receiving updates from the `tools` node (i.e. a list of ToolMessages) -and you invoked it with a an input that is not None or a ToolMessage, +and you invoked it with an input that is not None or a ToolMessage, e.g. `graph.invoke({'messages': [HumanMessage(...)]}, config)`. This interrupt could have been triggered in one of the following ways: - You manually set `interrupt_before = ['tools']` in `create_react_agent` diff --git a/docs/docs/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE.md b/docs/docs/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE.md index d318c1a6f..41d4fb4a7 100644 --- a/docs/docs/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE.md +++ b/docs/docs/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE.md @@ -8,7 +8,7 @@ class State(TypedDict): some_key: str def bad_node(state: State): - # Should return an dict with a value for "some_key", not a list + # Should return a dict with a value for "some_key", not a list return ["whoops"] builder = StateGraph(State) @@ -29,7 +29,7 @@ InvalidUpdateError: Expected dict, got ['whoops'] For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_GRAPH_NODE_RETURN_VALUE ``` -Nodes in your graph must return an dict containing one or more keys defined in your state. +Nodes in your graph must return a dict containing one or more keys defined in your state. ## Troubleshooting diff --git a/docs/docs/tutorials/auth/add_auth_server.md b/docs/docs/tutorials/auth/add_auth_server.md index 4cb977130..3ab37bd6b 100644 --- a/docs/docs/tutorials/auth/add_auth_server.md +++ b/docs/docs/tutorials/auth/add_auth_server.md @@ -1,6 +1,6 @@ # Connect an authentication provider -In the [the last tutorial](resource_auth.md), you added [resource authorization](../../tutorials/auth/resource_auth.md) to give users private conversations. However, you are still using hard-coded tokens for authentication, which is not secure. Now you'll replace those tokens with real user accounts using [OAuth2](../auth/getting_started.md). +In [the last tutorial](resource_auth.md), you added [resource authorization](../../tutorials/auth/resource_auth.md) to give users private conversations. However, you are still using hard-coded tokens for authentication, which is not secure. Now you'll replace those tokens with real user accounts using [OAuth2](../auth/getting_started.md). You'll keep the same [`Auth`](../../cloud/reference/sdk/python_sdk_ref.md#langgraph_sdk.auth.Auth) object and [resource-level access control](../../concepts/auth.md#single-owner-resources), but upgrade authentication to use Supabase as your identity provider. While Supabase is used in this tutorial, the concepts apply to any OAuth2 provider. You'll learn how to: @@ -190,7 +190,7 @@ await sign_up(email1, password) await sign_up(email2, password) ``` -⚠️ Before continuing: Check your email and click both confirmation links. Supabase will will reject `/login` requests until after you have confirmed your users' email. +⚠️ Before continuing: Check your email and click both confirmation links. Supabase will reject `/login` requests until after you have confirmed your users' email. Now test that users can only see their own data. Make sure the server is running (run `langgraph dev`) before proceeding. The following snippet requires the "anon public" key that you copied from the Supabase dashboard while [setting up the auth provider](#setup-auth-provider) previously. diff --git a/docs/docs/tutorials/auth/getting_started.md b/docs/docs/tutorials/auth/getting_started.md index 3a4e12e47..b9b2340e0 100644 --- a/docs/docs/tutorials/auth/getting_started.md +++ b/docs/docs/tutorials/auth/getting_started.md @@ -181,6 +181,6 @@ Congratulations! You've built a chatbot that only lets "authenticated" users acc Now that you can control who accesses your bot, you might want to: -1. Continue the tutorial by going to [Make cnversations private](resource_auth.md) to learn about resource authorization. +1. Continue the tutorial by going to [Make conversations private](resource_auth.md) to learn about resource authorization. 2. Read more about [authentication concepts](../../concepts/auth.md). 3. Check out the [API reference](../../cloud/reference/sdk/python_sdk_ref.md) for more authentication details. \ No newline at end of file