Files
ai-shell/ai_shell/models.py
zackeryyy wang 644071850a Initial commit: AI Shell v0.1.0
- AI-powered shell command generator using DeepSeek V3
- Support for natural language to shell command conversion
- Secure configuration management with .env files
- Package structure with uv tool installation support
- Chinese and English language support
- Configuration validation and error handling
2025-07-12 22:06:15 +08:00

14 lines
247 B
Python

"""
Data models for AI Shell
"""
from dataclasses import dataclass
from typing import Optional
@dataclass
class Answer:
"""Response model for AI-generated shell commands"""
success: bool
cmd: Optional[str]
failure: Optional[str]