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