Challenge - 5 Problems
Agent Communication Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What is the main purpose of an agent communication protocol?
In multi-agent systems, why do agents use communication protocols?
Attempts:
2 left
💡 Hint
Think about how agents coordinate and share information.
✗ Incorrect
Agent communication protocols define rules so agents can exchange messages clearly and coordinate actions.
❓ Model Choice
intermediate2:00remaining
Which protocol is best suited for negotiation between agents?
You want agents to negotiate offers and counteroffers to reach an agreement. Which communication protocol fits best?
Attempts:
2 left
💡 Hint
Consider protocols designed for task allocation and bidding.
✗ Incorrect
The Contract Net Protocol allows agents to announce tasks and negotiate bids, ideal for negotiation scenarios.
❓ Predict Output
advanced2:00remaining
What is the output of this agent message parsing code?
Given the code below that parses a message in a simple agent protocol, what will be printed?
Agentic AI
message = 'REQUEST:fetch_data' command, content = message.split(':') if command == 'REQUEST': print(f"Agent received request to {content}") else: print("Unknown command")
Attempts:
2 left
💡 Hint
Look at how the message string is split and used.
✗ Incorrect
The message splits into 'REQUEST' and 'fetch_data'. Since command is 'REQUEST', it prints the formatted string with content.
❓ Metrics
advanced2:00remaining
Which metric best measures communication efficiency in multi-agent protocols?
You want to evaluate how efficiently agents communicate in a system. Which metric is most appropriate?
Attempts:
2 left
💡 Hint
Think about measuring communication cost versus benefit.
✗ Incorrect
Message overhead ratio shows how many messages are needed to exchange useful info, indicating communication efficiency.
🔧 Debug
expert3:00remaining
Why does this agent communication code cause a deadlock?
Two agents use the following code to send and wait for messages. Why does this cause a deadlock?
Agent A:
response = agent_b.send('REQUEST')
result = response.wait()
Agent B:
request = agent_a.receive()
agent_a.send('RESPONSE')
Options:
Attempts:
2 left
💡 Hint
Consider the order of send and wait calls and how agents block.
✗ Incorrect
Agent A sends a request and immediately waits for a response. Agent B waits to receive before sending. If Agent A's wait blocks Agent B's receive, both wait forever causing deadlock.