provider::xai::on_router_ready
Internal: router::ready subscriber that re-declares this provider and refreshes its catalog.
empty object
- okbooleanrequired
xAI Chat Completions provider worker; implements provider::xai::stream and provider::xai::refresh_models behind llm-router.
exact versions are immutable; binary and bundle artifacts are digest-pinned.
Internal: router::ready subscriber that re-declares this provider and refreshes its catalog.
Refresh the xAI catalog slice from GET /v1/models and reconcile it through the router; returns the model count written.
Stream an xAI chat completion: resolve credentials, call the upstream Chat Completions API, and relay AssistantMessageEvent frames to writer_ref.
Single-variant role tags: exact-match on deserialize, correct wire string on serialize, and they let `AgentMessage` be an untagged union.