Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →在指定路径下搜索指定类型的文件(如 .txt、.pdf)。当用户提到按类型搜索文件、找某类文件、检索文件时使用。
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -33% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -57% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -57% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -4% | 0% |
> 在当前路径下搜索指定类型的文件
在指定路径下搜索指定类型的文件。
office/skills/file/search_specify_type_file/
pythonfrom skills.file import search_specify_type_file search_specify_type_file( file_path='./data', file_type='.txt' )
| 参数 | 类型 | 必填 | 默认值 | 说明 | |------|------|------|--------|------| | file_path | str | 是 | - | 文件路径 | | file_type | str | 是 | - | 文件类型(如 .txt、.py) |
None(结果直接打印输出)
pythonfrom skills.file import search_specify_type_file search_specify_type_file(file_path='./docs', file_type='.pdf')
office.api.file.search_specify_type_file
Other measured skills in the registry, with their headline benchmark lift.