Recap & Practice

Check your understanding
1/8

What's the key difference between a class variable and an instance attribute?

Exercise · Graded

Implement ToolCall with everything described — the class variable, __init__, __repr__, __eq__, the from_raw classmethod, and the is_valid_arguments staticmethod. Then implement LoggedToolCall, inheriting from ToolCall, adding duration_ms via super().__init__(), and extending (not replacing) __repr__ with super().__repr__().