Metadata-Version: 2.4
Name: beeos-sdk
Version: 0.6.2
Summary: BeeOS OpenAPI (user contract)
Home-page: https://github.com/beeos-ai/sdk-python
Author: OpenAPI Generator community
Author-email: OpenAPI Generator Community <team@openapitools.org>
License-Expression: MIT
Project-URL: Repository, https://github.com/beeos-ai/sdk-python
Keywords: OpenAPI,OpenAPI-Generator,BeeOS OpenAPI (user contract)
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: urllib3<3.0.0,>=2.1.0
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pydantic>=2
Requires-Dist: typing-extensions>=4.7.1
Dynamic: author
Dynamic: home-page
Dynamic: license-file

# beeos-sdk

Python client for the BeeOS OpenAPI contract served by
[`openapi-gateway`](https://github.com/beeos-ai/openagent/tree/main/backend/services/openapi-gateway).

This package is generated from
[`backend/openapi/beeos-platform-v1.yaml`](https://github.com/beeos-ai/openagent/blob/main/backend/openapi/beeos-platform-v1.yaml)
with [OpenAPI Generator](https://openapi-generator.tech). The generated
client is the public API; do not edit generated files manually.

## Install

```bash
python -m pip install beeos-sdk
```

## Usage

```python
import beeos_sdk

configuration = beeos_sdk.Configuration(
    host="https://openapi.beeos.ai",
    access_token="oag_your_api_key",
)

with beeos_sdk.ApiClient(configuration) as client:
    tasks = beeos_sdk.TasksApi(client)
    response = tasks.create_task(
        agent_id="agent-id",
        create_task_request=beeos_sdk.CreateTaskRequest(message="Open Settings"),
    )
    print(response)
```

Authentication uses `Authorization: Bearer <jwt>` or
`Authorization: Bearer <oag_user_api_key>` through the generated
`Configuration`.

## Regenerate

Maintainers regenerate this repository from the `openagent` workspace:

```bash
cd sdks/openapi-sdk
make sync-spec
make gen
```

This repository is synchronized from the `openagent` SDK generation workflow.
