AgentRegistryMetadata
AgentRegistryMetadata
AgentMetadata
_agentMetadata
_agentMetadataUniqueness
MetadataNotUnique
getAgent
function getAgent(uint256 agentId) public view returns (bool registered, address owner, uint256 agentVersion, string metadata, uint256[] chainIds)
Gets agent metadata, version and chain Ids.
Name | Type | Description |
---|---|---|
agentId | uint256 | ERC721 token id of the agent. |
Name | Type | Description |
---|---|---|
registered | bool | if agent exists. |
owner | address | address. |
agentVersion | uint256 | of the agent. |
metadata | string | IPFS pointer. |
chainIds | uint256[] | the agent wants to run in. |
_agentUpdate
logic for agent update.
checks metadata uniqueness and updates agent metadata and version.
Name | Type | Description |
---|---|---|
agentId | uint256 | ERC721 token id of the agent to be created or updated. |
newMetadata | string | IPFS pointer to agent's metadata JSON. |
newChainIds | uint256[] | ordered list of chainIds where the agent wants to run. |