agentchat.contrib.captainagent.tools.math
agentchat.contrib.captainagent.tools.math.calculate_fraction_sum
calculate_fraction_sum
Calculates the sum of two fractions and returns the result as a mixed number.
Arguments:
fraction1_numerator
- The numerator of the first fraction.fraction1_denominator
- The denominator of the first fraction.fraction2_numerator
- The numerator of the second fraction.fraction2_denominator
- The denominator of the second fraction.
Returns:
str
- The sum of the two fractions as a mixed number in the format ‘a b/c’