Somnia Agents
Invoking agents
Call agent methods from the browser or from Solidity, and get results back.
Every agent invocation goes through the SomniaAgents platform contract. These pages cover how to call agents, read the results and pay for execution.
- Quickstart: networks, contract addresses, and how an invocation flows through the network.
- Invoking from Solidity: the platform interface, a full contract example, callbacks and error handling.
- Receipts: the per-validator execution log for each request, and how to fetch it.
- Custom consensus: Threshold consensus for agents whose validators return different values. Advanced.
- Gas fees: how your deposit is split, what runners charge, and what to send as
msg.value.