๐ Step 9: AI/LLM#329 / 350
ReAct
ReAct (Reasoning + Acting)
๐One-line summary
An agent pattern that alternates between reasoning and acting to solve problems.
๐กEasy explanation
An agent pattern: 'Reason โ Act โ observe result โ Reason againโฆ' in a loop. It mirrors how humans naturally solve problems.
โจExample
์ถ๋ก โ ํ๋ โ ๋ฐ๋ณต
๐คReason: ๋ ์จ API๋ฅผ ํธ์ถํด์ผ๊ฒ ๋ค
โกAct: weather_api('Seoul') ํธ์ถ
๐Observe: ๋ง์, 22ยฐC
๐คReason: ์ด์ ๋ต๋ณํ๋ฉด ๋๊ฒ ๋ค
๐ฌAnswer: ์์ธ์ ๋ง๊ณ 22ยฐC์
๋๋ค