When calling SDK/toolkit APIs, always adhere to the documented method signatures and request/response shapes. Don’t pass guessed or stale keyword arguments, and prefer the project’s canonical starter toolkit abstractions for common lifecycle operations.
Application
Example (fixing an API kwarg + payload shape)
# WRONG: list_events(metadata_filter=...) # may raise unexpected keyword argument
# RIGHT: list_events(eventMetadata=[...]) with left/operator/right
recommendation_events = customer_session.list_events(
eventMetadata=[
{
"left": {"metadataKey": "interaction_type"},
"operator": "EQUALS_TO",
"right": {"metadataValue": {"stringValue": "product_recommendation"}},
}
]
)
Checklist for PRs