[docs]classDefaultSubscription(TypeSubscription):"""The default subscription is designed to be a sensible default for applications that only need global scope for agents. This topic by default uses the "default" topic type and attempts to detect the agent type to use based on the instantiation context. Args: topic_type (str, optional): The topic type to subscribe to. Defaults to "default". agent_type (str, optional): The agent type to use for the subscription. Defaults to None, in which case it will attempt to detect the agent type based on the instantiation context. """def__init__(self,topic_type:str="default",agent_type:str|AgentType|None=None):ifagent_typeisNone:try:agent_type=SubscriptionInstantiationContext.agent_type().typeexceptRuntimeErrorase:raiseCantHandleException("If agent_type is not specified DefaultSubscription must be created within the subscription callback in AgentRuntime.register")fromesuper().__init__(topic_type,agent_type)