new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

LangChain & LangGraph · all subjects

middleware & error handling

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Webhook payload structure and configuration

Webhooks use structured error payloads with `error` and `message` fields in JSON format, replacing previous flat string format. Payload field exposure to webhooks is configurable via settings in agent server config. Feedback URLs are added to `/wait` and `/join` endpoint responses under a `__feedback__` key when `feedback_keys` are supplied.

Middleware execution and authentication ordering

The `middleware_order` setting controls middleware application sequence, allowing authentication middleware to be applied before custom middleware. This enables finer control over protected route configurations. Middleware receives context from headers that can be injected into endpoint operations. Custom routes support authorization when `enable_custom_route_auth` flag is enabled.

Give your agent this brain