File tree Expand file tree Collapse file tree 5 files changed +25
-0
lines changed
template_langgraph/services Expand file tree Collapse file tree 5 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -115,3 +115,7 @@ ci-test-docs: install-deps-docs docs ## run CI test for documentation
115
115
.PHONY : langgraph-studio
116
116
langgraph-studio : # # run LangGraph Studio
117
117
uv run langgraph dev
118
+
119
+ .PHONY : fastapi-dev
120
+ fastapi-dev : # # run FastAPI
121
+ uv run fastapi dev ./template_langgraph/services/fastapis.py
Original file line number Diff line number Diff line change 20
20
- [ CSVLoader] ( https://python.langchain.com/docs/how_to/document_loader_csv/ )
21
21
- [ Qdrant] ( https://github.com/qdrant/qdrant )
22
22
- [ Azure Cosmos DB No SQL] ( https://python.langchain.com/docs/integrations/vectorstores/azure_cosmos_db_no_sql/ )
23
+
24
+ ### Services
25
+
26
+ - [ FastAPI] ( https://fastapi.tiangolo.com/ )
Original file line number Diff line number Diff line change 20
20
- [ CSVLoader] ( https://python.langchain.com/docs/how_to/document_loader_csv/ )
21
21
- [ Qdrant] ( https://github.com/qdrant/qdrant )
22
22
- [ Azure Cosmos DB No SQL] ( https://python.langchain.com/docs/integrations/vectorstores/azure_cosmos_db_no_sql/ )
23
+
24
+ ### Services
25
+
26
+ - [ FastAPI] ( https://fastapi.tiangolo.com/ )
Original file line number Diff line number Diff line change
1
+ from fastapi import FastAPI
2
+
3
+ app = FastAPI ()
4
+
5
+
6
+ @app .get ("/" )
7
+ def read_root ():
8
+ return {"Hello" : "World" }
9
+
10
+
11
+ @app .get ("/items/{item_id}" )
12
+ def read_item (item_id : int , q : str | None = None ):
13
+ return {"item_id" : item_id , "q" : q }
You can’t perform that action at this time.
0 commit comments