The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix(docs): Fix several typos and grammar (#33487)
Chenyang Li6e25e185f661
diff --git a/libs/core/README.md b/libs/core/README.mdindex 9aacc631c3..ec8fb1850f 100644--- a/libs/core/README.md+++ b/libs/core/README.md@@ -11,7 +11,7 @@ pip install langchain-core## What is it?-LangChain Core contains the base abstractions that power the the LangChain ecosystem.+LangChain Core contains the base abstractions that power the LangChain ecosystem.These abstractions are designed to be as modular and simple as possible.diff --git a/libs/langchain/langchain_classic/chains/openai_functions/extraction.py b/libs/langchain/langchain_classic/chains/openai_functions/extraction.pyindex 8d1dd05ce6..44f00f196e 100644--- a/libs/langchain/langchain_classic/chains/openai_functions/extraction.py+++ b/libs/langchain/langchain_classic/chains/openai_functions/extraction.py@@ -69,7 +69,7 @@ Passage:punchline: str = Field(description="The punchline to the joke")# Or any other chat model that supports tools.- # Please reference to to the documentation of structured_output+ # Please reference to the documentation of structured_output# to see an up to date list of which models support# with_structured_output.model = ChatAnthropic(model="claude-3-opus-20240229", temperature=0)@@ -139,7 +139,7 @@ def create_extraction_chain(punchline: str = Field(description="The punchline to the joke")# Or any other chat model that supports tools.- # Please reference to to the documentation of structured_output+ # Please reference to the documentation of structured_output# to see an up to date list of which models support# with_structured_output.model = ChatAnthropic(model="claude-3-opus-20240229", temperature=0)diff --git a/libs/langchain/langchain_classic/chains/openai_functions/tagging.py b/libs/langchain/langchain_classic/chains/openai_functions/tagging.pyindex 2f70394b0e..06b286d738 100644--- a/libs/langchain/langchain_classic/chains/openai_functions/tagging.py+++ b/libs/langchain/langchain_classic/chains/openai_functions/tagging.py@@ -73,7 +73,7 @@ def create_tagging_chain(punchline: Annotated[str, ..., "The punchline of the joke"]# Or any other chat model that supports tools.- # Please reference to to the documentation of structured_output+ # Please reference to the documentation of structured_output# to see an up to date list of which models support# with_structured_output.model = ChatAnthropic(model="claude-3-haiku-20240307", temperature=0)@@ -149,7 +149,7 @@ def create_tagging_chain_pydantic(# Or any other chat model that supports tools.- # Please reference to to the documentation of structured_output+ # Please reference to the documentation of structured_output# to see an up to date list of which models support# with_structured_output.model = ChatAnthropic(model="claude-3-opus-20240229", temperature=0)diff --git a/libs/langchain/langchain_classic/chains/openai_tools/extraction.py b/libs/langchain/langchain_classic/chains/openai_tools/extraction.pyindex 716d94cbde..d9cc0870dc 100644--- a/libs/langchain/langchain_classic/chains/openai_tools/extraction.py+++ b/libs/langchain/langchain_classic/chains/openai_tools/extraction.py@@ -40,7 +40,7 @@ If a property is not present and is not required in the function parameters, dopunchline: str = Field(description="The punchline to the joke")# Or any other chat model that supports tools.- # Please reference to to the documentation of structured_output+ # Please reference to the documentation of structured_output# to see an up to date list of which models support# with_structured_output.model = ChatAnthropic(model="claude-3-opus-20240229", temperature=0)diff --git a/libs/langchain/langchain_classic/chains/structured_output/base.py b/libs/langchain/langchain_classic/chains/structured_output/base.pyindex e7e18f51ef..4b72a631ca 100644--- a/libs/langchain/langchain_classic/chains/structured_output/base.py+++ b/libs/langchain/langchain_classic/chains/structured_output/base.py@@ -53,7 +53,7 @@ from pydantic import BaseModelpunchline: str = Field(description="The punchline to the joke")# Or any other chat model that supports tools.- # Please reference to to the documentation of structured_output+ # Please reference to the documentation of structured_output# to see an up to date list of which models support# with_structured_output.model = ChatAnthropic(model="claude-3-opus-20240229", temperature=0)@@ -172,7 +172,7 @@ def create_openai_fn_runnable(punchline: str = Field(description="The punchline to the joke")# Or any other chat model that supports tools.- # Please reference to to the documentation of structured_output+ # Please reference to the documentation of structured_output# to see an up to date list of which models support# with_structured_output.model = ChatAnthropic(model="claude-3-opus-20240229", temperature=0)diff --git a/libs/partners/groq/tests/integration_tests/test_chat_models.py b/libs/partners/groq/tests/integration_tests/test_chat_models.pyindex c46184afb4..bd43972b1f 100644--- a/libs/partners/groq/tests/integration_tests/test_chat_models.py+++ b/libs/partners/groq/tests/integration_tests/test_chat_models.py@@ -386,7 +386,7 @@ def test_streaming_generation_info() -> None:)list(chat.stream("Respond with the single word Hello", stop=["o"]))generation = callback.saved_things["generation"]- # `Hello!` is two tokens, assert that that is what is returned+ # `Hello!` is two tokens, assert that is what is returnedassert isinstance(generation, LLMResult)assert generation.generations[0][0].text == "Hell"diff --git a/libs/partners/openai/tests/integration_tests/chat_models/test_azure.py b/libs/partners/openai/tests/integration_tests/chat_models/test_azure.pyindex da245c1c02..e34cf1d207 100644--- a/libs/partners/openai/tests/integration_tests/chat_models/test_azure.py+++ b/libs/partners/openai/tests/integration_tests/chat_models/test_azure.py@@ -116,7 +116,7 @@ def test_chat_openai_streaming_generation_info() -> None:chat = _get_llm(max_tokens=2, temperature=0, callbacks=callback_manager)list(chat.stream("hi"))generation = callback.saved_things["generation"]- # `Hello!` is two tokens, assert that that is what is returned+ # `Hello!` is two tokens, assert that is what is returnedassert generation.generations[0][0].text == "Hello!"diff --git a/libs/partners/openai/tests/integration_tests/chat_models/test_base.py b/libs/partners/openai/tests/integration_tests/chat_models/test_base.pyindex 3aad2f0988..edfeae36e3 100644--- a/libs/partners/openai/tests/integration_tests/chat_models/test_base.py+++ b/libs/partners/openai/tests/integration_tests/chat_models/test_base.py@@ -141,7 +141,7 @@ def test_chat_openai_streaming_generation_info() -> None:chat = ChatOpenAI(max_tokens=2, temperature=0, callbacks=callback_manager) # type: ignore[call-arg]list(chat.stream("hi"))generation = callback.saved_things["generation"]- # `Hello!` is two tokens, assert that that is what is returned+ # `Hello!` is two tokens, assert that is what is returnedassert generation.generations[0][0].text == "Hello!"