Back to problems

Implement a ReAct-style Agent Loop with Given APIs

AI Coding · Meta · Hard

Problem: Build a ReAct-Style Agent Loop Using the Supplied APIs Create a simplified ReAct (Reason + Act) execution loop. The system exposes several APIs as functions, and your task is to connect them into an iterative “think / act / observe” process that allows the agent to complete a task. Supplied APIs llm(prompt: str) -> str Produces the model's output for the current prompt. parse(output: str) -> dict Converts the model output into a structured dictionary. It may contain…

Checking your access…