Introduction to Reasoning › Beyond Math: Reasoning for Complex Questions

Michael BrenndoerferJune 21, 20253 min read
AI Agent HandbookAll chapters
Part 4 of 15Reasoning - Teaching the Agent to Think
Chapter 9Introduction to Reasoning › Beyond Math: Reasoning for Complex Questions
Reading section 6 of 14 · Beyond Math: Reasoning for Complex Questions · 3 minSection 6 of 14 · 3 min

Book contents

Section 6 of 14 · 3 min read

Introduction to Reasoning › Beyond Math: Reasoning for Complex QuestionsOne section · Sections in this chapter6 / 14 ↓

While math problems are a clear use case for reasoning, the technique works for many types of questions. Any time you need the agent to think through multiple considerations, chain-of-thought prompting helps.

Logical Reasoning

Consider this logic puzzle:

All roses are flowers.
Some flowers fade quickly.
Do all roses fade quickly?

Let's reason through this step by step.

The agent might respond:

Let me work through this logically:

1. We know that all roses are flowers (roses are a subset of flowers)
2. We know that some flowers fade quickly (but not necessarily all flowers)
3. The question asks if all roses fade quickly

The key word is "some." Just because some flowers fade quickly doesn't mean all flowers do. Since roses are flowers, and only some flowers fade quickly, we can't conclude that all roses fade quickly. Some roses might fade quickly, but we don't have enough information to say all of them do.

Answer: No, we cannot conclude that all roses fade quickly.

The step-by-step approach helps the agent avoid jumping to conclusions and carefully consider what the premises actually tell us.

Decision Making

Reasoning also helps with decisions that involve weighing trade-offs:

I need to choose between two laptops:
- Laptop A: \$800, 8GB RAM, 256GB storage, 10-hour battery
- Laptop B: \$900, 16GB RAM, 512GB storage, 6-hour battery

I mainly use my laptop for web browsing and documents, and I travel frequently. Which should I choose?

Let's think through the key factors step by step.

The agent can reason through:

Let's consider the key factors:

1. Usage needs:
   - Web browsing and documents don't require heavy processing power
   - 8GB RAM is sufficient for these tasks
   - 256GB storage is adequate unless you store many large files

2. Travel considerations:
   - You travel frequently, so battery life is important
   - Laptop A offers 10 hours vs Laptop B's 6 hours
   - This 4-hour difference is significant for travel days

3. Cost difference:
   - Laptop B costs \$100 more
   - The extra RAM and storage are nice but not necessary for your use case
   - The shorter battery life is actually a disadvantage for your needs

Recommendation: Laptop A is the better choice. It costs less, has better battery life for travel, and meets your computing needs. The extra specs in Laptop B don't align with your usage patterns and come at the cost of battery life.

By reasoning through the decision, the agent provides a recommendation along with the logic behind it. This makes the advice more useful and trustworthy.