aboutsummaryrefslogtreecommitdiffstats
path: root/useragents/makefile
blob: 21f6ad90aed80918443873cef3ada86bf7ce57f3 (plain) (blame)
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
.PHONY: d_test d_down d_build help up down test log

IMAGE_NAME=useragents

up: d_test

down: d_down

log:
	nqtail

test:
	@curl -k -X POST -H 'Content-Type: application/json' --data '{"agent_name": "web_search_tool", "instructions":"you are a web search bot", "query": "make me a cryptocurrency news digest from the news for today please.  give me the references for the news you mention."}' https://127.0.0.1:9910/api/v1/agent

d_test:
	nq docker compose -f ./docker-compose-uas.yaml up --build

d_down:
	docker compose -f ./docker-compose-uas.yaml down

d_build: d_build_regular

d_build_regular:
	docker build -t $(IMAGE_NAME)-f ./Dockerfile .

help:
	@echo "up"
	@echo "down"
	@echo "test"
	@echo "d_test"
	@echo "d_down"
	@echo "d_build"