Skip to Content
에이전트 시대의 AI 시스템 설계
book

에이전트 시대의 AI 시스템 설계

by 발리아파 락슈마난, 하네스 하프케, 류광
April 2026
Intermediate
592 pages
13h 28m
Korean
Hanbit Media, Inc.
Content preview from 에이전트 시대의 AI 시스템 설계
509
8
장
제약 조건 해결
LLM
기반 대화형 애플리케이션은 이전 턴의 대화 내용을 프롬프트 앞에 붙여 상태 유지를 흉
내 낸다. 예를 들어 파이댄틱
AI
에서는 다음처럼 이전 턴의 메시지를 명시적으로 다음 턴의 요
청에 첨부한다.
result1 = agent.run_sync(...)
result2 = agent.run_sync(..., message_history=result1.new_messages())
작업흐름 에이전트는 현재 상태를 입력으로 받아 요청을 처리하고 증강된 상태를 출력함으로
써 문맥을 유지한다. 다음은 랭그래프에서 그런 식으로 문맥을 유지하는 노드의 예이다.
def some_node(current_state: CurrentState) -> NextState:
next_state = current_state.copy()
...
next_state['confirmed_amount'] = 3450
return next_state
두 방식 모두, 결국은 전체 대화 내역을 프롬프트에 추가해서 기억 능력을 흉내 낸다. 하지만
이러한 접근법에는 한계가 있다. 요즘
LLM
은 컨텍스트 창이 비교적 크지만 (이 글을 쓰는 시점
에 제미나이의 컨텍스트 창은
100
만 토큰이다 ), 사용자의 전체 상호작용 내역을 매번 프롬프
트 앞에 붙이면 비용이 감당할 수 없을 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

메타데이터 관리의 기본 원칙

메타데이터 관리의 기본 원칙

Ole Olesen-Bagneux
그림으로 배우는 생성형 AI

그림으로 배우는 생성형 AI

프리양카 베르가디아, 발리아파 락슈마난
잘되는 머신러닝 팀엔 이유가 있다

잘되는 머신러닝 팀엔 이유가 있다

데이비드 탄, 에이다 양, 데이비드 콜스

Publisher Resources

ISBN: 9791175790490