-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (29 loc) · 895 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
EXAMPLES ?= .
VENV_NAME = venv
PYTHON = $(VENV_NAME)/bin/python
PIP = $(VENV_NAME)/bin/pip
REQUIREMENTS = requirements.txt
.PHONY: venv install test clean
venv: $(VENV_NAME)/bin/activate
$(VENV_NAME)/bin/activate:
python3 -m venv $(VENV_NAME)
install: venv
$(PIP) install -r $(REQUIREMENTS)
run_imperative_eg: install
$(PYTHON) langgraph/imperative.py
run_lg_eg_pyd: install
$(PYTHON) langgraph/langgraph_pydantic.py
run_lg_eg_td: install
$(PYTHON) langgraph/langgraph_typedict.py
run_llma_idx: install
$(PYTHON) llamaindex/llamaindex_workflow.py
run_llma_wfl: install
$(PYTHON) llamaindex/llamaindex_agent_workflow.py
run_acp: install
$(PYTHON) acp/__main__.py
clean:
rm -rf $(VENV_NAME)
find . -name '*.pyc' -delete
find . -name '__pycache__' -type d -exec rm -rf {}