ToolLoopAgent, or plain generateText and streamText calls, on Tilde. It works with AI SDK 6.
Example agent
A complete Vercel AI SDK agent with bundled tools, in the Tilde open-source repository.
Install
How it works
AI SDK 6 agents take no per-call tools. The adapter uses the agent’s call options instead. SpreadtildeCallOptions into the agent once, then pass tildeAiSdk(ctx) on each call. The adapter then adds the channel’s tools, the agent’s Tilde and bundled tools, skills, and new user input to that call.
src/agent.ts
generateText or streamText calls, use prepareTildeCall, or convert tools yourself with convertToAiSdkTools.
Feature compatibility
Limitations
- Static instructions only. The AI SDK accepts only a string for
instructions, so there is no dynamic prompt to version. UsedefinePromptfor templates. - Custom
prepareCall. If your agent defines its ownprepareCall, discovery warns, because the adapter relies on it. - Provider-defined tools. Provider-defined tools, and tools without an
executefunction, are not published to Tilde. - Tool names. Bundled tool names must match
^[a-zA-Z0-9_-]{1,64}$, and must not clash with other tools. - No native skills. The AI SDK has no skills concept. Deploy-time skills come from
defineSkills. - Private settings. The adapter reads the agent’s instructions from settings outside the AI SDK’s public API. It is tested against AI SDK 6.0.280.