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: README.md
+3-151Lines changed: 3 additions & 151 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,10 +36,6 @@ cp .env.example .env
36
36
37
37
The primary [search tool](./src/react_agent/tools.py)[^1] used is [Tavily](https://tavily.com/). Create an API key [here](https://app.tavily.com/sign-in).
38
38
39
-
<!--
40
-
Setup instruction auto-generated by `langgraph template lock`. DO NOT EDIT MANUALLY.
41
-
-->
42
-
43
39
### Setup Model
44
40
45
41
The defaults values for `model` are shown below:
@@ -70,23 +66,14 @@ To use OpenAI's chat models:
70
66
OPENAI_API_KEY=your-api-key
71
67
```
72
68
73
-
74
-
75
-
76
-
77
-
<!--
78
-
End setup instructions
79
-
-->
80
-
81
-
82
69
3. Customize whatever you'd like in the code.
83
70
4. Open the folder LangGraph Studio!
84
71
85
72
## How to customize
86
73
87
74
1. **Add new tools**: Extend the agent's capabilities by adding new tools in [tools.py](./src/react_agent/tools.py). These can be any Python functions that perform specific tasks.
88
-
2. **Select a different model**: We default to Anthropic's Claude 3 Sonnet. You can select a compatible chat model using `provider/model-name` via configuration. Example: `openai/gpt-4-turbo-preview`.
89
-
3. **Customize the prompt**: We provide a default system prompt in [prompts.py](./src/react_agent/prompts.py). You can easily update this via configuration in the studio.
75
+
2. **Select a different model**: We default to Anthropic's Claude 3 Sonnet. You can select a compatible chat model using `provider/model-name` via runtime context. Example: `openai/gpt-4-turbo-preview`.
76
+
3. **Customize the prompt**: We provide a default system prompt in [prompts.py](./src/react_agent/prompts.py). You can easily update this via context in the studio.
90
77
91
78
You can also quickly extend this template by:
92
79
@@ -95,7 +82,7 @@ You can also quickly extend this template by:
95
82
96
83
## Development
97
84
98
-
While iterating on your graph, you can edit past state and rerun your app from past states to debug specific nodes. Local changes will be automatically applied via hot reload. Try adding an interrupt before the agent calls tools, updating the default system message in `src/react_agent/configuration.py` to take on a persona, or adding additional nodes and edges!
85
+
While iterating on your graph, you can edit past state and rerun your app from past states to debug specific nodes. Local changes will be automatically applied via hot reload. Try adding an interrupt before the agent calls tools, updating the default system message in `src/react_agent/context.py` to take on a persona, or adding additional nodes and edges!
99
86
100
87
Follow up requests will be appended to the same thread. You can create an entirely new thread, clearing previous history, using the `+` button in the top right.
101
88
@@ -104,138 +91,3 @@ You can find the latest (under construction) docs on [LangGraph](https://github.
104
91
LangGraph Studio also integrates with [LangSmith](https://smith.langchain.com/) for more in-depth tracing and collaboration with teammates.
0 commit comments