feat: add agent identity verification tool (ERC-8004)#19
Open
up2itnow0822 wants to merge 1 commit intoNVIDIA:mainfrom
Open
feat: add agent identity verification tool (ERC-8004)#19up2itnow0822 wants to merge 1 commit intoNVIDIA:mainfrom
up2itnow0822 wants to merge 1 commit intoNVIDIA:mainfrom
Conversation
Adds an agent identity and reputation verification tool for NeMo Agent Toolkit using ERC-8004 on-chain identity registries. Before an agent transacts with or delegates to another agent, this tool: - Queries the ERC-8004 registry for on-chain identity (ERC-721 token) - Checks reputation score against a configurable threshold - Verifies advertised capabilities match requirements - Detects revoked or expired identities - Returns a TRUST/REJECT/ERROR decision Two tools registered via @register_function: - verify_agent_identity: Full identity + reputation + trust decision - lookup_agent_reputation: Detailed scores and feedback history Includes mock registry server with 4 test agents (trusted, revoked, expired, unknown) for e2e testing without blockchain access. Pairs with the x402_payment_tool for trust-then-transact workflows: verify identity first, then pay for services. Also adds blockchain, subtask, permissionless, counterparty, and lookup to Vale's accept.txt for Web3/agent terminology. Signed-off-by: up2itnow0822 <up2itnow0822@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an agent identity and reputation verification tool using ERC-8004 on-chain identity registries.
As agents interact with other agents (delegating tasks, purchasing services, sharing data), they need a way to verify who they're dealing with before transacting. This tool provides that trust layer.
Tools
verify_agent_identity— Full identity verification pipeline:lookup_agent_reputation— Detailed reputation lookup:Pattern
Same structure as
x402_payment_tool:@register_functionwithFunctionBaseConfigsubclassnat.componentsentry point registrationreact_agentworkflow config with NIM LLMTesting
Mock registry server includes 4 test agents:
0x1234...56780xdead...beef0xaaaa...aaaa0x0000...0000Files
CI
Pre-commit (yapf, ruff, uv-lock, markdown-link-check), Vale, and copyright checks all passing locally.
Relationship to x402_payment_tool
Pairs with the x402 payment tool for trust-then-transact workflows: verify an agent's identity and reputation first, then pay for their service.