tessl install tessl/pypi-azure-servicebus@7.14.0Microsoft Azure Service Bus Client Library for Python providing comprehensive messaging capabilities for enterprise applications.
Agent Success
Agent success rate when using this tile
92%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
91%
Build a message inspection utility that allows viewing messages in a queue without removing them.
Your utility should implement the following functionality:
Create a function that previews messages from a Service Bus queue without consuming them. The function should:
Create a function that inspects messages starting from a specific position in the queue. The function should:
@generates
def preview_queue_messages(connection_string: str, queue_name: str, max_count: int = 10) -> list[dict]:
"""
Preview messages from a queue without removing them.
Args:
connection_string: Azure Service Bus connection string
queue_name: Name of the queue to inspect
max_count: Maximum number of messages to preview (default: 10)
Returns:
List of dictionaries containing message body and properties
"""
pass
def inspect_from_sequence(connection_string: str, queue_name: str, sequence_number: int, max_count: int = 10) -> list[dict]:
"""
Inspect messages starting from a specific sequence number.
Args:
connection_string: Azure Service Bus connection string
queue_name: Name of the queue to inspect
sequence_number: Starting sequence number for inspection
max_count: Maximum number of messages to inspect (default: 10)
Returns:
List of dictionaries containing message body, sequence number, and properties
"""
passProvides Azure Service Bus messaging capabilities for queue operations.