Implement the functionality for the function greatest_common_divisor_in_range(a: int, b: int) -> int as per the provided function signature and docstring.
Functionality Requirements:
The function should calculate and return the greatest common divisor (GCD) of all integers within the inclusive range from a to b.
If a and b are equal, the function should return a.
If a is not equal to b, the function should return 1, as the GCD of multiple consecutive integers is always 1.
Input/Output Requirements:
Input:
Two integers a and b where (1 \leq a \leq b \leq 10^{100}).
Output:
An integer representing the GCD of all integers from a to b.
Implementation Note:
Write your solution in a file named /app/solution.py.
Example Cases:
Input: greatest_common_divisor_in_range(5, 5) should return 5
Input: greatest_common_divisor_in_range(2, 5) should return 1
Ensure that your solution adheres to the input and output specifications.