AutoGen Integration
Add verifiable identity to AutoGen multi-agent conversations.
Setup
import { register, BeatAgent } from '@provenonce/sdk';
const orchCreds = await register('autogen-orchestrator', {
registryUrl: 'https://provenonce.io',
});
const orchBeat = new BeatAgent({
apiKey: orchCreds.api_key,
registryUrl: 'https://provenonce.io',
});
await orchBeat.init();
orchBeat.startHeartbeat();Adding identity to conversation agents
async function createVerifiedAgent(name: string, parentCreds: any) {
const creds = await register(name, {
registryUrl: 'https://provenonce.io',
parentHash: parentCreds.hash,
parentApiKey: parentCreds.api_key,
});
const beat = new BeatAgent({
apiKey: creds.api_key,
registryUrl: 'https://provenonce.io',
});
await beat.init();
beat.startHeartbeat();
return { creds, beat };
}
const coder = await createVerifiedAgent('coder-agent', orchCreds);
const reviewer = await createVerifiedAgent('reviewer-agent', orchCreds);Each agent’s beat chain proves it was computationally active during the conversation window.
Last updated on