26382a7ac6
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
JetBrains Plugin / Actionlint (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (rust) (push) Waiting to run
JetBrains Plugin / Validation (push) Waiting to run
JetBrains Plugin / Build (push) Waiting to run
JetBrains Plugin / Test (push) Blocked by required conditions
Security Check / Security Scan (push) Waiting to run
CI / Clippy (push) Failing after 15m13s
CI / Test (ubuntu-latest) (push) Failing after 16m1s
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Build (no embeddings / no ORT) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Cookbook (Node) (push) Has been cancelled
CI / Pi Extension (Node) (push) Has been cancelled
CI / Rust SDK (lean-ctx-client) (push) Has been cancelled
CI / Embed SDK (lean-ctx-sdk) (push) Has been cancelled
CI / Python SDK (leanctx) (push) Has been cancelled
CI / Hermes Plugin (Python) (push) Has been cancelled
CI / SDK Conformance Matrix (push) Has been cancelled
CI / Coverage (push) Has been cancelled
CI / cargo-deny (push) Has been cancelled
CI / Adversarial Safety (push) Has been cancelled
CI / Benchmarks (push) Has been cancelled
CI / Output-Quality Gate (eval A/B) (push) Has been cancelled
CI / Documentation (push) Has been cancelled
CI / CI Green (push) Has been cancelled
41 lines
904 B
Python
41 lines
904 B
Python
"""lean-ctx Python SDK.
|
|
|
|
A thin, dependency-free client for the lean-ctx HTTP ``/v1`` contract. Mirrors
|
|
the TypeScript (`lean-ctx-client`) and Rust (`lean-ctx-client`) SDKs.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from .client import LeanCtxClient
|
|
from .conformance import (
|
|
COVERED_ROUTES,
|
|
SUPPORTED_HTTP_CONTRACT_VERSIONS,
|
|
ConformanceCheck,
|
|
ConformanceScorecard,
|
|
run_conformance,
|
|
)
|
|
from .errors import (
|
|
LeanCtxConfigError,
|
|
LeanCtxError,
|
|
LeanCtxHTTPError,
|
|
LeanCtxTransportError,
|
|
)
|
|
from .tool_text import tool_result_to_text
|
|
|
|
__version__ = "0.1.0"
|
|
|
|
__all__ = [
|
|
"LeanCtxClient",
|
|
"LeanCtxError",
|
|
"LeanCtxConfigError",
|
|
"LeanCtxTransportError",
|
|
"LeanCtxHTTPError",
|
|
"tool_result_to_text",
|
|
"run_conformance",
|
|
"ConformanceCheck",
|
|
"ConformanceScorecard",
|
|
"COVERED_ROUTES",
|
|
"SUPPORTED_HTTP_CONTRACT_VERSIONS",
|
|
"__version__",
|
|
]
|