Anthropic rules update#1344
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Anthropics connector rules/docs to reflect recent API schema changes: removing a deprecated Claude chat field and expanding Claude Enterprise Analytics metrics + field mappings.
Changes:
- Removed deprecated
organization_idfrom Claude chat/chat-message response schemas and sanitized examples. - Updated Claude Enterprise Analytics schema to add new metric groups/fields and rename tool action fields to
*_count. - Refreshed Claude Enterprise Analytics example responses to match the updated metric/tool-action shapes.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/sources/anthropic/claude/example-api-responses/sanitized/chats-response.json | Removes deprecated organization_id from sanitized chat-list example. |
| docs/sources/anthropic/claude/example-api-responses/sanitized/chat-messages-response.json | Removes deprecated organization_id from sanitized chat detail/messages example. |
| docs/sources/anthropic/claude/claude.yaml | Drops deprecated organization_id from Claude chat response schemas/definitions. |
| docs/sources/anthropic/claude-enterprise-analytics/example-api-responses/sanitized/users.json | Updates sanitized users analytics example with new metrics/tool-action field names (but currently misses last_activity_date). |
| docs/sources/anthropic/claude-enterprise-analytics/example-api-responses/original/users.json | Updates original users analytics example formatting/fields (but currently misses last_activity_date). |
| docs/sources/anthropic/claude-enterprise-analytics/claude-enterprise-analytics.yaml | Adds new metrics definitions/fields and renames tool-action properties; introduces last_activity_date. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }, | ||
| "chat_metrics": { |
| }, | ||
| "chat_metrics": { |
| "data": [ | ||
| { | ||
| "user": { "id": "user_abc123", "email_address": "alice@example.com" }, | ||
| "date": "2026-06-01", |
There was a problem hiding this comment.
That was an internal field not present in the model. Removed a couple of weeks ago but it appears now as I didn't update the rules for that minor change at that time
| "multi_edit_tool": { "accepted": 3, "rejected": 0 }, | ||
| "write_tool": { "accepted": 5, "rejected": 1 }, | ||
| "notebook_edit_tool": { "accepted": 0, "rejected": 0 } | ||
| "edit_tool": { "accepted_count": 10, "rejected_count": 2 }, |
There was a problem hiding this comment.
These are the important changes
| "dispatch_turn_count": 0, "skills_used_count": 0, "distinct_skills_used_count": 0, | ||
| "connectors_used_count": 0, "distinct_connectors_used_count": 0 | ||
| } | ||
| "connectors_used_count": 0, "distinct_connectors_used_count": 0, |
There was a problem hiding this comment.
And adding other fields that we don't have mapped in the schema
| "name":"{\"length\":31,\"word_count\":3}", | ||
| "created_at":"2025-06-07T08:09:10Z", | ||
| "updated_at":"2025-06-07T08:09:11Z", | ||
| "organization_id":"org_abc123", |
There was a problem hiding this comment.
This is marked as deprecated in the API since months ago. Dropped from our model.
Rules updated for Claude and Claude Enterprise Analytics:
Fixes
Psoxy updated
Features
Logistics
Change implications
CHANGELOG.mdanything that will show up interraform plan/applythat isn'tobviously a no-op?
alpha, requires major versionchange