설계부터 에이전트 네이티브: 에이전트 애플리케이션을 위한 프로그래밍 언어
Agent-Native by Design: A Programming Language for Agentic Applications
한국어 초록
에이전트 애플리케이션을 구축하려면 대규모 언어 모델(LLM) 연산, 워크플로 구조와 애플리케이션 상태, 그리고 모델 기반 라우팅을 결합해야 한다. SDK와 에이전트 프레임워크를 사용할 때 개발자는 모델 입력을 준비하고 상태를 전파하며 모델이 선택한 단계를 디스패치하는 보조 코드를 통해 이러한 구성 요소를 연결한다. 워크플로가 바뀌면 이 코드를 조율하여 수정해야 할 수 있어 개발 및 테스트 노력이 늘어난다. 또한 실행 로직이 애플리케이션 코드와 프레임워크 내부로 나뉘어 있으면 컴파일러가 제어 흐름과 상태 의존성을 파악하기 어려워 자동 최적화가 저해된다. 본 연구에서는 이 세 구성 요소를 공유된 실행 의미론으로 통합하는 에이전트 네이티브 프로그래밍(Agent-Native Programming)을 제안한다. 이 접근법을 Python 상위집합 언어인 Jac에서 구현하였으며, 타입이 지정된 모델 연산과 도구 사용을 위한 "by llm()", 워크플로 구조와 상태를 위한 객체-공간 프로그래밍(Object-Spatial Programming), 모델 기반 라우팅을 위한 "visit ... by llm()"을 통해 실현한다. 라우팅 구문은 실행 가능한 워크플로 단계로부터 모델의 선택지를 도출하고 선택된 단계를 스케줄링한다. 모델의 결정과 프로그램 실행 사이의 이러한 명시적 연결은 컴파일러와 런타임에 의존성 분석과 자동 최적화를 위한 공통 기반을 제공한다. 다섯 가지 벤치마크와 다섯 가지 기준선에서, Jac은 OpenAI SDK 대비 AI 통합 코드를 1.8~8.7배 줄였으며, 관찰된 작업 품질은 대등하고 코딩 에이전트의 개발 노력은 더 낮았다. 두 가지 사례 연구는 프로그램 분석과 런타임 검사를 사용해 명시된 조건에서 워크플로 동작을 보존하면서, 설정만으로 투기적 실행과 서비스 분할을 구현할 수 있음을 보여준다.
원문 초록
Building agentic applications requires combining large language model (LLM) operations, workflow structure and application state, and model-guided routing. With SDKs and agent frameworks, developers connect these components through supporting code that prepares model inputs, propagates state, and dispatches model-selected steps. Workflow changes can require coordinated updates to this code, increasing development and testing effort. Splitting execution logic between application code and framework internals also limits compiler visibility into control flow and state dependencies, hindering automatic optimization. We introduce Agent-Native Programming, which unifies these three components with shared execution semantics. We realize this approach in Jac, a Python-superset language, through "by llm()" for typed model operations and tool use, Object-Spatial Programming for workflow structure and state, and "visit ... by llm()" for model-guided routing. The routing construct derives the model's choices from executable workflow steps and schedules the selected steps. This explicit connection between model decisions and program execution gives the compiler and runtime a common basis for dependency analysis and automatic optimization. Across five benchmarks and five baselines, Jac achieves a 1.8-8.7x reduction in AI-integration code relative to the OpenAI SDK, with competitive observed task quality and lower coding-agent development effort. Two case studies demonstrate speculative execution and service partitioning through configuration alone, using program analysis and runtime checks to preserve workflow behavior under stated conditions.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.