in src/sagemaker_core/main/user_agent.py [0:0]
def get_user_agent_extra_suffix() -> str:
"""Get the user agent extra suffix string specific to SageMakerCore
Adhers to new boto recommended User-Agent 2.0 header format
Returns:
str: The user agent extra suffix string to be appended
"""
suffix = "lib/{}#{}".format(SagemakerCore_PREFIX, SagemakerCore_VERSION)
# Get the notebook instance type and prepend it to the user agent string if exists
notebook_instance_type = process_notebook_metadata_file()
if notebook_instance_type:
suffix = "{} md/{}#{}".format(suffix, NOTEBOOK_PREFIX, notebook_instance_type)
# Get the studio app type and prepend it to the user agent string if exists
studio_app_type = process_studio_metadata_file()
if studio_app_type:
suffix = "{} md/{}#{}".format(suffix, STUDIO_PREFIX, studio_app_type)
return suffix