/** * Curated instructional content — code-mode guide and analysis rules. * * These sections encode editorial standards that cannot be auto-generated * from module metadata. Appended to instructions by buildInstructions(). */ /** When to use/not use the code_mode WASM sandbox. */ export declare const CODE_MODE_GUIDE = "=== CODE MODE \u2014 WHEN AND HOW TO USE ===\ncode_mode wraps any tool + runs a JS script against its output in a WASM sandbox. Only the script's console.log() enters context.\n\nUSE code_mode when:\n- You need COUNTS or AGGREGATIONS from a large response (e.g. \"top 10 reactions\", \"count by status\")\n- You need to FILTER a large result set (e.g. \"only death reports\", \"only Class I recalls\")\n- You need SPECIFIC FIELDS from many records (e.g. \"just drug names and dates\")\n- The tool returns >50KB and you only need a summary\n\nNEVER use code_mode when:\n- You need to READ and REASON about the data (cross-referencing, finding correlations, explaining trends)\n- You need to COMPARE data from multiple tools (the LLM must see both datasets in context)\n- The response is already small (<10KB) \u2014 FRED, BLS, most count/aggregate tools\n- You're doing DISCOVERY (\"show me everything about this drug\") \u2014 you need to see what's there\n- The user asked for RAW DATA or DETAILED RECORDS \u2014 they want the actual data, not a summary\n\nLARGE-RESPONSE TOOLS (consider code_mode for these):\n- fda_drug_events (1-5MB), fda_drug_labels (500KB-1MB), fda_device_udi (200KB+)\n- fda_device_510k (200KB+), fda_drug_ndc (100KB+), fda_substance (50KB+)\n- cfpb_search_complaints (100-200KB), doj_press_releases (50-100KB)\n- congress_bill_full_profile (50-100KB)\n\nALREADY COMPACT (never needs code_mode):\n- fred_series_data, bls_cpi_breakdown, fda_drug_counts, fda_count\n- cfpb_complaint_aggregations, cfpb_complaint_trends, any count/aggregate tool\n\nMULTI-STEP STRATEGY: Use code_mode for extraction steps, direct calls for analysis steps.\nExample: code_mode(fda_drug_events) to get \"top 10 reactions: nausea 23, vomiting 15...\"\nthen direct lobbying_search, open_payments_search, clinical_trials_search for cross-referencing.\nThis fits 6+ sources in context instead of 2."; /** Data analysis standards applied to every response. */ export declare const RULES = "=== RULES (apply to EVERY response) ===\n1. CONTEXT: Debt\u2192show debt/GDP ratio. Spending\u2192show per-capita. Dollars over time\u2192note inflation. Always note president+Congress in office.\n2. TRENDS: Never just a snapshot. Show 3-5+ data points. If asked about one year, also show year before and after.\n3. CAUSATION: Never say a policy \"caused\" an outcome. Use \"coincided with\", \"occurred during\". List confounding factors.\n4. OBJECTIVITY: Neutral language (\"declined 21%\" not \"collapsed\"). No editorial. Present both interpretations when ambiguous.\n5. PRECISION: \"decline of X%, largest since [date]\" not \"massive drop\". Provide historical range for context.\n6. SOURCES: Cite API and endpoint for every number. Distinguish raw data from calculated figures.\n7. PERSPECTIVES: GDP can grow while wages stagnate. Unemployment can be low while participation is low. Show both.\n8. CONNECT DOTS: If a bill passed\u2192check FRED 1-3yr after. If spending spiked\u2192find the authorizing law+vote. If indicator moved\u2192check FedRegister for nearby EOs. Label connections as correlations."; //# sourceMappingURL=curated-guides.d.ts.map