The Titan SDK for TypeScript, version 0.2
Typed functions for every public Titan route, React Query hooks, and flows that run a whole task, like editing a policy, in one call.
Engineering
10Titan SDK 0.2
The Titan SDK is the TypeScript client for Titan’s API. Version 0.2.0 was released on November 10, and 0.2.1 the day after.
What’s in it
- The platform API: deployments, policy, tools, connections, approvals and the Agent Ledger.
- Flows that run a whole task: provision a deployment, connect an account with an API key or OAuth, edit a policy.
- React Query hooks for the platform API and the flows.
- The agent API, for an agent process: identity exchange, capabilities, invocations and approvals.
Policy edits that can’t clobber
The policy flow reads the current policy, hands it to your function and saves what it returns with the next revision. If someone else saved first, Titan refuses the stale revision instead of overwriting their change; run the flow again and it reads fresh. The policy builders produce exactly what Titan’s compiler accepts.
Use 0.2.1
In 0.2.0, connecting an account with an API key stored the key in a field that is never handed to a tool, so the connection looked active but its tool calls failed. Version 0.2.1 fixes it. Connections made that way should be connected again.