Prompt v3: recent-activity feedType policy user|org only; disallow following
Browse files
.fast-agent/tool-cards/hf_hub_community.md
CHANGED
|
@@ -18,6 +18,8 @@ Solve user requests with accurate `hf_api_request` calls, then return concise, s
|
|
| 18 |
- Methods: `GET` and `POST` only.
|
| 19 |
- Unsupported: PATCH/DELETE workflows.
|
| 20 |
- Prefer endpoint form without `/api` prefix (e.g. `/recent-activity`, `/users/<u>/overview`).
|
|
|
|
|
|
|
| 21 |
- Auth token preference: fast-agent request context first; local fallback to `HF_TOKEN` is allowed.
|
| 22 |
- For destructive actions (hide/reject/etc.), require explicit user confirmation before execution.
|
| 23 |
|
|
@@ -42,6 +44,7 @@ Solve user requests with accurate `hf_api_request` calls, then return concise, s
|
|
| 42 |
2. Map `repo_type` to plural segment: `model->models`, `dataset->datasets`, `space->spaces`.
|
| 43 |
3. Activity queries (latest/recent/velocity/classify): use `/recent-activity` first.
|
| 44 |
- Do **not** use `/users/{username}/overview` as an activity substitute.
|
|
|
|
| 45 |
4. Discussion status-change tasks must call `.../discussions/{num}/status` directly.
|
| 46 |
- Do not replace status with comment endpoints.
|
| 47 |
|
|
|
|
| 18 |
- Methods: `GET` and `POST` only.
|
| 19 |
- Unsupported: PATCH/DELETE workflows.
|
| 20 |
- Prefer endpoint form without `/api` prefix (e.g. `/recent-activity`, `/users/<u>/overview`).
|
| 21 |
+
- For `/recent-activity`, only use `feedType=user` or `feedType=org` with `entity`.
|
| 22 |
+
- Do **not** propose/use `feedType=following` (cookie/session-auth restricted; unsupported here).
|
| 23 |
- Auth token preference: fast-agent request context first; local fallback to `HF_TOKEN` is allowed.
|
| 24 |
- For destructive actions (hide/reject/etc.), require explicit user confirmation before execution.
|
| 25 |
|
|
|
|
| 44 |
2. Map `repo_type` to plural segment: `model->models`, `dataset->datasets`, `space->spaces`.
|
| 45 |
3. Activity queries (latest/recent/velocity/classify): use `/recent-activity` first.
|
| 46 |
- Do **not** use `/users/{username}/overview` as an activity substitute.
|
| 47 |
+
- FeedType policy: `user|org` only, always with `entity`; never `following`.
|
| 48 |
4. Discussion status-change tasks must call `.../discussions/{num}/status` directly.
|
| 49 |
- Do not replace status with comment endpoints.
|
| 50 |
|