๐Ÿš€ Everything is free โ€” help us improve! Submit feedback and shape the platform.
๐ŸงชTDD Challengeยทbeginnerยทโฑ๏ธ 20โ€“35mยทโญ 125 XP

M-038Build Your First Tool-Calling Agent

Description

Nebula Corp needs a simple agent that can look up customer information using tools. The skeleton is there โ€” a tool registry and an LLM loop โ€” but the agent doesn't actually call any tools yet. Wire up the tool execution so the agent can receive a tool call from the LLM, execute it, and feed the result back into the conversation.

Test Cases (3)

Executes tool call and returns result
Agent should call lookup_customer, get result, and produce a final answer
Input:runAgent('Look up customer C001')
Expected:CONTAINS:FINAL_ANSWER
Chains multiple tool calls
Agent should call lookup_customer then get_plan_details before answering
Input:runAgent('What plan is C001 on and how much does it cost?')
Expected:CONTAINS:FINAL_ANSWER
Handles unknown customer gracefully
Agent should handle missing customer and still produce a final answer
Input:runAgent('Look up customer C999')
Expected:CONTAINS:FINAL_ANSWER

Related Lessons

Click Run / Check to validate your solution