Add company overview skeleton and cache

This commit is contained in:
2026-03-13 19:05:17 -04:00
parent b1c9c0ef08
commit 0394f4e795
18 changed files with 1571 additions and 158 deletions

View File

@@ -559,10 +559,11 @@ export async function getSearchAnswer(input: {
}, 'Unable to generate cited answer');
}
export async function getCompanyAnalysis(ticker: string) {
export async function getCompanyAnalysis(ticker: string, options?: { refresh?: boolean }) {
const result = await client.api.analysis.company.get({
$query: {
ticker: ticker.trim().toUpperCase()
ticker: ticker.trim().toUpperCase(),
...(options?.refresh ? { refresh: 'true' } : {})
}
});