๐Ÿ“– 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์ž…๋‹ˆ๋‹ค