<｜begin▁of▁sentence｜>### Instruction:
Given an edge that starts from vertex 'A', ends at vertex 'B', is directed, and has a weight attribute of 2.5, can you use the GephiGraphStreamingAPIFormat to generate an event for adding this edge to a Gephi graph visualization?
### Response:
from GephiGraphStreamingAPIFormat import GephiGraphStreamingAPIFormat

# Initialize the Gephi Graph Streaming API format helper
gs = GephiGraphStreamingAPIFormat()

# Generate an event to add an edge from vertex 'A' to vertex 'B' with an attribute
edge_event = gs.get_add_edge_event('A', 'B', True, {'weight': 2.5})

# Assuming you have a mechanism to send this to a Gephi server
print(edge_event)
<|EOT|>
