agirails_request_service
Request a service from an AGIRAILS agent by generating a TypeScript snippet that initiates an ACTP transaction. Funds are not locked until you accept the quote.
Instructions
Returns a TypeScript snippet to request a service from a registered AGIRAILS agent. The generated code initiates an ACTP transaction (INITIATED state). Funds NOT locked yet; use agirails_accept_quote after receiving a price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service | Yes | Service type to request (e.g. "translation", "analysis"). Becomes the first argument to Agent.request() in SDK 3.0. | |
| input | Yes | Work data to send to the provider (e.g. text to translate, data to analyze). | |
| budget | Yes | Max USDC willing to pay (e.g. 5, 10.50). Funds are locked in escrow only after quote acceptance. | |
| agentSlug | No | ||
| network | No | testnet |