Checking the context and token usage of a conversation
Check how full the context window is and how many tokens a conversation used in Cloudera Agent Studio, so that you can decide whether to compact a long conversation.
The /context command shows the current occupancy of the context window. The /usage command shows the cumulative token totals that Agent Studio recorded. The two values measure different things, so do not compare them directly. See Context, compaction, and token usage.
- Open a chat with an available agent, and wait until the chat is ready. See Slash commands in chat.
- Make sure that the conversation exists. Both commands need an existing conversation.
- If an agent run is in progress, wait until the run finishes.
The cards show the state of the conversation when you submitted the commands. Neither command changes the conversation.
If the context window is nearly full, compact the conversation. See Compacting a conversation.
