Connection
Base URL, credentials and a reachable server.
Inspect prefix_totals.py for the initial zero that makes every interval sum a difference of two prefixes.
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 prefix_totals(values):
if type(values) is not list or any(type(v) is not int for v in values):
raise ValueError("prefix.input")
result = [0]
for value in values:
result.append(result[-1]+value)
return result