def METHOD_NAME(
    self,
    message: Message,
    agent_type: TodAgentType,
    handler: world_metrics_handlers.TodMetricsHandler,
):
    prefix_stripped_text = message["text"].replace(
        TOD_AGENT_TYPE_TO_PREFIX[agent_type], ""
    )
    if agent_type is TodAgentType.API_SCHEMA_GROUNDING_AGENT:
        return handler.handle_api_schemas(
            message, SerializationHelpers.str_to_api_schemas(prefix_stripped_text)
        )
    if agent_type is TodAgentType.GOAL_GROUNDING_AGENT:
        return handler.handle_goals(
            message, SerializationHelpers.str_to_goals(prefix_stripped_text)
        )
    if agent_type is TodAgentType.USER_UTT_AGENT:
        return handler.handle_user_utt(message, prefix_stripped_text)
    if agent_type is TodAgentType.API_CALL_AGENT:
        return handler.handle_api_call(
            message, SerializationHelpers.str_to_api_dict(prefix_stripped_text)
        )
    if agent_type is TodAgentType.API_RESP_AGENT:
        return handler.handle_api_resp(
            message, SerializationHelpers.str_to_api_dict(prefix_stripped_text)
        )
    if agent_type is TodAgentType.SYSTEM_UTT_AGENT:
        return handler.handle_sys_utt(message, prefix_stripped_text)