Skip to content
Open

feat #69

Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file not shown.
61 changes: 61 additions & 0 deletions tools/tool_github_search/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# GitHub API 查询工具

查询 GitHub 仓库信息、Issues、Pull Requests、Releases 和贡献者数据。

## 功能特点

- 仓库基本信息查询
- Issues/PRs 查询
- Releases 查询
- 贡献者查询
- 支持 Token 认证

## 参数说明

**输入参数**: owner, repo, query_type, state, per_page
```python
def query_github_repository(
owner: str,
repo: str,
query_type: str,
state: str,
token: Optional[str] = None,
per_page: int = 10,
page: int = 1
) -> Dict[str, Any]:
"""查询 GitHub 仓库信息

Args:
owner: 仓库所有者(用户名或组织名)
repo: 仓库名称
token: GitHub Personal Access Token(可选,用于提高速率限制)
query_type: 查询类型,可选 "info"/"issues"/"pulls"/"releases"/"contributors"
state: 状态过滤,可选 "open"/"closed"/"all",默认 "open"
per_page: 每页结果数,默认 10
page: 页码,默认 1

Returns:
Dict[str, Any]: 包含查询结果的字典,结构如下:
- success (bool): 是否成功
- data (Dict|None): 查询数据,包含:
- type (str): 查询类型
- repository (str): 仓库全名
- info (Dict|None): 仓库基本信息
- items (List|None): 结果列表(issues/prs/releases 等)
- total_count (int): 总数
- message (str): 结果消息

Raises:
无异常抛出,所有错误在返回值中处理

Examples:
>>> result = query_github_repository("1Panel-dev", "MaxKB", query_type="info")
>>> if result["success"]:
... print(f"Stars: {result['data']['info']['stargazers_count']}")
"""
```
**启动参数**: token (可选)

## 使用说明

无需 Token 即可查询公开仓库,提供 Token 可提高速率限制。
5 changes: 5 additions & 0 deletions tools/tool_github_search/data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: GitHub API 查询
tags:
- 联网搜索
title: GitHub API 查询工具
description: 查询 GitHub 仓库信息、Issues、Pull Requests、Releases、贡献者等数据,支持仓库基本信息统计和动态查询
Binary file added tools/tool_github_search/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added tools/tool_jina_reader/1.0.0/Jina Reader.tool
Binary file not shown.
39 changes: 39 additions & 0 deletions tools/tool_jina_reader/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Jina Reader 工具

使用 Jina AI Reader 将 URL 转换为 LLM 友好的 Markdown 格式。

## 功能特点

- URL 转 Markdown
- 智能内容提取
- 自动清理噪音
- 支持中文优化

## 参数说明

**输入参数**: url, return_format
```python
def read_url_with_jina(
url: str,
return_format: str,
api_key: Optional[str] = None
) -> Dict[str, Any]:
"""使用 Jina Reader 读取 URL 内容

Args:
url: 要读取的网页 URL
api_key: Jina API 密钥 (可选)
return_format: 返回格式 markdown/html

Returns:
Dict[str, Any]: 包含读取结果的字典
"""
```
**启动参数**: api_key (可选)

## 使用示例

```
url: https://example.com/article
return_format: markdown
```
5 changes: 5 additions & 0 deletions tools/tool_jina_reader/data.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: Jina Reader
tags:
- 内容处理
title: Jina AI Reader
description: 使用 Jina AI Reader 将任意 URL 转换为 LLM 友好的 Markdown 格式,支持全文提取和智能清理
Binary file added tools/tool_jina_reader/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading