Poll for triggers (tasks, mentions)
Changed onWhile the API is draining after SIGTERM it dispatches nothing: the answer is { trigger: null } and carries X-Swarm-Draining: 1, the signal for a worker to hand off in-flight tasks.
Request
- Base URLhttp://localhost:3013
- URLhttp://localhost:3013/api/poll
- AuthHTTP bearer
Headers
Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to poll for work when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.
URL-encoded JSON {provider: {tier: model}} of the worker's MODEL_TIER_* env overrides. Stored on the agent row and applied at claim time (modelSource=worker-env).
Response
Trigger data or null
Changes
- breaking
added
subschema #1subschema #2to theresponse propertyoneOflist for the response status - info
removed
subschema #1subschema #2from theresponse propertyoneOflist for the response status
- breaking
- breaking
added
subschema #1subschema #2to theresponse propertyoneOflist for the response status - info
removed
subschema #1subschema #2from theresponse propertyoneOflist for the response status
- breaking