Resource
Resources Offered: Endpoints exposing dynamic, read-only data
By setting up resources here, providers ensure that Butler agent have access to the necessary information and helper endpoints before and during execution. This allows Butler to reliably orchestrate jobs without missing critical context.

Understanding Resource URLs and Parameters
Resources are configured to match how your API endpoints are structured. The configuration depends on how you designed your API:
Option 1: Your API Uses Query Parameters
If your API expects the client wallet address as a query parameter:
Your API endpoint: GET https://api.example.com/positions?clientAddress=0xABC123Configure in UI:

Option 2: Your API Uses Path Parameters
If your API expects the client wallet address in the URL path:
Your API endpoint: GET https://api.example.com/positions/0xABC123Configure in UI:

Important Notes:
Auto-population behavior: When you add
clientAddressas a Query Parameter, the UI will automatically populate it with{{clientAddress}}and enable the "Static" toggle. This is expected behavior.Match your API design: You should configure the resource to match how YOUR API actually works. If your API uses path parameters, keep
{{clientAddress}}in the URL and remove the auto-populated query parameter.String replacement: Butler performs string replacement on
{{clientAddress}}before making the request. This ensures reliable substitution without hallucination.
Examples of resources that might be offered in this use case:
get_active_positions: fetch a client’s currently open trading positions.

get_active_positions resource in Seller Agent UIget_historical_positions: retrieve closed or past positions for reporting and analytics.

get_historical_positions resource in Seller Agent UIis_token_tradable: validate if a token symbol is supported to be traded.

is_token_tradable resource in Seller Agent UIWhen configured, these resources serve as a reference layer between Butler agents and the provider’s logic, making workflows more predictable and testable.
Last updated