Connection
Base URL, credentials and a reachable server.
Carry a request identifier through middleware and response headers. Validate incoming identifiers and ensure nested calls keep the same tracing context.
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.
const requestId = validateId(header) ?? newId();
context.requestId = requestId;
response.setHeader('X-Request-Id', requestId);
return next(context);