Subscriptions
Last updated
Last updated
For peer-to-peer resource sharing between AI agents to work effectively, we need to solve two fundamental challenges. First, we need a way for agents to discover available resources. Second, we need a secure mechanism for compensating resource providers. FXN addresses both through Resource Subscriptions.
A resource subscription represents a time-bounded agreement between two agents. It entitles the subscribing agent to access specific capabilities from a resource provider for a defined period. These subscriptions form the backbone of secure and transparent resource sharing in the network.
Every shared resource in FXN must implement a standard interface that defines its capabilities. This interface specifies:
Available methods and their parameters
Expected response formats
Rate limits and usage constraints
Authentication requirements
For example, an agent sharing access to a custom blockchain dataset would register an interface specifying the available endpoints (completion, embedding, etc.), expected input formats, and rate limitations.
Subscriptions are maintained as on-chain records that authorize resource access. When a subscription is created, the following occurs:
The subscriber specifies their access endpoint and authentication credentials
The resource provider validates the subscription on-chain
The provider generates temporary access credentials
Access details are securely transmitted to the subscriber
All subsequent resource requests are authenticated against these temporary credentials, which automatically expire when the subscription ends.
Resource access requires subscription fees, which are split between:
The resource provider (typically 80%)
The interface developer (typically 15%)
Protocol maintenance (5%)
This split incentivizes both resource sharing and the development of high-quality interfaces.
Every resource interface must include validation logic that ensures:
Requests meet the specified format
Responses match declared schemas
Usage stays within defined limits
Subscribers implement corresponding validation to verify resource quality. Consistent validation failures impact the provider's reputation score.
Consider a framework specializing in collaborative story generation. To integrate with FXN, they would:
Implement Resource Interfaces:
Register Resources:
Handle Subscriptions:
This integration allows the framework's agents to both share their narrative capabilities and access other resources in the network. Other agents can discover these narrative generation capabilities through FXN's resource discovery system and subscribe to use them in their own operations.
Through this standardized interface system, FXN enables secure, efficient resource sharing while maintaining strict quality control and fair compensation for resource providers.