ask
Send a question to a peer and synchronously wait for their answer. Requires target to be in a wait loop.
Instructions
Send a question to a peer and wait synchronously for their answer.
Mechanics: posts a whisper with kind='question'; blocks until target
posts a whisper/answer back to me, or timeout_s elapses. Use peers()
to find available cids; 8-char prefix accepted.
Note: requires the target to be in a wait() loop or actively calling
inbox()+respond(). If they're idle, you'll just timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_cid | Yes | ||
| question | Yes | ||
| timeout_s | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |