fix(coding-agent): expose rpc context usage closes #2550
This commit is contained in:
@@ -200,6 +200,7 @@ export interface SessionStats {
|
||||
total: number;
|
||||
};
|
||||
cost: number;
|
||||
contextUsage?: ContextUsage;
|
||||
}
|
||||
|
||||
interface ToolDefinitionEntry {
|
||||
@@ -3029,6 +3030,7 @@ export class AgentSession {
|
||||
total: totalInput + totalOutput + totalCacheRead + totalCacheWrite,
|
||||
},
|
||||
cost: totalCost,
|
||||
contextUsage: this.getContextUsage(),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user