콘텐츠로 이동

Agent

spakky-agent으로 LLM 실행과 도구 호출을 Spakky 애플리케이션 안에 넣는 채널입니다. Agent는 외부 런타임이 아니라 하나의 애플리케이션 컴포넌트로 다뤄집니다.

처음이라면 AI Agent 개발로 시작하세요. 실제 provider를 제품 코드와 분리하려면 LLM 모델 라우팅에서 logical ref와 connection profile을 구성하세요. 운영형 Agent로 확장할 때 필요한 도구·승인·durable 실행은 AI Agent 심화에서 다룹니다. 기존 지식을 model context나 검색 tool로 연결하려면 Agent RAG를 선택하세요. AG-UI·A2A stream adapter와 MCP tool adapter는 어댑터 항목에서 이어집니다. 장기 memory, offline evaluation, cost budget과 privacy-safe telemetry는 Agent 운영에서 묶어 설명합니다. 생성 중 사용자 입력을 수정하거나 음성 중간 결과를 확정·철회하려면 실행 중 지시 수정을 확인하세요.

기초

문서 무엇을 배우나요
AI Agent 개발 @Agent·iterative loop·typed output/context·multimodal attachment로 Agent 만들기
LLM 모델 라우팅 opaque model ref, explicit fallback/resilience/cache/media policy 구성, OpenAI Responses API와 ChatGPT 로그인
Agent RAG 하나의 IRetriever를 classic context 또는 agentic tool로 주입하기
CodeAssistant 에이전트 예제 실제 Agent 흐름을 예제로 따라가기

심화

문서 무엇을 배우나요
AI Agent 심화 whole-batch authority·structured materialization·context provenance/privacy·durable/protocol 경계
실행 중 지시 수정 입력 revision·잠정 입력·모델 취소·출력 무효화·비영속 입력 복원
Agent 운영 scoped memory·offline evaluation·pricing/cost·Agent telemetry 구성

어댑터

선언형 Agent는 여러 adapter와 함께 사용할 수 있습니다. AG-UI와 A2A는 AgentRunner.run_events()가 내보내는 protocol-neutral AgentEvent stream을 각 wire protocol event로 투영합니다. MCP는 event stream을 소비하지 않고 run마다 선택된 외부 MCP server tools를 lazy search/call 도구로 AgentToolCatalog에 합류시킵니다.

문서 무엇을 다루나요
AG-UI 어댑터 AG-UI 프로토콜로 Agent 실행을 UI에 스트리밍
A2A 어댑터 A2A(Agent-to-Agent) 프로토콜 연동
MCP 어댑터 외부 MCP server tools를 Agent run에 연결

API Reference

문서 무엇을 확인하나요
spakky-agent runner, multimodal content/checkpoint, retrieval/memory, evaluation, pricing/telemetry 계약
spakky-llm logical routing, fallback/resilience/cache/media와 optional provider ports
spakky-agui Multimodal inbound, AG-UI endpoint/projector, HITL, stdio helpers
spakky-a2a Multimodal inbound, AgentCard, server/executor, REST/gRPC, delegation
spakky-mcp 외부 MCP 서버 연결, runtime server resolution, lazy MCP tool search/call