MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / tokenUsage

Method tokenUsage

src/core/task/Task.ts:4671–4680  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4669 }
4670
4671 public get tokenUsage(): TokenUsage | undefined {
4672 if (this.tokenUsageSnapshot && this.tokenUsageSnapshotAt) {
4673 return this.tokenUsageSnapshot
4674 }
4675
4676 this.tokenUsageSnapshot = this.getTokenUsage()
4677 this.tokenUsageSnapshotAt = this.clineMessages.at(-1)?.ts
4678
4679 return this.tokenUsageSnapshot
4680 }
4681
4682 public get cwd() {
4683 return this.workspacePath

Callers

nothing calls this directly

Calls 1

getTokenUsageMethod · 0.95

Tested by

no test coverage detected