에이전트 작업을 위한 인터페이스

실행, 도구, 승인. 상태는 앱이 관리합니다.

에이전트 컴포넌트는 호스트가 제공하는 기록을 렌더링하고 액션 요청을 방출합니다. 애플리케이션은 도구 실행, 권한, 전송, 영속성 및 제어된 데이터 업데이트에 대한 책임이 있습니다.

예제

호스트 앱이 관리하는 실행을 표시하고 취소 요청을 처리하세요.

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

컴포넌트 둘러보기 · 가이드 읽기(영어)