utils Module

Functions

get_caller_pairs

get_caller_pairs(activity: Activity) -> Iterator[tuple[str, Any]]

Parameters

Name Description
activity
Required

get_channel_pairs

Generate channel pairs from activity, handling both string and ChannelId object cases.

get_channel_pairs(activity: Activity) -> Iterator[tuple[str, Any]]

Parameters

Name Description
activity
Required

The activity object (Activity instance or dict)

Returns

Type Description

Iterator of (key, value) tuples for channel information

get_conversation_pairs

get_conversation_pairs(activity: Activity) -> Iterator[tuple[str, Any]]

Parameters

Name Description
activity
Required

get_target_agent_pairs

get_target_agent_pairs(activity: Activity) -> Iterator[tuple[str, Any]]

Parameters

Name Description
activity
Required

get_tenant_id_pair

get_tenant_id_pair(activity: Activity) -> Iterator[tuple[str, Any]]

Parameters

Name Description
activity
Required

resolve_sub_channel

Resolve sub_channel from ChannelId, falling back to productContext in channel_data.

resolve_sub_channel(activity: Activity) -> str | None

Parameters

Name Description
activity
Required