计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
api-services【效率与协作】Help future agents create, launch, inspect, and troubleshoot the FastAPI service Opyrator exposes for wrapped functions.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs the HTTP API service that Opyrator exposes for a wrapped callable.
create_api(Opyrator) -> FastAPIlaunch_api(opyrator_path, port=8501, host="0.0.0.0")patch_fastapi(app)POST /call, GET /info, GET / redirecting to ./docs/docs, /redoc, and /openapi.json behavior after patchingOpyrator.input_type and Opyrator.output_typelist[BaseModel] or a root model around a list../wrapping-and-cli/SKILL.md../ui-and-components/SKILL.md../../SKILL.md../../references/troubleshooting.mdscripts/api_smoke.pyThe bundled references were distilled from the runtime API helpers, the public README API section, example wrappers and OpenAPI specs, and the package pin set that governs the compatible FastAPI and Starlette stack.
create_api returns a FastAPI app without launching a server./call uses the wrapped callable's input model for request validation and its output type for response_model./info is present and returns an empty metadata object./ redirects to ./docs./docs and /redoc remain usable through relative URLs after patching.