Skip to content

Commit 1258f2c

Browse files
committed
support LangGraph Studio
1 parent b58b898 commit 1258f2c

File tree

7 files changed

+371
-0
lines changed

7 files changed

+371
-0
lines changed

.env.template

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ AZURE_OPENAI_API_VERSION="2024-10-21"
88
AZURE_OPENAI_MODEL_CHAT="gpt-4o"
99
AZURE_OPENAI_MODEL_EMBEDDING="text-embedding-3-small"
1010

11+
# LangSmith Settings
12+
LANGSMITH_API_KEY="YOUR_LANGSMITH_API_KEY"
13+
1114
# CSV Loader Settings
1215
CSV_LOADER_DATA_DIR_PATH="./data"
1316

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,4 @@ cython_debug/
163163
*.env
164164
requirements.txt
165165
assets/
166+
.langgraph_api

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,11 @@ docs-serve: ## serve documentation
107107

108108
.PHONY: ci-test-docs
109109
ci-test-docs: install-deps-docs docs ## run CI test for documentation
110+
111+
# ---
112+
# Project
113+
# ---
114+
115+
.PHONY: langgraph-studio
116+
langgraph-studio: ## run LangGraph Studio
117+
uv run langgraph dev --no-reload

langgraph.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"dependencies": [
3+
"."
4+
],
5+
"graphs": {
6+
"basic_workflow_agent": "template_langgraph.agents.basic_workflow_agent.agent:graph"
7+
},
8+
"env": ".env"
9+
}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ docs = [
2727
dev-dependencies = [
2828
"coverage>=7.8.0",
2929
"jupyterlab>=4.4.2",
30+
"langgraph-cli[inmem]>=0.3.6",
3031
"pre-commit>=4.2.0",
3132
"pytest>=8.3.5",
3233
"pytest-cov>=6.1.1",

template_langgraph/agents/basic_workflow_agent/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,6 @@ def run_agent(self, input: AgentInput) -> AgentOutput:
9494
def draw_mermaid_png(self) -> bytes:
9595
"""Draw the graph in Mermaid format."""
9696
return self.create_graph().get_graph().draw_mermaid_png()
97+
98+
99+
graph = BasicWorkflowAgent().create_graph()

uv.lock

Lines changed: 346 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)