[
    {
        "inputs": [],
        "stateMutability": "nonpayable",
        "type": "constructor"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "target",
                "type": "address"
            }
        ],
        "name": "AddressEmptyCode",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "implementation",
                "type": "address"
            }
        ],
        "name": "ERC1967InvalidImplementation",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "ERC1967NonPayable",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "FailedCall",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "InvalidInitialization",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "NotInitializing",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "owner",
                "type": "address"
            }
        ],
        "name": "OwnableInvalidOwner",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "account",
                "type": "address"
            }
        ],
        "name": "OwnableUnauthorizedAccount",
        "type": "error"
    },
    {
        "inputs": [],
        "name": "UUPSUnauthorizedCallContext",
        "type": "error"
    },
    {
        "inputs": [
            {
                "internalType": "bytes32",
                "name": "slot",
                "type": "bytes32"
            }
        ],
        "name": "UUPSUnsupportedProxiableUUID",
        "type": "error"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "clientAddress",
                "type": "address"
            },
            {
                "indexed": true,
                "internalType": "uint64",
                "name": "feedbackIndex",
                "type": "uint64"
            }
        ],
        "name": "FeedbackRevoked",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "uint64",
                "name": "version",
                "type": "uint64"
            }
        ],
        "name": "Initialized",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "clientAddress",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "uint64",
                "name": "feedbackIndex",
                "type": "uint64"
            },
            {
                "indexed": false,
                "internalType": "uint8",
                "name": "score",
                "type": "uint8"
            },
            {
                "indexed": true,
                "internalType": "string",
                "name": "tag1",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "string",
                "name": "tag2",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "string",
                "name": "endpoint",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "string",
                "name": "feedbackURI",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "bytes32",
                "name": "feedbackHash",
                "type": "bytes32"
            }
        ],
        "name": "NewFeedback",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "address",
                "name": "previousOwner",
                "type": "address"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "newOwner",
                "type": "address"
            }
        ],
        "name": "OwnershipTransferred",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "clientAddress",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "uint64",
                "name": "feedbackIndex",
                "type": "uint64"
            },
            {
                "indexed": true,
                "internalType": "address",
                "name": "responder",
                "type": "address"
            },
            {
                "indexed": false,
                "internalType": "string",
                "name": "responseURI",
                "type": "string"
            },
            {
                "indexed": false,
                "internalType": "bytes32",
                "name": "responseHash",
                "type": "bytes32"
            }
        ],
        "name": "ResponseAppended",
        "type": "event"
    },
    {
        "anonymous": false,
        "inputs": [
            {
                "indexed": true,
                "internalType": "address",
                "name": "implementation",
                "type": "address"
            }
        ],
        "name": "Upgraded",
        "type": "event"
    },
    {
        "inputs": [],
        "name": "UPGRADE_INTERFACE_VERSION",
        "outputs": [
            {
                "internalType": "string",
                "name": "",
                "type": "string"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "address",
                "name": "clientAddress",
                "type": "address"
            },
            {
                "internalType": "uint64",
                "name": "feedbackIndex",
                "type": "uint64"
            },
            {
                "internalType": "string",
                "name": "responseURI",
                "type": "string"
            },
            {
                "internalType": "bytes32",
                "name": "responseHash",
                "type": "bytes32"
            }
        ],
        "name": "appendResponse",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            }
        ],
        "name": "getClients",
        "outputs": [
            {
                "internalType": "address[]",
                "name": "",
                "type": "address[]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getIdentityRegistry",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "address",
                "name": "clientAddress",
                "type": "address"
            }
        ],
        "name": "getLastIndex",
        "outputs": [
            {
                "internalType": "uint64",
                "name": "",
                "type": "uint64"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "address",
                "name": "clientAddress",
                "type": "address"
            },
            {
                "internalType": "uint64",
                "name": "feedbackIndex",
                "type": "uint64"
            },
            {
                "internalType": "address[]",
                "name": "responders",
                "type": "address[]"
            }
        ],
        "name": "getResponseCount",
        "outputs": [
            {
                "internalType": "uint64",
                "name": "count",
                "type": "uint64"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "address[]",
                "name": "clientAddresses",
                "type": "address[]"
            },
            {
                "internalType": "string",
                "name": "tag1",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "tag2",
                "type": "string"
            }
        ],
        "name": "getSummary",
        "outputs": [
            {
                "internalType": "uint64",
                "name": "count",
                "type": "uint64"
            },
            {
                "internalType": "uint8",
                "name": "averageScore",
                "type": "uint8"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "getVersion",
        "outputs": [
            {
                "internalType": "string",
                "name": "",
                "type": "string"
            }
        ],
        "stateMutability": "pure",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "uint8",
                "name": "score",
                "type": "uint8"
            },
            {
                "internalType": "string",
                "name": "tag1",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "tag2",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "endpoint",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "feedbackURI",
                "type": "string"
            },
            {
                "internalType": "bytes32",
                "name": "feedbackHash",
                "type": "bytes32"
            }
        ],
        "name": "giveFeedback",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "identityRegistry_",
                "type": "address"
            }
        ],
        "name": "initialize",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "owner",
        "outputs": [
            {
                "internalType": "address",
                "name": "",
                "type": "address"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "proxiableUUID",
        "outputs": [
            {
                "internalType": "bytes32",
                "name": "",
                "type": "bytes32"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "address[]",
                "name": "clientAddresses",
                "type": "address[]"
            },
            {
                "internalType": "string",
                "name": "tag1",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "tag2",
                "type": "string"
            },
            {
                "internalType": "bool",
                "name": "includeRevoked",
                "type": "bool"
            }
        ],
        "name": "readAllFeedback",
        "outputs": [
            {
                "internalType": "address[]",
                "name": "clients",
                "type": "address[]"
            },
            {
                "internalType": "uint64[]",
                "name": "feedbackIndexes",
                "type": "uint64[]"
            },
            {
                "internalType": "uint8[]",
                "name": "scores",
                "type": "uint8[]"
            },
            {
                "internalType": "string[]",
                "name": "tag1s",
                "type": "string[]"
            },
            {
                "internalType": "string[]",
                "name": "tag2s",
                "type": "string[]"
            },
            {
                "internalType": "bool[]",
                "name": "revokedStatuses",
                "type": "bool[]"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "address",
                "name": "clientAddress",
                "type": "address"
            },
            {
                "internalType": "uint64",
                "name": "index",
                "type": "uint64"
            }
        ],
        "name": "readFeedback",
        "outputs": [
            {
                "internalType": "uint8",
                "name": "score",
                "type": "uint8"
            },
            {
                "internalType": "string",
                "name": "tag1",
                "type": "string"
            },
            {
                "internalType": "string",
                "name": "tag2",
                "type": "string"
            },
            {
                "internalType": "bool",
                "name": "isRevoked",
                "type": "bool"
            }
        ],
        "stateMutability": "view",
        "type": "function"
    },
    {
        "inputs": [],
        "name": "renounceOwnership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "uint256",
                "name": "agentId",
                "type": "uint256"
            },
            {
                "internalType": "uint64",
                "name": "feedbackIndex",
                "type": "uint64"
            }
        ],
        "name": "revokeFeedback",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "newOwner",
                "type": "address"
            }
        ],
        "name": "transferOwnership",
        "outputs": [],
        "stateMutability": "nonpayable",
        "type": "function"
    },
    {
        "inputs": [
            {
                "internalType": "address",
                "name": "newImplementation",
                "type": "address"
            },
            {
                "internalType": "bytes",
                "name": "data",
                "type": "bytes"
            }
        ],
        "name": "upgradeToAndCall",
        "outputs": [],
        "stateMutability": "payable",
        "type": "function"
    }
]
