技能标识:global-search
Unleashes cutting-edge multi-source search technology that instantly synthesizes vast amounts of information across the web, delivering comprehensive and relevant results through intelligent aggregation by default. Executes parallel searches across multiple content channels simultaneously to provide maximum coverage and relevance. Offers superior search efficiency with a single query. Use when the user needs to search the web, gather news, find articles by keyword, or retrieve references for res
该技能利用强大的多源搜索技术,通过智能聚合从不同的在线资源库中提供即时、全面的搜索结果。
当用户出现以下情况时,应用此技能:
默认情况下,此技能会同时对所有可用来源进行全面搜索,以提供最完整的结果。
端点: POST /web_search
基础 URL: https://clb.ciglobal.cn
身份验证: 无需身份验证(免费服务)
对于全面搜索(默认行为),该技能将使用 overall.md 中的脚本自动执行 4 个并行的 API 调用:
| 请求头 | 必需 | 描述 |
|---|---|---|
| Content-Type | 是 | application/x-www-form-urlencoded(表单数据) |
| 参数 | 类型 | 必需 | 默认值 | 描述 |
|---|---|---|---|---|
| keyword | 字符串 | 是 | - | 搜索关键词,多个关键词用空格分隔 |
| searchsource |
当用户想要同时搜索所有可用来源(全面搜索)时,您应该:
示例实现(Python asyncio):
python
import aiohttp
import asyncio
APIURL = https://clb.ciglobal.cn/websearch
headers = {Content-Type: application/x-www-form-urlencoded}
SEARCH_CONFIGS = [
{name: 百度搜索, mode: network, searchsource: baidusearch},
{name: 谷歌搜索, mode: network, searchsource: googlesearch},
{name: 百度 AI 搜索, mode: network, searchsource: baidusearch_ai},
{name: 全库搜, mode: warehouse, search_source: None}
]
async def fetch_search(session, semaphore, config, keyword, page):
async with semaphore:
data = {
keyword: keyword,
page: page,
mode: config[mode],
}
if config[search_source]:
data[searchsource] = config[searchsource]
async with session.post(API_URL, headers=headers, data=data) as response:
result = await response.json()
return result.get(references, [])
async def comprehensive_search(keyword, page=1):
async with aiohttp.ClientSession() as session:
semaphore = asyncio.Semaphore(5) # 最多 5 个并发请求
tasks = [fetch_search(session, semaphore, config, keyword, page)
for config in SEARCH_CONFIGS]
results = await asyncio.gather(*tasks)
# 将所有引用展平为一个列表
all_references = [ref for refs in results for ref in refs]
return all_references
asyncio.run(comprehensive_search(人工智能))
json
{
code: 200,
message: success,
references: [
{
title: 文章标题,
sourceAddress: https://example.com/article,
origin: 来源名称,
publishDate: 2025-03-24 12:00:00,
summary: 文章摘要或片段
}
]
}
POST https://clb.ciglobal.cn/web_search
请求头:Content-Type: application/x-www-form-urlencoded
请求体(表单):keyword=人工智能&searchsource=baidusearch&mode=network&page=1
POST https://clb.ciglobal.cn/web_search
请求头:Content-Type: application/x-www-form-urlencoded
请求体(表单):keyword=AI&searchsource=googlesearch&mode=network&page=1
POST https://clb.ciglobal.cn/web_search
请求头:Content-Type: application/x-www-form-urlencoded
请求体(表单):keyword=机器学习&mode=warehouse&page=1
| 错误码 | 消息 | 原因 |
|---|---|---|
| 400 | searchsource参数错误 | 无效的 searchsource 值 |
| 400 |
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 global-search-1776027787 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 global-search-1776027787 技能
skillhub install global-search-1776027787
文件大小: 5.66 KB | 发布时间: 2026-4-13 10:27