Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
75e6671
v1.3.1:完善tavily协作
GuDaStudio Feb 4, 2026
3297e2c
v1.3.2:允许grok返回英文
GuDaStudio Feb 4, 2026
cc7f175
v1.3.3:完善README
GuDaStudio Feb 11, 2026
c211ab3
v1.3.4:允许传入model参数
GuDaStudio Feb 13, 2026
8976747
v1.3.5:可通过环境变量设置grok模型
GuDaStudio Feb 13, 2026
b502273
v1.3.6:web_fetch新增Firecrawl托底机制。Tavily提取失败时自动降级到Firecrawl Scrape,支持空m…
GuDaStudio Feb 15, 2026
f9d318f
v1.4.0:web_search多信源并行搜索升级。检测到Tavily/Firecrawl API Key时自动作为额外参考信源并行搜索…
GuDaStudio Feb 15, 2026
db82f06
v1.4.1:重构 web_search 工具描述与参数。更新描述以明确搜索功能,移除冗余细节。简化查询参数注释,提升清晰度。
GuDaStudio Feb 15, 2026
a5e6022
v1.4.2:将HTTP客户端超时时间延长至90秒以适配Tavily和Firecrawl搜索;更新额外资源章节标题以提升表述清晰度。
GuDaStudio Feb 15, 2026
1dfe1dd
fix:修正Firecrawl search响应结果提取路径为data.web,与API文档结构一致。
GuDaStudio Feb 15, 2026
66a55d3
v1.5.0:新增search_planning结构化搜索规划工具。基于Thoughtbox设计模式,引导LLM在搜索前完成意图分析→复杂…
GuDaStudio Feb 15, 2026
fb4233f
v1.5.1:基于真实调用反馈优化search_planning引导精度。SubQuery.boundary强制声明兄弟子查询互斥关系;S…
GuDaStudio Feb 15, 2026
29bdbd1
v1.5.2:IntentOutput新增unverified_terms字段,引导LLM显式标记外部分类/排名术语(如CCF-A、For…
GuDaStudio Feb 15, 2026
f96a02f
v1.6.0:增强web_search功能,新增URL提取与描述特性。引入extract_unique_urls工具从搜索结果中采集独立U…
GuDaStudio Feb 16, 2026
30c3e2f
v1.7.0:依赖于grok-4.20-beta的高质量回答,区分回答正文和信源,允许LLM单独调用工具提取信源
GuDaStudio Feb 17, 2026
01d30be
v1.7.1:调整grok搜搜提示词
GuDaStudio Feb 17, 2026
f3cb1e5
feat: add follow-up conversation support to web_search
yuhxuiao Feb 25, 2026
dd00f7e
fix: security & quality improvements (P0+P1)
yuhxuiao Feb 25, 2026
9387801
fix: rename follow_up to can_follow_up for clearer semantics, broaden…
yuhxuiao Feb 25, 2026
8aeb039
docs: update README with accurate return formats from actual testing
yuhxuiao Feb 25, 2026
abd6717
feat: add search_followup + search_reflect tools, simplify web_search
yuhxuiao Feb 25, 2026
65d132a
fix: address Codex review P0/P1/P2 issues
yuhxuiao Feb 25, 2026
e36b7e6
docs: 完善README文档+增强MCP工具描述
yuhxuiao Feb 25, 2026
bd2d448
ci: add auto-release workflow for wheel packaging
yuhxuiao Feb 25, 2026
69d9c3b
fix(mcp): simplify tool schemas for 1MCP compatibility
yuhxuiao Feb 25, 2026
02745c8
fix: thinking mode + sources parsing + model override
yuhxuiao Feb 28, 2026
56038a3
chore: sync upstream search prompt; extract sources from think
yuhxuiao Mar 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# GrokSearch 环境变量配置
# 复制此文件为 .env 并填入实际值

# === 必填 ===
GROK_API_KEY=your-grok-api-key
GROK_API_URL=https://api.x.ai/v1
GROK_MODEL=grok-4.1-fast

# === Tavily(可选,增强搜索来源) ===
TAVILY_API_KEY=your-tavily-api-key
TAVILY_API_URL=https://api.tavily.com

# === Firecrawl(可选) ===
# FIRECRAWL_API_KEY=your-firecrawl-api-key
# FIRECRAWL_API_URL=https://api.firecrawl.dev/v2

# === 会话配置(可选,有默认值) ===
# GROK_SESSION_TIMEOUT=600 # 会话超时(秒),默认10分钟
# GROK_MAX_SESSIONS=20 # 最大并发会话数
# GROK_MAX_SEARCHES=50 # 单会话最大搜索次数

# === 调试 ===
# GROK_DEBUG=true
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build & Release

on:
push:
tags:
- "v*" # 推送 v0.1.0、v1.2.3 等 tag 时触发

permissions:
contents: write # 允许创建 Release 和上传 asset

jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install build tools
run: pip install build

- name: Build wheel & sdist
run: python -m build

- name: Create GitHub Release & upload assets
uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true
41 changes: 41 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Python
__pycache__/
*.pyc
*.pyo
*.egg-info/
dist/
build/
*.egg

# Environment
.env
.env.local

# Logs
logs/
*.log

# Local runtime/config artifacts
.config/
.pytest_cache/
tool_test_report_*.md
output.txt
schema_out*.json

# Test outputs
test_output.*
test_cqnu*
test_cqnu.py
test_followup.py
test_new_tools_output.json

# IDE
.vscode/
.idea/
*.swp
*.swo

# OS
.DS_Store
Thumbs.db
.ace-tool/
Loading