in function_app/src/components/speech.py [0:0]
def get_type_from_pydantic_type_dict(type_dict: dict[str, str]) -> str:
"""
Gets the object type from a Pydantic type dictionary.
:param type_dict: The Pydantic type dictionary.
:type type_dict: dict[str, str]
:return: The object type.
:rtype: str
"""
if "$ref" in type_dict:
return "class:{}".format(type_dict["$ref"].split("/")[-1])
return type_dict.get("type")