Documentation Index
Fetch the complete documentation index at: https://docs.svantic.com/llms.txt
Use this file to discover all available pages before exploring further.
Svantic SDK
@svantic/sdk is the TypeScript toolkit for building AI agents on Svantic.
You describe what your agent can do in plain code, and Svantic handles the rest — discovery, orchestration, streaming, authentication, and observability. A handler you write today runs the same way whether it’s called by a user in the chat UI, by another agent as a tool, or by a scheduled trigger at 3 a.m.
Install
Hello, agent
api.svantic.com and keeps a persistent connection open.
What the SDK gives you
| You want to… | Start here |
|---|---|
| Expose functions an AI can invoke | Defining capabilities |
| Let an LLM plan which capabilities to call | Smart agents |
| Call another agent’s capabilities | Calling other agents |
| Embed agent endpoints in an existing Express app | Attach to Express |
| Run on webhooks, cron, or emitted events | Triggers |
| Bridge an MCP server as capabilities | MCP integration |
| Trace what your agent did, and why | Telemetry & tracing |
| Reject forged dispatches to a hosted agent | Securing dispatches |
| Keep secrets out of the agent and LLM | Sensitive forms |
Two ways to run
Every agent built with the SDK is either:- Connected — the default. Your agent dials Svantic over an outbound WebSocket. No public URL, no inbound firewall rules. Ideal for laptops, CI, ephemeral workers, and anything behind NAT.
- Hosted — your agent exposes a public HTTPS URL, and Svantic POSTs to it. Use this when you want Svantic traffic to flow through your own ingress for auditing or WAF reasons.
How to read these docs
- Guides are task-oriented. Start here if you’re building something. Each guide is a complete walkthrough.
- Reference is the exhaustive API listing — every class, method, option, and type.
Getting credentials
Every SDK call to Svantic uses aclient_id / client_secret pair issued to your tenant. Create them in the Svantic dashboard under Settings → API Credentials, then set them as environment variables:
Support
- Source and issues: github.com/svantic/svantic
- Questions: support@svantic.com
- Status: status.svantic.com
