feat: implement chat interface with CrewAI integration
- Create MiniMax LLM connector for CrewAI integration - Implement TradingCrew with trading_designer, strategy_validator, strategy_explainer - Add strategy parsing from natural language to strategy_config JSON - Update chat endpoint with CrewAI integration and conversation context - Add strategy validation logic - Add explanation generation for user-friendly responses - Add BotChatRequest/BotChatResponse schemas Fixes #6
This commit is contained in:
@@ -118,6 +118,17 @@ class BotConversationResponse(BaseModel):
|
||||
from_attributes = True
|
||||
|
||||
|
||||
class BotChatRequest(BaseModel):
|
||||
message: str
|
||||
strategy_config: Optional[bool] = False
|
||||
|
||||
|
||||
class BotChatResponse(BaseModel):
|
||||
response: str
|
||||
strategy_config: Optional[dict] = None
|
||||
success: bool = False
|
||||
|
||||
|
||||
class SignalResponse(BaseModel):
|
||||
id: str
|
||||
bot_id: str
|
||||
|
||||
Reference in New Issue
Block a user