Metadata-Version: 2.5
Name: risicare-core
Version: 0.1.8
Summary: Core types and taxonomy for Risicare Agent Self-Healing Infrastructure
Project-URL: Homepage, https://risicare.ai
Author-email: Risicare <founders@risicare.ai>
License: Copyright (c) 2026 Conscience Labs Pvt. Ltd. All rights reserved.
        Contact: info@consciencelabs.ai
        
        COMMERCIAL END USER LICENSE AGREEMENT (EULA)
        
        This software ("SDK") is the proprietary property of Conscience Labs Pvt. Ltd.
        Your use of this SDK is strictly governed by the commercial subscription agreement
        and terms of service entered into between your organization and Conscience Labs Pvt. Ltd.
        
        LICENSE GRANT & RESTRICTIONS:
        1. Subject to an active, paid subscription, you are granted a limited, non-exclusive,
           non-transferable license to integrate this SDK into your applications solely to
           utilize the AI Observability services hosted by Conscience Labs Pvt. Ltd.
        2. You shall not modify, adapt, alter, translate, or create derivative works from this SDK.
        3. You shall not reverse engineer, decompile, disassemble, or otherwise attempt to
           derive the source code of this SDK.
        4. You shall not distribute, sublicense, lease, rent, or loan this SDK to any third
           party as a standalone tool or product.
        
        WARRANTY DISCLAIMER:
        THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
        IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
        FITNESS FOR A PARTICULAR PURPOSE.
        
        For licensing inquiries, custom enterprise terms, or support, please contact:
        info@consciencelabs.ai
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Typing :: Typed
Requires-Python: >=3.10
Provides-Extra: crypto
Requires-Dist: cryptography>=42.0.0; extra == 'crypto'
Provides-Extra: dev
Requires-Dist: mypy>=1.0.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Requires-Dist: ruff>=0.1.0; extra == 'dev'
Description-Content-Type: text/markdown

# risicare-core

Shared types, context propagation, and error taxonomy for [Risicare](https://risicare.ai), the observability and error diagnosis service for AI agents.

This package is a dependency of the [`risicare`](https://pypi.org/project/risicare/) SDK. You typically don't install it directly.

```bash
pip install risicare
```

## What's Inside

- **Type system** — `Span`, `SpanKind`, `SpanStatus`, `LLMAttributes`, ID generation
- **Context propagation** — session/agent/phase tracking for threads and async tasks via `contextvars` (one known issue: a block that exits in another context than the one that entered it; see the change log)
- **Error taxonomy** — 154 error codes across 10 modules (Perception, Reasoning, Tool, Memory, Output, Coordination, Communication, Orchestration, Consensus, Resources)
- **Observability** — Prometheus-compatible metrics and context health reporting
- **`secret_box`** — symmetric encryption for secrets at rest. It needs the `crypto` extra (`pip install risicare-core[crypto]`); without it, `encrypt_secret` and `decrypt_secret` raise `SecretBoxError` (a `RuntimeError`, not an `ImportError`)

No required dependencies. Pure Python 3.10+.

## License

**Proprietary from 0.1.8. You need a commercial licence.** See [LICENSE](LICENSE). It is the
same licence as `risicare`. Versions 0.1.7 and earlier were published under the MIT licence;
that grant stays for those versions and does not apply to 0.1.8 or later. To stay on the MIT
version, pin `risicare-core<0.1.8`: every published `risicare` up to 0.4.0 asks for
`risicare-core` with no upper bound, so a new install of any of them takes 0.1.8.

## Links

- [Risicare Documentation](https://risicare.ai/docs)
- [Risicare SDK](https://pypi.org/project/risicare/)
