Interfaces for agent work

Runs, tools, approvals. Your app still dey control.

Agent components show records wey the app provide and send requests for action. Your app still dey responsible for running tools, permissions, transport, storage and updates to the data wey e control.

Example

Show di runs wey di host app dey manage and handle requests to cancel dem.

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);

Browse components · Read di guide (for English)