afv-library/skills/generating-eval-seed-data/tests/evals/generating-eval-seed-data-apex-callout/gold/classes/RestClient.cls
ysachdeva-sfdc 808127c03a
@W-22335628 add generating-eval-seed-data skill (#237)
* feat: add generating-eval-seed-data skill

New skill that generates minimal seed-data stubs (custom fields, objects,
Apex class stubs) for evaluation datasets in the afv-library. Adapted from
the adk-eval-seed-data-generator with afv-library conventions and all
PR #194 review feedback addressed (scoped allowed-tools, no hardcoded
paths, progressive disclosure, skills referenced by name).

* fix: replace stub eval data with real adk-core datasets

Replace fabricated eval stubs with actual gold files and seed-data from
adk-core: payment_overdue (formula field), AssetFedexValidationRule
(validation rule with lookup deps), QueueableWithCalloutRecipes (Apex
with class dependencies).

* fix: remove related-skills from generating-eval-seed-data frontmatter

* fix: use detailed allowed-tools command signatures

* fix: scope allowed-tools to sf project deploy start only

* fix: change stage from Draft to Pilot
2026-05-05 13:13:46 +05:30

21 lines
481 B
OpenEdge ABL

public with sharing class RestClient {
public enum HttpVerb {
GET,
POST,
PUT,
PATCH,
DEL
}
public static HttpResponse makeApiCall(
String namedCredential,
HttpVerb method,
String path
) {
HttpRequest request = new HttpRequest();
request.setEndpoint('callout:' + namedCredential + '/' + path);
request.setMethod(method.name());
return new Http().send(request);
}
}