optimize_agent_stack
Estimate a monthly stack cost from a short description of the agent being built.
description: free text, e.g. 'scrapes 20k JS pages/month via 5 GB residential proxies, 3k search queries, summarizes with an LLM, budget $300/mo'. Parsed deterministically (keywords/regex, no LLM) into components: gpu, scraping, proxy, search, llm_api, email, hosting, database, monitoring. Optional fields override the parse: gpu_hours (GPU-hours/month), gpu_model ('H100', 'A100', 'RTX 4090'), model_size_b (billions of params; sets a minimum VRAM using FP16 x 1.2), scrape_pages, js_rendering, proxy_gb, search_queries, emails_sent, llm_api, monthly_budget_usd. Each component gets the cheapest option with a cited price among tracked providers, with calc, source_url, verified_at, referral_disclosure (set when the link is a referral link) and manual-signup notes. Components with no cited price say 'no sourced price tracked' (nothing is estimated). Totals show the math and say whether they are complete. Pulled listings are excluded. Every option has data_age_hours, degraded (> 48 h) and stale (> 7 days); max_data_age_hours drops older options (excluded_too_old counts them). Same data as optimize_stack, compare_gpu_prices and the deal feed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | full | |
| llm_api | No | ||
| proxy_gb | No | ||
| workload | No | ||
| gpu_hours | No | ||
| gpu_model | No | ||
| description | No | ||
| emails_sent | No | ||
| js_rendering | No | ||
| model_size_b | No | ||
| scrape_pages | No | ||
| search_queries | No | ||
| max_data_age_hours | No | ||
| monthly_budget_usd | No | ||
| exclude_manual_signup | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| mode | No | ||
| error | No | ||
| lines | No | ||
| quote_id | No | ||
| issued_at | No | ||
| quote_basis | No |