From a94650a5be629e5f4f0788228a02fff0c74afbc8 Mon Sep 17 00:00:00 2001
From: TevinClaw <510129976@qq.com>
Date: Sat, 14 Mar 2026 12:26:27 +0800
Subject: [PATCH] 添加次 agent lifehelper 基本配置

---
 workspace/skills/tavily-search/SKILL.md |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 56 insertions(+), 0 deletions(-)

diff --git a/workspace/skills/tavily-search/SKILL.md b/workspace/skills/tavily-search/SKILL.md
new file mode 100644
index 0000000..b4ac09f
--- /dev/null
+++ b/workspace/skills/tavily-search/SKILL.md
@@ -0,0 +1,56 @@
+---
+name: tavily-search
+description: Tavily AI Search API integration for high-quality search results optimized for LLMs and RAG applications. Use when the user needs to search the web with Tavily's AI-powered search engine, which provides structured results with summaries, sources, and relevance scores. Particularly useful for research, fact-checking, and gathering up-to-date information from the web.
+---
+
+# Tavily Search
+
+Integration with [Tavily](https://tavily.com) AI Search API - a search engine built specifically for AI applications.
+
+## Prerequisites
+
+1. Get a Tavily API key from https://tavily.com
+2. Configure the key using one of these methods:
+   - **.env file (推荐)**: 在 `~/.openclaw/.env` 文件中配置:
+     ```json
+     {"env": {"TAVILY_API_KEY": "your_key_here"}}
+     ```
+   - **Environment variable**: `export TAVILY_API_KEY=your_key_here`
+   - **Direct parameter**: Pass `api_key` when calling the function
+
+## Usage
+
+### Quick Search
+
+Use the search script for simple queries:
+
+```bash
+python ~/.openclaw/workspace/skills/tavily-search/scripts/tavily_search.py "your search query"
+```
+
+### Python API
+
+```python
+from scripts.tavily_search import tavily_search
+
+results = tavily_search("AI latest news", max_results=5)
+for result in results:
+    print(f"Title: {result['title']}")
+    print(f"URL: {result['url']}")
+    print(f"Content: {result['content']}")
+```
+
+### Advanced Options
+
+The search supports various parameters:
+- `max_results`: Number of results (default: 5)
+- `search_depth`: "basic" or "advanced"
+- `include_images`: Include image URLs
+- `include_answer`: Include AI-generated answer
+
+## Output Format
+
+Tavily returns structured results with:
+- `query`: The search query
+- `answer`: AI-generated answer (if requested)
+- `results`: List of search results with title, url, content, score, and published_date

--
Gitblit v1.9.1