cortexhub 0.1.2__py3-none-any.whl → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cortexhub
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: CortexHub Python SDK - Policy-as-Code for AI Agents
5
5
  Project-URL: Homepage, https://cortexhub.ai
6
6
  Project-URL: Documentation, https://docs.cortexhub.ai
@@ -8,6 +8,7 @@ Project-URL: Repository, https://github.com/cortexhub/sdks
8
8
  Project-URL: Issues, https://github.com/cortexhub/sdks/issues
9
9
  Author-email: CortexHub <hello@cortexhub.ai>
10
10
  License: MIT
11
+ License-File: LICENSE
11
12
  Keywords: agents,ai,authorization,cedar,governance,policy
12
13
  Classifier: Development Status :: 4 - Beta
13
14
  Classifier: Intended Audience :: Developers
@@ -38,12 +39,14 @@ Requires-Dist: crewai>=0.50.0; extra == 'all'
38
39
  Requires-Dist: langchain-core>=0.2.0; extra == 'all'
39
40
  Requires-Dist: langchain-openai>=0.1.0; extra == 'all'
40
41
  Requires-Dist: langgraph>=0.2.0; extra == 'all'
42
+ Requires-Dist: litellm>=1.81.5; extra == 'all'
41
43
  Requires-Dist: openai-agents>=0.0.3; extra == 'all'
42
44
  Provides-Extra: claude-agents
43
45
  Requires-Dist: anthropic>=0.40.0; extra == 'claude-agents'
44
46
  Requires-Dist: claude-agent-sdk>=0.0.1; extra == 'claude-agents'
45
47
  Provides-Extra: crewai
46
48
  Requires-Dist: crewai>=0.50.0; extra == 'crewai'
49
+ Requires-Dist: litellm>=1.81.5; extra == 'crewai'
47
50
  Provides-Extra: dev
48
51
  Requires-Dist: mypy>=1.10.0; extra == 'dev'
49
52
  Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
@@ -104,6 +107,16 @@ from langgraph.prebuilt import create_react_agent
104
107
  | OpenAI Agents | `Framework.OPENAI_AGENTS` | `pip install cortexhub[openai-agents]` |
105
108
  | Claude Agents | `Framework.CLAUDE_AGENTS` | `pip install cortexhub[claude-agents]` |
106
109
 
110
+ ## Tracing Coverage
111
+
112
+ All frameworks emit `run.started` and `run.completed`/`run.failed` for each run.
113
+ Tool spans (`tool.invoke`) and model spans (`llm.call`) vary by SDK:
114
+
115
+ - **LangGraph**: tool calls via `BaseTool.invoke`, LLM calls via `BaseChatModel.invoke/ainvoke`
116
+ - **CrewAI**: tool calls via `CrewStructuredTool.invoke`/`BaseTool.run`, LLM calls via LiteLLM and `BaseLLM.call/acall`
117
+ - **OpenAI Agents**: tool calls via `function_tool`, LLM calls via `OpenAIResponsesModel` and `OpenAIChatCompletionsModel`
118
+ - **Claude Agents**: tool calls via `@tool` and built-in tool hooks; LLM calls run inside the Claude Code CLI and are not intercepted by the Python SDK
119
+
107
120
  ## Configuration
108
121
 
109
122
  ```bash
@@ -178,15 +191,6 @@ The SDK applies your configuration automatically:
178
191
  # Only configured types are redacted
179
192
  ```
180
193
 
181
- ## Examples
182
-
183
- Examples live in the separate `examples` repository
184
-
185
- ```bash
186
- git clone git@github.com:cortexhub/examples.git
187
- cd examples/langgraph # or crewai, openai-agents, claude-agents
188
- ```
189
-
190
194
  ## Important: Initialization Order
191
195
 
192
196
  **Always initialize CortexHub FIRST**, before importing your framework:
@@ -1,6 +1,6 @@
1
1
  cortexhub/__init__.py,sha256=hnwsiUy5BT3QaPNK5yXqex6zRzZlok43S04y-dkNWSE,4376
2
2
  cortexhub/auto_protect.py,sha256=yW-iW9cdGg-fM8EtR_Z9UkMczn51U8BKh5pOBgV1VqE,3951
3
- cortexhub/client.py,sha256=pXZI3Fc2SqBWCSmnRB9j6qAq8-qky1EYw9mvEVBXwn0,94080
3
+ cortexhub/client.py,sha256=LNS63p8jFD3GASOKCQISZR4au52o4NmINF3hv1sTpxg,96968
4
4
  cortexhub/config.py,sha256=kpwVMTRcSisJy8HHBL3ZBeQoMN3lE7zziRzEYaq92LI,941
5
5
  cortexhub/errors.py,sha256=hsknLHaVCqk5MkpXvahxYIUshDt2VGZfbBWRronFvVM,3697
6
6
  cortexhub/frameworks.py,sha256=WCPokPRVafLqe73MDbJasi8FyNHTM2T4wfaBg0LuWoM,2223
@@ -8,10 +8,10 @@ cortexhub/pipeline.py,sha256=EvkrEz7dGnzc0tlv02B3Kx2KQfdX4gsTuhUxj-MwuFI,3256
8
8
  cortexhub/version.py,sha256=L1gsFyWfMZYvly7nYjyH0nlWRAsm65S61_B-imDPgXE,68
9
9
  cortexhub/adapters/__init__.py,sha256=Lb6RquGPGs4exdfSB6Qb6q6HyGczozuLWSaLCtgZdyo,130
10
10
  cortexhub/adapters/base.py,sha256=_ODoJFLQLYnowse3MHQk8bN9KjE1oQr8QDNNlvPSwSs,4094
11
- cortexhub/adapters/claude_agents.py,sha256=gXjONi7Otl6kfQQLHENsrJ_gsBw2ilATCa1zwNNR6EY,12601
12
- cortexhub/adapters/crewai.py,sha256=Y7ibOD1sFahDQ39XRZw_Kx2PCcZvKpyQKOSo0aZvs_0,12521
13
- cortexhub/adapters/langgraph.py,sha256=FpIcAITNnIk6OUK9rCyCA2nVxQvs0ibyCFH0j-CjHv0,15024
14
- cortexhub/adapters/openai_agents.py,sha256=NtTsUjrRv3nzd-1VXLu7_imW9l2LzCvna1u02QTDRh8,7600
11
+ cortexhub/adapters/claude_agents.py,sha256=etuDHQjWikItFB-rHVwDM9fFm-0WNderkOhIgOtRxjk,22499
12
+ cortexhub/adapters/crewai.py,sha256=SuyMBF9bzrqDq58ZsGZV-3uAzaAtlLD3xEeyMB2Hgig,24899
13
+ cortexhub/adapters/langgraph.py,sha256=X0UutdATOowXcZYRv_ImiJGSO97MKgYcuxFKV-jTxJA,20850
14
+ cortexhub/adapters/openai_agents.py,sha256=63rNZ8HItZdoxERk1BTYzzpVe8Qq_8j56jfrEICzjpU,21511
15
15
  cortexhub/audit/__init__.py,sha256=tKE9CdpAIpP04oeLOza96jwZs4er5G5bRBWGibvh4Xw,545
16
16
  cortexhub/audit/events.py,sha256=w1uHbYzwBTDRm8gKAY_TQlXHjUj2nZt-iXk0NcqzRak,5965
17
17
  cortexhub/backend/__init__.py,sha256=Yt5fcaW24l6YwPCLvKbcKAXhhrWTUjwgqJsLOIzgIAo,133
@@ -33,6 +33,7 @@ cortexhub/policy/models.py,sha256=81NPX36yru0AZ22Wivytv3uxlwir4VsTN4MZgq4bdiA,38
33
33
  cortexhub/policy/sync.py,sha256=7kAc3rd5WftipR8XKwvU8SwukIoY-0gcGW2fsf-ij_I,5999
34
34
  cortexhub/telemetry/__init__.py,sha256=RSY38hHnYtbRURLoWAhbYYxYMtCItVYZBNN6Bfny8uA,1049
35
35
  cortexhub/telemetry/otel.py,sha256=T2pC-K_S_KmrLvfcd3oHMbEwC5ibGZ-PXTZSY0xJgcQ,16633
36
- cortexhub-0.1.2.dist-info/METADATA,sha256=3EVsgCoB_TDvAoyqwYZx6zGTCKJQPXkXg5vnLjH1yfs,7948
37
- cortexhub-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
- cortexhub-0.1.2.dist-info/RECORD,,
36
+ cortexhub-0.1.4.dist-info/METADATA,sha256=415eS3_LSI7Df293BxsVWLCm_7o7HSrF89GC4j2z7Jc,8539
37
+ cortexhub-0.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
38
+ cortexhub-0.1.4.dist-info/licenses/LICENSE,sha256=R-lPsEVN69q2o19ge2_O9Vt9cJuGM557oEYX3XdnvIk,1066
39
+ cortexhub-0.1.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CortexHub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.