Connection
Base URL, credentials and a reachable server.
Follow the callback snapshot from registration to invocation, including a callback that changes subscriptions while the current notification is still running.
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 notify(observers, event):
snapshot = tuple(observers)
if not all(callable(fn) for fn in snapshot):
raise ValueError("callable observers required")
for callback in snapshot:
callback(event)