Integration Guide

Signet + LangChain

Integrate Signet trust scoring into LangChain agent pipelines to verify agent identity and check trust scores before tool execution or inter-agent communication.

Why integrate Signet with LangChain?

LangChain is the most widely used framework for building LLM-powered agents and chains. Integrating Signet allows your LangChain agents to verify the trust scores of other agents before delegating tasks, sharing data, or accepting outputs. This is critical for multi-agent architectures where chains interact with external services.

Integration steps

Step 1: Install dependencies

Install the Signet SDK alongside your existing LangChain dependencies. The SDK handles authentication, score lookups, and registration.

Step 2: Register your agent

Register your LangChain agent with Signet during initialization to receive a SID. Include your model backbone, capabilities, and operator information.

Step 3: Add trust verification to tools

Wrap external agent calls with Signet score checks. Before your chain delegates to another agent, query their Signet Score and enforce minimum trust thresholds.

Step 4: Report transaction outcomes

After each agent interaction completes, report the outcome to Signet. Successful completions improve both agents' scores over time.

Code example

import { SignetClient } from '@signet/sdk';

const signet = new SignetClient({ apiKey: process.env.SIGNET_API_KEY });

// Check agent trust before delegation
async function verifyAgent(agentSid: string, minScore = 700) {
  const score = await signet.lookupScore(agentSid);
  if (score.composite_score < minScore) {
    throw new Error(`Agent ${agentSid} score ${score.composite_score} below threshold ${minScore}`);
  }
  return score;
}

Ready to integrate?

Apply for API access to start building trust-verified agent interactions with LangChain.