You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/oss/contributing/comarketing.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Co-marketing
3
3
---
4
4
5
-
With over 20 million monthly downloads, LangChain has a large audience of developers building LLM applications. Beyond just listing integrations, we aim to highlight high-quality, educational examples that inspire developers and advance the ecosystem.
5
+
With over 60 million monthly downloads, LangChain has a large audience of developers building LLM applications. Beyond just listing integrations, we aim to highlight high-quality, educational examples that inspire developers and advance the ecosystem.
6
6
7
7
<Note>
8
8
While we occasionally share integrations, we prioritize content that provides
Copy file name to clipboardExpand all lines: src/oss/langchain/agents.mdx
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,15 +9,14 @@ import AlphaCallout from '/snippets/alpha-lc-callout.mdx';
9
9
Agents combine language models with tools to create systems that can reason about tasks, decide which tools to use, and iteratively work towards solutions.
10
10
11
11
:::python
12
-
`create_agent()` provides a production-ready ReAct (Reasoning + Acting) agent implementation based on the paper [ReAct: Synergizing Reasoning and Acting in Language Models](https://arxiv.org/abs/2210.03629).
12
+
`create_agent()` provides a production-ready agent implementation.
13
13
:::
14
14
:::js
15
-
`createAgent()` provides a production-ready ReAct (Reasoning + Acting) agent implementation based on the paper [ReAct: Synergizing Reasoning and Acting in Language Models](https://arxiv.org/abs/2210.03629).
15
+
`createAgent()` provides a production-ready agent implementation.
16
16
:::
17
17
18
-
ReAct frames an agent's behavior as an interleaving of `thought` -> `action` -> `observation` steps, where the model writes out its reasoning, picks a tool, sees the tool's result, and then repeats. ReAct reduces hallucinations and makes the decision process auditable: the agent can form hypotheses (`thought`), test them with tools (`action`), and update its plan based on feedback (`observation`).
19
-
20
-
A ReAct loop runs until a stop condition - i.e., when the model emits a final answer or an iteration limit is reached.
18
+
[An LLM Agent runs tools in a loop to achieve a goal](https://simonwillison.net/2025/Sep/18/agents/).
19
+
An agent runs until a stop condition is met - i.e., when the model emits a final output or an iteration limit is reached.
21
20
22
21
```mermaid
23
22
%%{
@@ -31,10 +30,10 @@ A ReAct loop runs until a stop condition - i.e., when the model emits a final an
31
30
}%%
32
31
graph TD
33
32
%% Outside the agent
34
-
QUERY([query])
35
-
LLM{thought}
33
+
QUERY([input])
34
+
LLM{model}
36
35
TOOL(tools)
37
-
ANSWER([answer])
36
+
ANSWER([output])
38
37
39
38
%% Main flows (no inline labels)
40
39
QUERY --> LLM
@@ -51,10 +50,10 @@ graph TD
51
50
<Info>
52
51
53
52
:::python
54
-
`create_agent()` builds a **graph**-based agent runtime using [LangGraph](/oss/langgraph/overview). A graph consists of nodes (steps) and edges (connections) that define how your agent processes information. The agent moves through this graph, executing nodes like the model node (which calls the model), the tools node (which executes tools), or pre/post model hook nodes.
53
+
`create_agent()` builds a **graph**-based agent runtime using [LangGraph](/oss/langgraph/overview). A graph consists of nodes (steps) and edges (connections) that define how your agent processes information. The agent moves through this graph, executing nodes like the model node (which calls the model), the tools node (which executes tools), or middleware.
55
54
:::
56
55
:::js
57
-
`createAgent()` builds a **graph**-based agent runtime using [LangGraph](/oss/langgraph/overview). A graph consists of nodes (steps) and edges (connections) that define how your agent processes information. The agent moves through this graph, executing nodes like the model node (which calls the model), the tools node (which executes tools), or pre/post model hook nodes.
56
+
`createAgent()` builds a **graph**-based agent runtime using [LangGraph](/oss/langgraph/overview). A graph consists of nodes (steps) and edges (connections) that define how your agent processes information. The agent moves through this graph, executing nodes like the model node (which calls the model), the tools node (which executes tools), or middleware.
58
57
:::
59
58
60
59
Learn more about the [graph API](/oss/langgraph/graph-api).
Copy file name to clipboardExpand all lines: src/oss/langchain/philosophy.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ With LangChain, we have two core focuses:
24
24
Standardizing these model inputs and outputs is a core focus, making it easy for developer to easily change to the most recent state-of-the-art model, avoiding lock-in.
25
25
</Step>
26
26
<Steptitle="We want to make it easy to use models to orchestrate more complex flows that interact with other data and computation.">
27
-
Models should be used for more than just *calling* - they should also be used to orchestrate more complex flows that interact with other data. LangChain makes it easy to define [tools](/oss/langchain/tools) that LLMs can use dynamically, as well as help with parsing of and access to unstructured data.
27
+
Models should be used for more than just *text generation* - they should also be used to orchestrate more complex flows that interact with other data. LangChain makes it easy to define [tools](/oss/langchain/tools) that LLMs can use dynamically, as well as help with parsing of and access to unstructured data.
Copy file name to clipboardExpand all lines: src/oss/langchain/structured-output.mdx
+12-14Lines changed: 12 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ import AlphaCallout from '/snippets/alpha-lc-callout.mdx';
10
10
11
11
Structured output allows agents to return data in a specific, predictable format. Instead of parsing natural language responses, you get structured data in the form of JSON objects, Pydantic models, or dataclasses that your application can directly use.
12
12
13
-
LangChain's prebuilt ReAct agent `create_agent()` handles structured output automatically. The user sets their desired structured output schema, and when the model generates the structured data, it's captured, validated, and returned in the `'structured_response'` key of the agent's state.
13
+
LangChain's `create_agent()` handles structured output automatically. The user sets their desired structured output schema, and when the model generates the structured data, it's captured, validated, and returned in the `'structured_response'` key of the agent's state.
14
14
15
15
```python
16
16
defcreate_agent(
@@ -22,20 +22,19 @@ def create_agent(
22
22
]
23
23
```
24
24
25
-
<ParamField path="response_format">
26
-
Controls how the agent returns structured data:
25
+
## Response Format
26
+
Controls how the agent returns structured data:
27
27
28
-
-**`ToolStrategy[StructuredResponseT]`**: `Uses tool calling for structured output
The structured response is returned in the `structured_response` key of the agent's final state.
38
-
</ParamField>
37
+
The structured response is returned in the `structured_response` key of the agent's final state.
39
38
:::
40
39
:::js
41
40
Structured output allows agents to return data in a specific, predictable format. Instead of parsing natural language responses, you get typed structured data.
@@ -54,7 +53,7 @@ const agent = createAgent({
54
53
})
55
54
```
56
55
57
-
<ParamField path="responseFormat">
56
+
## Response Format
58
57
Controls how the agent returns structured data. You can provide either a Zod objectorJSON schema. By default, the agent uses a tool calling strategy, in which the output is created by an additional tool call. Certain models support native structured output, in which case the agent will use that strategy instead.
59
58
60
59
You can control the behavior by wrapping `ResponseFormat` in a `toolStrategy` or `providerStrategy` function call:
@@ -71,7 +70,6 @@ const agent = createAgent({
71
70
```
72
71
73
72
The structured response is returned in the `structuredResponse` key of the agent's final state.
Copy file name to clipboardExpand all lines: src/oss/langchain/supervisor.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ We will need to select a chat model from LangChain's suite of integrations:
68
68
69
69
<ChatModelTabsPy />
70
70
71
-
## 1. Define low-level API tools
71
+
## 1. Define tools
72
72
73
73
Start by defining the tools that require structured inputs. In real applications, these would call actual APIs (Google Calendar, SendGrid, etc.). For this tutorial, you'll use stubs to demonstrate the pattern.
0 commit comments