# py_qt_agent **Repository Path**: memoryzhj/py_qt_agent ## Basic Information - **Project Name**: py_qt_agent - **Description**: 大乐透智能体 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-26 - **Last Updated**: 2026-03-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DeepSeek Agent (LangChain + PyQt) This is a simple intelligent agent application built with Python, PyQt6, and LangChain, using the DeepSeek Large Language Model. ## Prerequisites - Python 3.8+ - A DeepSeek API Key (or compatible OpenAI API key) ## Setup 1. **Install dependencies:** ```bash pip install -r requirements.txt ``` 2. **Configure API Key:** - Open the `.env` file in the project directory. - Replace `your_deepseek_api_key_here` with your actual DeepSeek API key. - If needed, adjust the `DEEPSEEK_BASE_URL` (defaults to `https://api.deepseek.com`). ## Run the Application Execute the following command to start the agent: ```bash python main.py ``` ## Features - **Chat Interface:** Interact with the DeepSeek model in a clean GUI. - **Memory:** The agent remembers the context of the current conversation. - **Threaded Execution:** The UI remains responsive while the agent is "thinking". - **Clear History:** Button to clear the conversation history and memory.