You are building an agentic solution using Microsoft Semantic Kernel. The agent must autonomously decide when to call an external API to fetch real-time data. You want to minimize token usage and avoid unnecessary API calls. Which planner configuration should you use?
Trap 1: Use a ManualInvoke kernel with a sequential planner
Manual invoke prevents autonomous operation.
Trap 2: Use a ParallelPlanner with a function-calling model
Parallel planner increases token usage.
Trap 3: Use an AutoInvoke kernel with a greedy action planner
Greedy planning may invoke APIs unnecessarily.
- A
Use a SequentialPlanner with a stepwise strategy and explicit function parameter constraints
Stepwise strategy ensures API is called only when needed.
- B
Use a ManualInvoke kernel with a sequential planner
Why wrong: Manual invoke prevents autonomous operation.
- C
Use a ParallelPlanner with a function-calling model
Why wrong: Parallel planner increases token usage.
- D
Use an AutoInvoke kernel with a greedy action planner
Why wrong: Greedy planning may invoke APIs unnecessarily.