Skip to Content
AI 에이전트 엔지니어링
book

AI 에이전트 엔지니어링

by 마이클 알바다, 강민혁
January 2026
Intermediate
404 pages
7h 22m
Korean
Hanbit Media, Inc.
Content preview from AI 에이전트 엔지니어링
149
5
장
오케스트레이션
5.4.4
그래프
여러 의사결정 지점을 포함하는 지원 시나리오에서는 그래프 토폴로지가 체인이나 트리보다
훨씬 더 풍부하게 복잡한 비계층형 플로를 모델링합니다. 선형 체인이나 엄격하게 분기하는 트
리와 달리 그래프 구조에서는 조건부 엣지와 병합 엣지를 모두 정의할 수 있으므로 병렬 경로
가 다시 공유 노드로 합쳐지게 만들 수 있습니다.
그래프의 각 노드는 개별 도구 호출(또는 논리적 단계)을 나타내고,
add
_
conditional
_
edges
로 정의한 엣지는 에이전트가 어떤 조건에서 단계 간을 전이할 수 있는지 명시합니다. 예를 들
어 여러 분기에서 나온 출력을 하나의 다운스트림 노드 (예:
summarize
_
response
)로 통합하
면, 서로 다른 핸들러에서 얻은 결과를 하나의 고객 응답으로 엮어 낼 수 있습니다.
다만 전체 그래프 실행은 일반적으로 체인보다 훨씬 더 많은 파운데이션 모델 호출을 수반하므
로 지연시간과 비용이 증가합니다. 따라서 그래프의 깊이와 분기 수에 상한을 두는 것이 중요
합니다. 또한 사이클, 도달 불가능한 노드, 상충하는 상태 병합 등은 새로운 유형의 오류를 만
들어 내므로 엄격한 검증과 테스트를 통해 관리해야 합니다. 다음은 랭그래프
LangGraph
에서 그래
프를 구현하는 방법에 대한 예시입니다. 전체 코드는
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

AI 프로덕트 기획과 운영

AI 프로덕트 기획과 운영

마릴리 니카
생성형 AI 시각화

생성형 AI 시각화

Priyanka Vergadia, Valliappa Lakshmanan

Publisher Resources

ISBN: 9791175790131