Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ chat:
python3.13 testclient/client.py

sample:
curl -XPOST http://127.0.0.1:8000/api/agent/run \
@echo "Set FIREBASE_ID_TOKEN or SKIP_TOKEN_AUTH_HEADER/SKIP_TOKEN_AUTH_KEY before running make sample."
curl -XPOST http://127.0.0.1:8000/api/v2/agent/run \
-H "Content-Type: application/json" \
$(if $(FIREBASE_ID_TOKEN),-H "Authorization: Bearer $(FIREBASE_ID_TOKEN)") \
$(if $(and $(SKIP_TOKEN_AUTH_HEADER),$(SKIP_TOKEN_AUTH_KEY)),-H "$(SKIP_TOKEN_AUTH_HEADER): $(SKIP_TOKEN_AUTH_KEY)") \
-d @sample-payload.json | jq

format:
ruff format .
ruff format .
20 changes: 11 additions & 9 deletions sample-payload.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"context": {
"address": "0x1234567890123456789012345678901234567890",
"conversationHistory": [],
},
"message": {
"type": "user",
"message": "What is the price of BTC?"
}
}
"context": {
"address": "0x1234567890123456789012345678901234567890",
"conversationHistory": []
},
"message": {
"type": "user",
"message": "What is the price of BTC?"
},
"agent": "analytics_agent",
"captchaToken": "test-captcha-token"
}