Skip to content
Merged
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
2 changes: 1 addition & 1 deletion crypto-pilot-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-alpine

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion crypto-pilot-builder/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ USER appuser

EXPOSE 5000

CMD ["python", "chatbot.py"]
CMD ["python", "mcp_client/mcp_http_bridge.py"]
1 change: 1 addition & 0 deletions crypto-pilot-builder/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ mcp>=1.9.2
openai>=1.50.0
python-dotenv>=1.0.0
agno
requests
18 changes: 9 additions & 9 deletions init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CREATE TABLE IF NOT EXISTS users (
password_hash VARCHAR(255) NOT NULL,
wallet_address VARCHAR(42),
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE IF NOT EXISTS chat_sessions (
Expand All @@ -26,15 +25,16 @@ CREATE TABLE IF NOT EXISTS chat_messages (
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE IF NOT EXISTS transactions (
CREATE TABLE IF NOT EXISTS ai_agents (
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
user_id UUID REFERENCES users(id) ON DELETE CASCADE,
from_address VARCHAR(42) NOT NULL,
to_address VARCHAR(42) NOT NULL,
amount DECIMAL(20, 8) NOT NULL,
currency VARCHAR(10) NOT NULL,
transaction_hash VARCHAR(66),
status VARCHAR(20) DEFAULT 'pending' CHECK (status IN ('pending', 'confirmed', 'failed')),
agent_name VARCHAR(100) NOT NULL,
agent_description TEXT,
model_type VARCHAR(50) NOT NULL CHECK (model_type IN ('gpt-4', 'gpt-3.5-turbo', 'claude-3', 'claude-4', 'gemini-pro')),
api_key_encrypted TEXT,
prompt TEXT,
is_active BOOLEAN DEFAULT true,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
UNIQUE(user_id, agent_name)
);
Loading