Metadata-Version: 2.5
Name: kobil-agent-sdk
Version: 3.0.1
Summary: KOBIL AI Trust Platform Agent SDK — OAuth 2.1, CIBA, DPoP, agent identity, and framework integrations
License-Expression: LicenseRef-KOBIL-Agent-Trust-SDK-1.0
License-File: LICENSE
Keywords: agent,ai-trust,ciba,dpop,kobil,oauth,sdk
Requires-Python: >=3.10
Requires-Dist: cryptography>=42.0
Requires-Dist: httpx>=0.27
Provides-Extra: all
Requires-Dist: anthropic>=0.20; extra == 'all'
Requires-Dist: claude-agent-sdk>=0.1; extra == 'all'
Requires-Dist: google-adk>=2.10; extra == 'all'
Requires-Dist: google-genai>=0.1; extra == 'all'
Requires-Dist: openai-agents>=0.1; extra == 'all'
Requires-Dist: openai>=1.0; extra == 'all'
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.20; extra == 'anthropic'
Requires-Dist: claude-agent-sdk>=0.1; extra == 'anthropic'
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: respx>=0.21; extra == 'dev'
Provides-Extra: google
Requires-Dist: google-adk>=2.10; extra == 'google'
Requires-Dist: google-genai>=0.1; extra == 'google'
Provides-Extra: openai
Requires-Dist: openai-agents>=0.1; extra == 'openai'
Requires-Dist: openai>=1.0; extra == 'openai'
Description-Content-Type: text/markdown

# kobil-agent-sdk (Python)

Python mirror of the `@uveysservetoglu/kobil-agent-sdk` TypeScript SDK.

This is a behavioral 1:1 port of the TypeScript package in `../src`, delivered
in layers given its size (~11k LOC). The **current layer** is the self-contained
auth foundation:

- **config** — `KobilSDKConfig`, `create_config` (endpoint derivation, defaults)
- **OAuth 2.1** — PKCE (`generate_code_verifier`/`generate_code_challenge`),
  authorization-code exchange, client-credentials via the Management API proxy
  (mTLS), RFC 8693 token exchange, refresh; automatic retry with backoff
- **CIBA** — initiate / poll / status
- **DPoP** — ECDSA P-256 (ES256), emitted in IEEE-P1363 raw `R||S` form to match
  WebCrypto so proofs are byte-compatible with the TypeScript SDK

Subsequent layers add `KobilAI`, the tool registry, agent identity, platform,
the isolated key-signer subprocess, and the vendor framework adapters
(OpenAI / Anthropic / Google).

## Install (dev)

```bash
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
```

## Test

```bash
pytest
```
