Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions sdk/guides/agent-acp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,18 @@ uv run python examples/02_remote_agent_server/09_acp_agent_with_remote_runtime.p
On the agent-server side, the ACP-capable REST surface lives under `/api/acp/conversations`, including `POST`, `GET`, `search`, `batch get`, and `count`.
</Note>

## Context Usage and Metrics

When the ACP server sends a `UsageUpdate`, the SDK uses its `used` value for the
current context-fill metric (`per_turn_token`) and its `size` for the context
window. This also works when the server does not include token counts in its
`PromptResponse`.

Token totals from `PromptResponse.usage` remain separate accounting values: they
can include multiple model calls within one turn. If the server does not send a
`UsageUpdate`, context fill falls back to the sum of input and output tokens from
that response. See [LLM Metrics](/sdk/guides/metrics) for token and cost tracking.

## Next Steps

- **[Creating Custom Agents](/sdk/guides/agent-custom)** — Build specialized agents with custom tool sets and system prompts
Expand Down