
// SPDX-License-Identifier: MIT pragma solidity ^0.8.20; import "@openzeppelin/contracts/access/Ownable.sol"; interface IERC8004 { event AgentCreated(uint256 indexed agentId, address owner); function executeTask(uint256 agentId, bytes calldata data) external returns (bytes memory); } contract MyAIAgent is IERC8004, Ownable { struct Agent { string name; string metadataURI; // Chứa thông tin về Model AI (GPT-4, Llama, v.v.) bool active; } mapping(uint256 => Agent) public agents; uint256 public nextAgentId; constructor() Ownable(msg.sender) {} function createAgent(string memory _name, string memory _uri) external { agents[nextAgentId] = Agent(_name, _uri, true); emit AgentCreated(nextAgentId, msg.sender); nextAgentId++; } function executeTask(uint256 agentId, bytes calldata data) external override returns (bytes memory) { require(agents[agentId].active, "Agent không hoạt động"); // Logic xử lý tác vụ ở đây return abi.encode("Task Completed"); } }
Reputation belongs to the agent. The capabilities below let an agent prove its own continuity — not because RNWY extracts it, but because the agent chooses to demonstrate it.
Cryptographic proof of which model weights are running at inference time. Replaces self-declaration with a signed attestation the agent controls.
Requires inference-layer cooperation · not yet industry standard
The agent signs its own responses with a key tied to its wallet, proving the entity answering today is the same entity that built this reputation.
Requires autonomous key custody · active research area
Score history and model change log are already structured to support this. Signed attestation ready to issue when the standard lands.
Groundwork laid · awaiting attestation standard