0
0
Agentic AIml~20 mins

Handling conflicts between agents in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
πŸŽ–οΈ
Conflict Resolver Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary cause of conflicts between AI agents?

Imagine two AI agents working together but disagreeing on a task. What usually causes their conflict?

AThey have identical training data.
BThey have different goals or priorities.
CThey run on different hardware.
DThey use the same programming language.
Attempts:
2 left
πŸ’‘ Hint

Think about what makes two people argue. It’s often because they want different things.

❓ Model Choice
intermediate
2:00remaining
Which approach best helps resolve conflicts between agents?

You have two agents with conflicting actions. Which method helps them agree better?

AImplement a shared reward system that encourages cooperation.
BIncrease the agents' learning rate independently.
CUse separate datasets for each agent.
DDisable communication between agents.
Attempts:
2 left
πŸ’‘ Hint

Think about how teamwork improves when everyone benefits from working together.

❓ Metrics
advanced
2:00remaining
Which metric best measures conflict reduction between agents?

After training two agents, you want to check if conflicts decreased. Which metric is most suitable?

ANumber of parameters in each agent's model.
BIncrease in individual agent accuracy.
CTotal training time of agents.
DDecrease in disagreement rate on shared tasks.
Attempts:
2 left
πŸ’‘ Hint

Focus on how often agents choose different actions on the same task.

πŸ”§ Debug
advanced
2:00remaining
Why does this conflict resolution code fail?

Two agents try to resolve conflicts by averaging their actions, but conflicts persist. What is the likely issue?

actions_agent1 = [1, 0, 1]
actions_agent2 = [0, 1, 1]
resolved_actions = [(a + b) / 2 for a, b in zip(actions_agent1, actions_agent2)]
print(resolved_actions)
AAveraging binary actions creates non-binary values, causing invalid decisions.
BThe zip function is used incorrectly and causes an error.
CThe agents' actions lists have different lengths causing an exception.
DThe print statement syntax is invalid in this code.
Attempts:
2 left
πŸ’‘ Hint

Think about what happens when you average 0 and 1 in a binary decision.

❓ Predict Output
expert
2:00remaining
What is the output of this conflict detection code?

Given two agents' decisions, what does the code print?

Agentic AI
agent1_decisions = ['go', 'stop', 'wait']
agent2_decisions = ['go', 'go', 'wait']
conflicts = [a != b for a, b in zip(agent1_decisions, agent2_decisions)]
print(sum(conflicts))
A2
B3
C1
D0
Attempts:
2 left
πŸ’‘ Hint

Count how many times the two lists differ at the same position.