- 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
14 lines
247 B
Python
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]
|