Using starlette 's routing and schema primitives, implement a RouteDocExtractor class in task module.py that…
Using starlette 's routing and schema primitives, implement a RouteDocExtractor class in task module.py that…: a task in repo2rlenv-code-instruct (Harbor dataset). RouteDocExtractor must: 1. Accept a list of starlette Route and Mount objects in its constructor. 2. Expose a collect docs() method…
The task
`RouteDocExtractor` must: 1. Accept a list of `starlette` `Route` and `Mount` objects in its constructor. 2. Expose a `collect_docs()` method that returns a list of dicts, each with keys `"path"`, `"method"`, and `"summary"` — where `"summary"` is the **first non-empty line** of the endpoint's docstring (or `""` if…
Part of FineEnvs/repo2rlenv-code-instruct.