Metadata-Version: 2.4
Name: swarmauri_provider_xai
Version: 0.1.0.dev3
Summary: Aggregated xAI provider resources for Swarmauri models.
License: Copyright 2024 Jacob Stewart
         
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
         You may obtain a copy of the License at
         
             http://www.apache.org/licenses/LICENSE-2.0
         
         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
License-File: LICENSE
Keywords: swarmauri,provider,xai,grok,realtime
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10,<3.13
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: swarmauri_base (>=0.11.0.dev5)
Requires-Dist: swarmauri_core (>=0.11.0.dev5)
Description-Content-Type: text/markdown

![Swarmauri](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)

[![PyPI](https://img.shields.io/pypi/v/swarmauri_provider_xai.svg)](https://pypi.org/project/swarmauri_provider_xai/) [![Python](https://img.shields.io/pypi/pyversions/swarmauri_provider_xai.svg)](https://pypi.org/project/swarmauri_provider_xai/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) [![Downloads](https://static.pepy.tech/badge/swarmauri_provider_xai)](https://pepy.tech/project/swarmauri_provider_xai) [![Hits](https://hits.sh/github.com/swarmauri/swarmauri-sdk.svg)](https://hits.sh/github.com/swarmauri/swarmauri-sdk/)

# swarmauri_provider_xai

## Features

- xAI authentication, endpoints, catalogs, errors, and tool schemas.
- Capability-aware chat, model-listing, and realtime connection configs.
- Runtime authorization with credentials excluded from serialized configs.
- Shared provider resource for xAI model families.

## Installation

`uv add swarmauri_provider_xai` or `pip install swarmauri_provider_xai`.

## Usage

```python
from swarmauri_provider_xai import XAIProvider

provider = XAIProvider(api_key="...")
config = provider.connection_config("chat.completions", model="grok-4.3")
headers = provider.authorize(config)
```

Inject the provider into an xAI model adapter; the provider describes the connection but never performs network I/O.

