Documentation Index
Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt
Use this file to discover all available pages before exploring further.
@spfunctions/sdk is published as an alpha npm package.
The SDK is a typed wrapper over existing SimpleFunctions HTTP/Data API objects. It does not create a second object model and it does not shell out to the CLI.
SF_API_KEY values in browser bundles.
Read-first surfaces
sideEffect: none in the draft contract map.
sf.manifest.* reads the strict SDK/Agent contract manifest from /api/contracts/tools. It uses canonical dotted names such as world.read; broad hosted tool names from /api/tools, such as get_world_state, are compatibility inventory names and are not SDK contract truth.
The SDK is API-key-first. Manifest inspection is the no-key bootstrap path. Data and research calls are preflighted against the strict contract metadata; if a tool has costEffect or access.anonymousAllowed: false, the SDK throws MissingApiKeyError before the live request when no API key is configured.
Authenticated reads
SF_API_KEY or an explicit apiKey.
Not included
The SDK does not implement live trading, direct venue order placement, daemon mode, hosted long-running agents, MCP expansion, or a Python SDK rewrite. The SDK is also not the Agent SDK.@spfunctions/agent is published as an alpha package. v0 is a governed direct tool runner, and v1 is an alpha model-loop runtime. The current sf agent --tool CLI path is a command-line wrapper around direct-tool semantics, not the Agent SDK itself.
Private Agent v0 consumers should use the SDK client explicitly:
agent.tools.* helpers are typed wrappers over canonical dotted tools. They do not bypass policy, use /api/tools, or shell out to the CLI.
Alpha boundaries
The alpha package exposes the governed strict subset first. Deferred or hallucination-risk surfaces such asevents.*, market.related, auth.status, investigations.create, intents.propose, webhooks.create, and live_trade stay out of the SDK/Agent default surface until they have explicit contract, auth, side-effect, cost, and policy decisions.