Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use read-only SDK and agent tools for official econ and legislative context.
import { SimpleFunctions } from "@spfunctions/sdk" const sf = new SimpleFunctions({ baseUrl: process.env.SF_API_URL }) const econ = await sf.econ.query({ q: "unemployment rate", mode: "raw", limit: 3, })
econ.query -> GET /api/public/query-econ -> sf econ "query" --json -> sf.econ.query()
const gov = await sf.gov.query({ q: "SAVE Act", mode: "raw", limit: 5, })
gov.query -> GET /api/public/query-gov -> sf policy "query" --json -> sf.gov.query()
sf agent --tool econ.query --stream-json --input '{"q":"unemployment rate","mode":"raw","limit":3}' sf agent --tool gov.query --stream-json --input '{"q":"SAVE Act","mode":"raw","limit":3}'
sideEffect: none
Was this page helpful?