( usage: BetaUsage, )
| 114 | } |
| 115 | |
| 116 | export 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 | |
| 131 | export const ADVISOR_TOOL_INSTRUCTIONS = `# Advisor Tool |
| 132 |
no outgoing calls
no test coverage detected