@ExplorerQvQ基于的MinerU的API调用封装为ClaudeCode中的subagents的建议? 中发帖

这个问题来自这里。 

这是个好主意,于是在投喂了「MinerU」和「ClaudeCode关于subangent」的文档之后,大语言模型给了我如下的方案…
处于用户目录\.claude\agents\下:
脚本文件mineru_tool.py
import os
import sys
import time
import requests
import zipfile
import io

API_TOKEN = "YOUR_MINERU_TOKEN_HERE"
# 虽然把API暴露在代码中不好,但是我的实际需求中并不需要开源,而且API有效期只有14天,我懒o(* ̄▽ ̄*)ブ
BASE_URL = "https://mineru.net/api/v4"
HEADERS = {
"Content-Type": "application/json",
"Authoriz...