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

AI 에이전트 엔지니어링

by 마이클 알바다, 강민혁
January 2026
Intermediate
404 pages
7h 22m
Korean
Hanbit Media, Inc.
Content preview from AI 에이전트 엔지니어링
104
2
부
에이전트 시스템의 구축과 확장
4.1
랭체인 기초
도구 선택과 오케스트레이션을 더 깊이 다루기 전에 랭체인의 핵심 개념을 이해해 두면 좋습니
다. 랭체인의 중심에는 프롬프트를 처리하고 응답을 생성하는 파운데이션 모델을 감싼 채팅 모
델
chat
model
이 있습니다. 랭체인에서는
init
_
chat
_
model
()
에 모델 이름을 파라미터로 전달해
다양한 제공업체의
LLM
을 동일한 채팅 모델 인터페이스로 초기화할 수 있습니다. 오픈
AI
, 앤
트로픽, 아마존, 구글 등 다양한 제공업체의 모델을 사용할 수 있으며, 각 제공업체별로 대응되
는 랭체인 통합 패키지를 설치한 뒤
init
_
chat
_
model
()
로 초기화합니다.
1
from langchain.chat_models import init_chat_model
llm = init_chat_model(model="gpt-5-mini", temperature=0)
랭체인은 대화 컨텍스트를 유지하기 위해 상호작용을 메시지로 구조화합니다. 주요 메시지 유
형으로 사용자 입력을 나타내는
HumanMessage
와 모델의 응답을 나타내는
AIMessage
, 도구 호
출 결과를 표현하는
ToolMessage
가 있습니다.
from langchain_core.messages import HumanMessage
messages = [HumanMessage("오늘 ...
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