एजेंट के काम खातिर इंटरफ़ेस
चलन, औजार, मंजूरी। नियंत्रण ऐप के हाथ में।
एजेंट घटक ऐप से मिलल रिकॉर्ड देखावेलें आ काम के अनुरोध भेजेलें। औजार चलावल, अनुमति, संचार, संग्रह आ नियंत्रित डेटा अपडेट करे के जिम्मेदारी ऐप के रहेला।
उदाहरण
होस्ट ऐप के प्रबंधन में चले वाला रन देखाईं आ रद्द करे के अनुरोध सँभालीं।
import '@aceshooting/lyra-ui/components/lr-background-runs.js';
const board = document.createElement('lr-background-runs');
board.runs = [{ id: 'index', label: 'Index the project', status: 'running' }];
board.addEventListener('lr-run-cancel', event => {
// Demo only: your app cancels the job and supplies updated records.
console.info('Cancellation requested for', event.detail.runId);
});
document.body.append(board);