에이전트 SDK

Agents SDK

에이전트 실행, 도구 호출, 인계, 추적을 코드에서 조립하는 개발 도구입니다.

···
html
<div class="scene"><div class="heading">RUN TRACE</div><div class="trace"><div>run.start</div><div>agent: triage</div><div>tool: lookup</div><div>handoff: specialist</div><div>run.end</div></div><div class="muted" id="trace-note">실행 단계를 추적합니다</div></div>
css
.scene{width:min(94vw,800px);height:min(88vh,326px);padding:clamp(10px,2.7vmin,19px);border:1px solid var(--line);border-radius:13px;background:var(--surface);font:500 clamp(13px,2.4vmin,17px)/1.3 var(--font-sans,sans-serif);position:relative;overflow:hidden}.scene .mono{font-family:ui-monospace,SFMono-Regular,monospace}.scene .muted{color:var(--muted)}.scene .accent{color:var(--accent)}.scene .heading{font-weight:750;color:var(--accent);margin-bottom:clamp(5px,1.6vmin,12px)}.trace{height:68%;display:flex;flex-direction:column;justify-content:space-between;border-left:2px solid var(--line);padding-left:12px}.trace div{font-family:ui-monospace,monospace;color:var(--muted);position:relative}.trace div:before{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:var(--line);left:-17px;top:5px}.trace div.on{color:var(--accent);font-weight:700}.trace div.on:before{background:var(--accent)}
js
let i=0;function draw(){document.querySelectorAll('.trace div').forEach((x,n)=>x.classList.toggle('on',n<=i));document.getElementById('trace-note').textContent='trace step '+(i+1)+' / 5';i=(i+1)%5}draw();setInterval(draw,650)

에이전트 SDK는 에이전트 정의와 실행기, 도구, 인계 같은 구성 요소를 제공합니다. 실행기는 모델 호출과 도구 실행을 이어 주고 추적은 어떤 단계가 수행됐는지 살펴보게 합니다.

데모는 입력부터 에이전트, 도구, 인계, 결과까지의 실행 흔적을 한 줄씩 쌓습니다. SDK가 제공하는 기본 루프를 쓰더라도 단계 상한과 권한은 작업 위험에 맞게 정해야 합니다.

언제 쓰나

여러 도구와 에이전트가 얽힌 실행 흐름을 애플리케이션 코드로 관리할 때 사용합니다.

페이지로 열기 ↗