Skip to Content
그림으로 배우는 생성형 AI
book

그림으로 배우는 생성형 AI

by 프리양카 베르가디아, 발리아파 락슈마난, 류광
April 2026
Intermediate
348 pages
8h 22m
Korean
Hanbit Media, Inc.
Content preview from 그림으로 배우는 생성형 AI
242
그림으로 배우는 생성형 AI
model = ChatVertexAI(
model="gemini-2.5-flash"
)
agent_executor = create_react_agent(
model,
[calculate]
)
다음으로
,
필요에 따라 도구를 사용하게 하는 프롬프
트를 지정해서 에이전트를 실행합니다
.
prompt_message = HumanMessage(content
="""
당신은 적절한 수학 공식을 작성해서
질문에 요청된 수치를 계산할 수 있는
금융 전문가입니다.
질문:
주식 시장에 1,000달러를 투자하고 연
수익률이 7%이며 수익을 재투자한다면,
6년 후에는 얼마의 돈을 갖게 될까요?
답변:
"""
)
response = agent_executor.invoke(
{"messages": [prompt_message]})
주어진 질문에 대해
LLM
은 다음과 같은 공식을 생성
합니다
.
principal * (1 + rate) ^ years
에이전트는 이 공식과 다음의 입력 매개변수들로
calculate
도구를 호출해서 계산을 수행합니다
.
{"principal": 1000.0, "rate": 0.07,
"years": 6.0}
그러면 정확한 결과인 $
1
,
500
.
73
이 산출됩니다
.
4.7.3 ReAct 기법
이 예제에서 에이전트는 도구를 사용하는 방법을
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 시스템 설계

발리아파 락슈마난, 하네스 하프케
자바 개발자를 위한 데브옵스 툴

자바 개발자를 위한 데브옵스 툴

스티븐 친, 멜리사 맥케이, 익스헬 루이츠, 바루크 사도구르스키

Publisher Resources

ISBN: 9791175790476