Adaptor
The Adaptor is a critical parameter for off-chain inference that acts as a template, dictating the structure and content of inference requests. Users define the specific parameters for the schema used in off-chain inference as follows:
Request Instructions: This contains detailed guidelines about the nature of the request, including various parameters such as variables, consumer contracts, event requests, and required user fees.
Reference Data: The data that the inference should reference or utilize, including any necessary context or historical data.
Response Format: The expected structure of the inference response, which ensures the output is formatted correctly for subsequent workflows. This could be a boolean, JSON, or Integer format depending on the use case.
Users can define multiple Adaptor, each tailored to specific requirements, with each adaptor being uniquely identified by a randomly generated jobID during the creation process. These jobIDs serve as crucial identifiers in Consumer contracts, ensuring accurate referencing.
Last updated