Skip to content

Commit 55b0c05

Browse files
committed
update V0.1.0
1 parent ce37e07 commit 55b0c05

62 files changed

Lines changed: 5731 additions & 1578 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# ============================================================================
2+
# HelloAgents 统一环境变量配置文件
3+
# ============================================================================
4+
# 复制此文件为 .env 并填入你的API密钥
5+
# 系统要求:Python 3.10+ (必需)
6+
7+
# ============================================================================
8+
# 🚀 统一配置格式(推荐)- 框架自动检测provider
9+
# ============================================================================
10+
# 只需配置以下4个通用环境变量,框架会自动识别LLM提供商:
11+
12+
# 模型名称
13+
LLM_MODEL_ID=your-model-name
14+
15+
# API密钥
16+
LLM_API_KEY=your-api-key-here
17+
18+
# 服务地址
19+
LLM_BASE_URL=your-api-base-url
20+
21+
# 超时时间(可选,默认60秒)
22+
LLM_TIMEOUT=60
23+
24+
# ============================================================================
25+
# 🛠️ 工具配置(可选)
26+
# ============================================================================
27+
28+
# Tavily搜索(推荐)- 获取API密钥:https://tavily.com/
29+
# TAVILY_API_KEY=tvly-your_tavily_key_here
30+
31+
# SerpApi搜索(备选)- 获取API密钥:https://serpapi.com/
32+
# SERPAPI_API_KEY=your_serpapi_key_here

.github/workflows/test.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main, develop ]
6+
pull_request:
7+
branches: [ main, develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, windows-latest, macos-latest]
15+
python-version: ["3.10", "3.11", "3.12"]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install -e .
29+
pip install -r requirements-dev.txt
30+
31+
- name: Check Python version compatibility
32+
run: |
33+
python check_python_version.py
34+
35+
- name: Lint with flake8
36+
run: |
37+
# stop the build if there are Python syntax errors or undefined names
38+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
39+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
40+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
41+
42+
- name: Type check with mypy
43+
run: |
44+
mypy hello_agents --ignore-missing-imports
45+
46+
- name: Test with pytest
47+
run: |
48+
pytest tests/ -v --cov=hello_agents --cov-report=xml
49+
50+
- name: Upload coverage to Codecov
51+
uses: codecov/codecov-action@v3
52+
with:
53+
file: ./coverage.xml
54+
flags: unittests
55+
name: codecov-umbrella
56+
fail_ci_if_error: false

.gitignore

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,13 @@ celerybeat.pid
119119
# SageMath parsed files
120120
*.sage.py
121121

122-
# Environments
122+
# 环境变量文件
123123
.env
124-
.venv
125-
env/
126-
venv/
127-
ENV/
128-
env.bak/
129-
venv.bak/
124+
.env.local
125+
.env.*.local
126+
127+
# PyPI配置
128+
.pypirc
130129

131130
# Spyder project settings
132131
.spyderproject
@@ -159,4 +158,4 @@ cython_debug/
159158
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160159
#.idea/
161160
.DS_Store
162-
.obsidian
161+
.obsidian

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.12

HelloAgents/First part.md

Lines changed: 0 additions & 234 deletions
This file was deleted.

0 commit comments

Comments
 (0)