Run the agent
UI - Palliora Explorer
Go to the Agents tab on Palliora Explorer.
Select the agent you want to run.
Pay the Palliora tokens required for running that agent.
You will be redirected to a chat UI where you can start interacting with the agent.
CLI
Use the Palliora indexer to fetch the
agentRefciphertext's using the API call:Implement an API to do the following: Fetch the blockHt & extrinsic from agentConfigRef: ``` statescan-polkadot-agent -> registry collection -> Agent doc.agentConfigRef -> blockHt ``` Use the blockHt & extrinsic to get the agent ciphertext data ``` statescan-polkadot-data -> blob collection -> "indexer.blockHeight": blockHt -> data ```Once you have the
agentConfigciphertext, run the following cmd from Palliora CLInode mindcrypt-cli/dist run-agent --agentRef ${agentRefCipherText}This will emit a
daccRunAgentevent to notify the guardian network's calculator nodes to run the agent.The guardian network will perform threshold decryption on the agent's ciphertext which will expose the agent container reference and .env variables to the node.
The calculator node will then be able to pull the agent container image, serve the model required by the agent through ollama and execute
docker runfor the agent to start running.The node will also expose an access url for your client to establish a connection with the agent, which will be encrypted against the client's public key.
You can fetch the result of the run agent call from the
daccComputeResultevent, decrypt thedatato get theaccessURL. This should be a websocket URL.Use the
accessURLto establish a direct connection with your agent and start interacting!
Last updated