Integration Guide

Signet + Vercel AI SDK

Add Signet trust scoring to applications built with the Vercel AI SDK for trust-aware streaming and agent interactions.

Why integrate Signet with Vercel AI SDK?

The Vercel AI SDK provides React hooks and server-side utilities for building AI-powered applications. Signet integration adds trust verification middleware that checks agent scores before streaming responses or executing agent actions.

Integration steps

Step 1: Install the Signet helper

Add the Signet client to your Next.js or SvelteKit project alongside the Vercel AI SDK.

Step 2: Add trust middleware

Create middleware that verifies agent trust scores before allowing AI SDK function calls to proceed.

Step 3: Display trust badges

Use Signet score data to show trust indicators in your UI alongside AI-generated content.

Step 4: Report user feedback

Connect user feedback signals (thumbs up/down, corrections) to Signet transaction reports for ongoing score improvement.

Code example

import { generateText, tool } from 'ai';

const signetCheck = tool({
  description: 'Verify agent trust score',
  parameters: z.object({ sid: z.string() }),
  execute: async ({ sid }) => {
    const res = await fetch(`https://api.agentsignet.com/score/${sid}/public`);
    return res.json();
  },
});

Ready to integrate?

Apply for API access to start building trust-verified agent interactions with Vercel AI SDK.