计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
api-server【效率与协作】Guides segment-geospatial's FastAPI service, samgeo-api CLI, segmentation endpoints, model/cache behavior, output formats, and safe API smoke checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about serving SamGeo segmentation over HTTP,
using the samgeo-api command, sending curl/Python client requests, validating
endpoint parameters, or debugging API model/image caches.
samgeo-api, uvicorn samgeo.api:app, FastAPI docs, or
Swagger UI.GET /health, GET /models, DELETE /models,
POST /segment/automatic, POST /segment/predict, or POST /segment/text.output_format=geojson|geotiff|png|json|detections.segment-geospatial[api] plus the model extra needed by requests.
For SAM3 text endpoints, include [samgeo3] and verify CUDA/model access.python scripts/api_smoke.py --local-testclient.samgeo-api --host 0.0.0.0 --port 8000.GET /models to inspect available and loaded models.DELETE /models to clear model cache and free GPU memory after large
jobs.tests/test_api.py is a strong native candidate because it uses mocks for model
loads while validating endpoint errors, model registry exposure, output format
checks, SAM3 point prompt dispatch, and cache-key behavior.