MCPcopy Create free account
hub / github.com/Noumena-Network/code / getAdvisorUsage

Function getAdvisorUsage

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

Source from the content-addressed store, hash-verified

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

Callers 1

addToTotalSessionCostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected