๐ Step 9: AI/LLM#329 / 498
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์
๋๋ค
โกVibe coding prompt examples
>_
Implement a simple agent from scratch in TypeScript that uses weather and calculator tools with the ReAct pattern (Thought โ Action โ Observation).
>_
Write a prompt template for a ReAct agent, including tool descriptions, output format, and the conditions for a final answer.
>_
Summarize the differences between ReAct and Function Calling-based agents and how they are used in practice today.
Try these prompts in your AI coding assistant!