Skip to content

Commit 1dcd380

Browse files
andyfellerCopilot
andcommitted
Add usage and billing metrics docs page
Document how SDK integrators read token counts, context-window utilization, AI credit cost, and account quota via session events and RPC methods (assistant.usage, session.usage_info, session.metadata.contextInfo, session.usage.getMetrics, models.list, account.getQuota). Examples are provided for TypeScript, Python, Go, .NET, Java, and Rust, and the compiled snippets pass the docs-validation harness. Adds a link to the features index. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5a80afe commit 1dcd380

2 files changed

Lines changed: 1348 additions & 0 deletions

File tree

docs/features/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ These guides cover the capabilities you can add to your Copilot SDK application.
1717
| [Plugin Directories](./plugin-directories.md) | Bundle skills, hooks, MCP servers, and agents as a single loadable plugin |
1818
| [Image Input](./image-input.md) | Send images to sessions as attachments |
1919
| [Streaming Events](./streaming-events.md) | Subscribe to real-time session events (40+ event types) |
20+
| [Usage and Billing](./usage-and-billing.md) | Read token counts, context-window utilization, AI credit cost, and account quota |
2021
| [Steering & Queueing](./steering-and-queueing.md) | Control message delivery—immediate steering vs. sequential queueing |
2122
| [Session Persistence](./session-persistence.md) | Resume sessions across restarts, manage session storage |
2223
| [Remote Sessions](./remote-sessions.md) | Share locally hosted sessions to GitHub web and mobile via Mission Control |

0 commit comments

Comments
 (0)