@sprucelabs/spruce-cli
Version:
Command line interface for building Spruce skills.
18 lines • 696 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const AbstractStore_1 = __importDefault(require("../../../stores/AbstractStore"));
class AgentStore extends AbstractStore_1.default {
name = 'agent';
async getPlatformAgent() {
const client = await this.connectToApi({
shouldAuthAsCurrentSkill: true,
});
const [{ agent }] = await client.emitAndFlattenResponses('get-agent::v2020_12_25');
return agent;
}
}
exports.default = AgentStore;
//# sourceMappingURL=AgentStore.js.map