feat: implement conversational AI agent with tool-calling #52
Reference in New Issue
Block a user
Delete Branch "feat/conversational-agent-with-tools"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Prototype implementation that allows:
Changes
New File: conversational.py
Created ConversationalAgent using CrewAI with tools:
Updated: bots.py
Simplified chat endpoint to always use ConversationalAgent instead of TradingCrew
How it works
Normal Conversation
User: "What is this bot?"
AI: Responds conversationally about the trading platform
Strategy Update (Tool Calling)
User: "I want take profit at 200%"
AI: Calls update_trading_strategy tool → Updates bot config
Testing
Tested basic chat:
Note
This is a prototype. The tools (get_current_strategy, update_trading_strategy)
need proper database session handling for production use.
Refs #51
lgtm