eigenscope-sdk 0.2.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,121 @@
1
+ """EigenScope Open-Core Python SDK (`eigenscope-sdk`, Apache-2.0).
2
+
3
+ Governing Specifications:
4
+ - `SPECS/SDK-AND-INTEGRATION-CONTRACTS.md` (`EGS-SDK-001`, `EGS-SDK-004`)
5
+ - `SPECS/API.md`
6
+ """
7
+ from .client import (
8
+ CONTRACT_VERSION,
9
+ DOMAIN_SEPARATION_POLICIES,
10
+ EIGENSCOPE_PYTHON_CLIENT_VERSION,
11
+ OCVC_V1_MAGIC,
12
+ OCVC_V2_MAGIC,
13
+ SDK_VERSION,
14
+ ClampingProfile,
15
+ EigenScopeAuthorityUnavailableError,
16
+ EigenScopeClient,
17
+ EigenScopeError,
18
+ EigenScopeGateBlockedError,
19
+ EigenScopeReceipt,
20
+ OrthoCoreAuthorityUnavailableError,
21
+ OrthoCoreClient,
22
+ OrthoCoreError,
23
+ OrthoCoreGatewayClient,
24
+ OrthoCoreGateBlockedError,
25
+ SeparationPolicy,
26
+ StreamingPlaceholderBuffer,
27
+ AhoCorasickFST,
28
+ compute_request_digest,
29
+ compute_symbol_table_commitment,
30
+ decode_ocvc_clip,
31
+ encode_ocvc_v2,
32
+ jcs_canonical_bytes,
33
+ new_request_id,
34
+ parse_png_dimensions,
35
+ parse_retry_after_seconds,
36
+ parse_wav_header,
37
+ validate_service_origin,
38
+ zeroize_buffer,
39
+ )
40
+ from .hooks import (
41
+ SUPPORTED_MODEL_DIMS,
42
+ OrthoCoreResidualHook,
43
+ create_residual_clamping_hook,
44
+ decode_float32_base64,
45
+ encode_float32_base64,
46
+ orthocore_subspace_hook,
47
+ )
48
+ from .adapters import (
49
+ AdmittedRagCandidate,
50
+ AuditReceiptEmitter,
51
+ EigenScopeCandidateGate,
52
+ EigenScopeHaystackGate,
53
+ EigenScopeLangChainRetriever,
54
+ EigenScopeLlamaIndexPostprocessor,
55
+ GatedRagResult,
56
+ QuarantinedRagCandidate,
57
+ QuarantinedToolResult,
58
+ RagCandidate,
59
+ ToolOutputQuarantine,
60
+ sanitize_tool_result,
61
+ )
62
+ from .model_connection import MODEL_RUNTIME_API_VERSION, ModelConnection, ModelConnectionError, connect_model
63
+
64
+ __version__ = "0.2.16"
65
+ __author__ = "Aikhomu L F Okoedion, Guardian AI Inc."
66
+
67
+ __all__ = [
68
+ "CONTRACT_VERSION",
69
+ "EIGENSCOPE_PYTHON_CLIENT_VERSION",
70
+ "OCVC_V1_MAGIC",
71
+ "OCVC_V2_MAGIC",
72
+ "SDK_VERSION",
73
+ "MODEL_RUNTIME_API_VERSION",
74
+ "ModelConnection",
75
+ "ModelConnectionError",
76
+ "connect_model",
77
+ "AdmittedRagCandidate",
78
+ "AuditReceiptEmitter",
79
+ "EigenScopeCandidateGate",
80
+ "EigenScopeHaystackGate",
81
+ "EigenScopeLangChainRetriever",
82
+ "EigenScopeLlamaIndexPostprocessor",
83
+ "GatedRagResult",
84
+ "QuarantinedRagCandidate",
85
+ "QuarantinedToolResult",
86
+ "RagCandidate",
87
+ "ToolOutputQuarantine",
88
+ "sanitize_tool_result",
89
+ "DOMAIN_SEPARATION_POLICIES",
90
+ "SUPPORTED_MODEL_DIMS",
91
+ "AhoCorasickFST",
92
+ "ClampingProfile",
93
+ "EigenScopeAuthorityUnavailableError",
94
+ "EigenScopeClient",
95
+ "EigenScopeError",
96
+ "EigenScopeGateBlockedError",
97
+ "EigenScopeReceipt",
98
+ "OrthoCoreAuthorityUnavailableError",
99
+ "OrthoCoreClient",
100
+ "OrthoCoreError",
101
+ "OrthoCoreGatewayClient",
102
+ "OrthoCoreGateBlockedError",
103
+ "OrthoCoreResidualHook",
104
+ "SeparationPolicy",
105
+ "StreamingPlaceholderBuffer",
106
+ "compute_request_digest",
107
+ "compute_symbol_table_commitment",
108
+ "create_residual_clamping_hook",
109
+ "decode_float32_base64",
110
+ "decode_ocvc_clip",
111
+ "encode_float32_base64",
112
+ "encode_ocvc_v2",
113
+ "jcs_canonical_bytes",
114
+ "new_request_id",
115
+ "orthocore_subspace_hook",
116
+ "parse_png_dimensions",
117
+ "parse_retry_after_seconds",
118
+ "parse_wav_header",
119
+ "validate_service_origin",
120
+ "zeroize_buffer",
121
+ ]
@@ -0,0 +1,9 @@
1
+ """Module entrypoint for `python -m eigenscope_sdk`."""
2
+ from __future__ import annotations
3
+
4
+ import sys
5
+
6
+ from .cli import main
7
+
8
+ if __name__ == "__main__":
9
+ raise SystemExit(main(sys.argv[1:]))