MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / getAdvisorUsage

Function getAdvisorUsage

src/utils/advisor.ts:117–130  ·  view source on GitHub ↗
(
  usage: BetaUsage,
)

Source from the content-addressed store, hash-verified

115}
116
117export function getAdvisorUsage(
118 usage: BetaUsage,
119): Array<BetaUsage & { model: string }> {
120 const iterations = usage.iterations as
121 | Array<{ type: string }>
122 | null
123 | undefined
124 if (!iterations) {
125 return []
126 }
127 return iterations.filter(
128 it => it.type === 'advisor_message',
129 ) as unknown as Array<BetaUsage & { model: string }>
130}
131
132export const ADVISOR_TOOL_INSTRUCTIONS = `# Advisor Tool
133

Callers 1

addToTotalSessionCostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected