Connection
Base URL, credentials and a reachable server.
Check 1900, 2000 and both range endpoints, rejecting year zero, fractions and Boolean values.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
def is_leap_year(year):
if type(year) is not int or not 1 <= year <= 9999:
raise ValueError("year.range")
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)