Skill 2.1.2
Create advanced problem-solving systems to give FMs the ability to break down and solve complex problems by following structured reasoning steps (for example, by using Step Functions to implement ReAct patterns and chain-of-thought reasoning approaches)
Key Concepts
The ReAct (reason and act) pattern alternates a thought (what to do next), an action (a tool call) and an observation (the tool's result) until the model can answer. In Step Functions, a loop is built from a Task state that invokes Bedrock with the conversation so far, a Choice state that checks whether the model requested a tool or produced a final answer, a Task state that runs the tool through Lambda, and a counter that caps the number of iterations.
Chain-of-thought prompting asks the model to reason step by step before answering. In a workflow, reasoning can be split into explicit stages, such as plan, execute each step, verify and summarise, each a separate model call whose output is validated before the next. Step Functions provides visibility into every step, built-in retries and an execution history for auditing.