I'm wondering if ReAct is still a thing - it was mentioned in article and whole chapter is in book? From what I experience, current LLMs are able to do it out of box with tool calling or I'm missing something.
The react loop involves both the llm(opus etc.) and harness(claude code,pi etc).
Given a user query, the llm first thinks a bit and then decide to call a tool. It returns a message, something like "call tool: bash ..." This gets intercepted by the harness which actually executes the bash script. Remember that at the end of the day LLMs are text generating models. They don't have any inbuilt capabilities to run anything on their own
But when I look at intercepted Bedrock requests I see tool calls going in and out as part of API and I think things like json validation and tool calls are built quite deep into the LLM runtime, so I'm not sure if that could be called harness, because I can't change that part. I saw the pi system prompt, it does not do anything regarding ReAct, that is why I'm confused. I can do pretty much empty system prompt using just API and still get tool call behavior.
Given a user query, the llm first thinks a bit and then decide to call a tool. It returns a message, something like "call tool: bash ..." This gets intercepted by the harness which actually executes the bash script. Remember that at the end of the day LLMs are text generating models. They don't have any inbuilt capabilities to run anything on their own