Interfaces for agent work
Runs, tools, and approvals. Your app stays in control.
Agent components render host-supplied records and emit action requests. Your application remains responsible for tool execution, permissions, transport, persistence, and updates to controlled data.
Example
Display host-managed runs and handle cancellation requests.
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);