context-compiler-example-integrations 0.2.0__tar.gz → 0.2.1__tar.gz

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.
Files changed (66) hide show
  1. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/PKG-INFO +8 -32
  2. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/pyproject.toml +1 -1
  3. context_compiler_example_integrations-0.2.1/python/README.md +47 -0
  4. context_compiler_example_integrations-0.2.0/python/README.md +0 -71
  5. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/.gitignore +0 -0
  6. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/LICENSE +0 -0
  7. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/context_compiler_example_integrations/__init__.py +0 -0
  8. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/context_compiler_example_integrations/examples/__init__.py +0 -0
  9. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/context_compiler_example_integrations/reference_integrations/__init__.py +0 -0
  10. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/_shared/__init__.py +0 -0
  11. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/_shared/litellm_request.py +0 -0
  12. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/_shared/provider_mode.py +0 -0
  13. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/checkpoint_continuation/README.md +0 -0
  14. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/checkpoint_continuation/example.py +0 -0
  15. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/checkpoint_continuation/fastapi/README.md +0 -0
  16. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/checkpoint_continuation/fastapi/app.py +0 -0
  17. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/README.md +0 -0
  18. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/expense_approval/README.md +0 -0
  19. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/expense_approval/__init__.py +0 -0
  20. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/expense_approval/example.py +0 -0
  21. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/expense_approval/fastapi/README.md +0 -0
  22. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/expense_approval/fastapi/__init__.py +0 -0
  23. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/expense_approval/fastapi/app.py +0 -0
  24. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/execution_authorization/expense_approval/fastapi/model_approval.py +0 -0
  25. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/gateway_middleware/README.md +0 -0
  26. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/gateway_middleware/customer_support_routing/README.md +0 -0
  27. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/gateway_middleware/customer_support_routing/__init__.py +0 -0
  28. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/gateway_middleware/customer_support_routing/example.py +0 -0
  29. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/prompt_construction/README.md +0 -0
  30. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/prompt_construction/litellm/README.md +0 -0
  31. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/prompt_construction/litellm/basic.py +0 -0
  32. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/prompt_construction/litellm/with_directive_drafter.py +0 -0
  33. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/prompt_construction/writing_assistant/README.md +0 -0
  34. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/prompt_construction/writing_assistant/__init__.py +0 -0
  35. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/prompt_construction/writing_assistant/example.py +0 -0
  36. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/retrieval_filtering/README.md +0 -0
  37. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/retrieval_filtering/chromadb_hr_policy_lookup/README.md +0 -0
  38. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/retrieval_filtering/chromadb_hr_policy_lookup/__init__.py +0 -0
  39. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/retrieval_filtering/chromadb_hr_policy_lookup/example.py +0 -0
  40. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/retrieval_filtering/hr_policy_lookup/README.md +0 -0
  41. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/retrieval_filtering/hr_policy_lookup/__init__.py +0 -0
  42. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/retrieval_filtering/hr_policy_lookup/example.py +0 -0
  43. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/schema_selection/README.md +0 -0
  44. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/schema_selection/litellm_response_format/response_format.py +0 -0
  45. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/schema_selection/ollama_structured_output/README.md +0 -0
  46. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/schema_selection/ollama_structured_output/example.py +0 -0
  47. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/schema_selection/refund_intake/README.md +0 -0
  48. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/schema_selection/refund_intake/__init__.py +0 -0
  49. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/schema_selection/refund_intake/example.py +0 -0
  50. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/README.md +0 -0
  51. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/calendar_admin/README.md +0 -0
  52. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/calendar_admin/__init__.py +0 -0
  53. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/calendar_admin/example.py +0 -0
  54. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/mcp_calendar_admin/README.md +0 -0
  55. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/mcp_calendar_admin/__init__.py +0 -0
  56. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/mcp_calendar_admin/example.py +0 -0
  57. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/examples/tool_gating/mcp_calendar_admin/live_model.py +0 -0
  58. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/litellm_proxy/README.md +0 -0
  59. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/litellm_proxy/_checkpoint_support.py +0 -0
  60. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/litellm_proxy/_litellm_support.py +0 -0
  61. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/litellm_proxy/config.example.yaml +0 -0
  62. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/litellm_proxy/context_compiler_precall_hook.py +0 -0
  63. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/litellm_proxy/context_compiler_precall_hook_with_directive_drafter.py +0 -0
  64. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/openwebui_pipe/README.md +0 -0
  65. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/openwebui_pipe/open_webui_pipe.py +0 -0
  66. {context_compiler_example_integrations-0.2.0 → context_compiler_example_integrations-0.2.1}/python/reference_integrations/openwebui_pipe/open_webui_pipe_with_directive_drafter.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: context-compiler-example-integrations
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Example integrations and enforcement-point demonstrations for Context Compiler.
5
5
  Project-URL: Homepage, https://github.com/rlippmann/context-compiler-example-integrations
6
6
  Project-URL: Repository, https://github.com/rlippmann/context-compiler-example-integrations
@@ -75,36 +75,12 @@ Open WebUI is not installed by this package. The Open WebUI reference
75
75
  integration assumes Open WebUI is already installed and configured as the host
76
76
  runtime.
77
77
 
78
- ## Generic examples
78
+ ## Package contents
79
79
 
80
- - [Checkpoint continuation](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/checkpoint_continuation/README.md): persisted authoritative state changes host behavior across turns or requests
81
- - [Execution authorization](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/execution_authorization/README.md): protected host actions execute only when authoritative state allows them
82
- - [Gateway middleware](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/gateway_middleware/README.md): the host allows, blocks, or routes requests before downstream work runs
83
- - [Prompt construction](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/prompt_construction/README.md): the host builds different request or prompt payloads from authoritative state
84
- - [Retrieval filtering](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/retrieval_filtering/README.md): the host changes which documents are eligible or relevant before returning results
85
- - [Schema selection](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/schema_selection/README.md): the host picks different workflow or response schemas from authoritative state
86
- - [Tool gating](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/tool_gating/README.md): the host changes which tools are visible or executable at runtime
80
+ The installed package exposes the Python examples and reference-integration
81
+ modules under `context_compiler_example_integrations`.
87
82
 
88
- ## Reference integrations
89
-
90
- Python also includes reference integrations for runtime-specific behavior after
91
- the generic examples.
92
-
93
- Open a reference integration when you want to see the same kind of runtime
94
- behavior on a specific host or framework surface.
95
-
96
- Start with the generic example first, then use the Python reference
97
- integrations to inspect a runtime-specific path:
98
-
99
- - [LiteLLM Proxy reference integration](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/reference_integrations/litellm_proxy/README.md)
100
- - [Open WebUI pipe reference integration](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/reference_integrations/openwebui_pipe/README.md)
101
-
102
- ## Run an example
103
-
104
- To explore or run an example, use a repository checkout:
105
-
106
- 1. Clone
107
- [`context-compiler-example-integrations`](https://github.com/rlippmann/context-compiler-example-integrations).
108
- 2. Choose a generic example or a reference integration.
109
- 3. Open that example's README.
110
- 4. Follow the example-specific setup, runtime, and validation instructions.
83
+ For the enforcement-point catalog and repository navigation, see the [root
84
+ README](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/README.md).
85
+ Each example and reference integration has its own setup, runtime, and
86
+ validation instructions.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "context-compiler-example-integrations"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "Example integrations and enforcement-point demonstrations for Context Compiler."
9
9
  readme = "python/README.md"
10
10
  requires-python = ">=3.11"
@@ -0,0 +1,47 @@
1
+ # Context Compiler Example Integrations for Python
2
+
3
+ These examples show how authoritative state changes application behavior at runtime.
4
+
5
+ Each example demonstrates a single enforcement point where premise and policy influence what a host allows, routes, retrieves, builds, or executes.
6
+
7
+ - The core authority contract is provided by [`context-compiler`](https://github.com/rlippmann/context-compiler).
8
+ - Directive recognition can optionally be added with [`context-compiler-directive-drafter`](https://github.com/rlippmann/context-compiler-directive-drafter).
9
+ - These examples focus on where authoritative state changes application behavior.
10
+
11
+ *Prompt reinjection* influences ***model behavior***.
12
+
13
+ *Context Compiler* influences ***runtime behavior***.
14
+
15
+ ## Install options
16
+
17
+ Base installation keeps this package discovery-first:
18
+
19
+ ```shell
20
+ pip install "context-compiler-example-integrations"
21
+ ```
22
+
23
+ That installs the shared core dependency only:
24
+
25
+ - `context-compiler>=0.9.1,<0.10`
26
+
27
+ Add extras only for the examples you want to inspect locally:
28
+
29
+ - `pip install "context-compiler-example-integrations[drafter]"` for examples that use `context-compiler-directive-drafter`
30
+ - `pip install "context-compiler-example-integrations[retrieval]"` for ChromaDB retrieval filtering examples
31
+ - `pip install "context-compiler-example-integrations[fastapi]"` for FastAPI variants
32
+ - `pip install "context-compiler-example-integrations[litellm]"` for LiteLLM-oriented examples and reference integrations
33
+ - `pip install "context-compiler-example-integrations[all]"` to install all package-managed optional dependencies
34
+
35
+ Open WebUI is not installed by this package. The Open WebUI reference
36
+ integration assumes Open WebUI is already installed and configured as the host
37
+ runtime.
38
+
39
+ ## Package contents
40
+
41
+ The installed package exposes the Python examples and reference-integration
42
+ modules under `context_compiler_example_integrations`.
43
+
44
+ For the enforcement-point catalog and repository navigation, see the [root
45
+ README](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/README.md).
46
+ Each example and reference integration has its own setup, runtime, and
47
+ validation instructions.
@@ -1,71 +0,0 @@
1
- # Context Compiler Example Integrations for Python
2
-
3
- These examples show how authoritative state changes application behavior at runtime.
4
-
5
- Each example demonstrates a single enforcement point where premise and policy influence what a host allows, routes, retrieves, builds, or executes.
6
-
7
- - The core authority contract is provided by [`context-compiler`](https://github.com/rlippmann/context-compiler).
8
- - Directive recognition can optionally be added with [`context-compiler-directive-drafter`](https://github.com/rlippmann/context-compiler-directive-drafter).
9
- - These examples focus on where authoritative state changes application behavior.
10
-
11
- *Prompt reinjection* influences ***model behavior***.
12
-
13
- *Context Compiler* influences ***runtime behavior***.
14
-
15
- ## Install options
16
-
17
- Base installation keeps this package discovery-first:
18
-
19
- ```shell
20
- pip install "context-compiler-example-integrations"
21
- ```
22
-
23
- That installs the shared core dependency only:
24
-
25
- - `context-compiler>=0.9.1,<0.10`
26
-
27
- Add extras only for the examples you want to inspect locally:
28
-
29
- - `pip install "context-compiler-example-integrations[drafter]"` for examples that use `context-compiler-directive-drafter`
30
- - `pip install "context-compiler-example-integrations[retrieval]"` for ChromaDB retrieval filtering examples
31
- - `pip install "context-compiler-example-integrations[fastapi]"` for FastAPI variants
32
- - `pip install "context-compiler-example-integrations[litellm]"` for LiteLLM-oriented examples and reference integrations
33
- - `pip install "context-compiler-example-integrations[all]"` to install all package-managed optional dependencies
34
-
35
- Open WebUI is not installed by this package. The Open WebUI reference
36
- integration assumes Open WebUI is already installed and configured as the host
37
- runtime.
38
-
39
- ## Generic examples
40
-
41
- - [Checkpoint continuation](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/checkpoint_continuation/README.md): persisted authoritative state changes host behavior across turns or requests
42
- - [Execution authorization](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/execution_authorization/README.md): protected host actions execute only when authoritative state allows them
43
- - [Gateway middleware](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/gateway_middleware/README.md): the host allows, blocks, or routes requests before downstream work runs
44
- - [Prompt construction](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/prompt_construction/README.md): the host builds different request or prompt payloads from authoritative state
45
- - [Retrieval filtering](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/retrieval_filtering/README.md): the host changes which documents are eligible or relevant before returning results
46
- - [Schema selection](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/schema_selection/README.md): the host picks different workflow or response schemas from authoritative state
47
- - [Tool gating](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/examples/tool_gating/README.md): the host changes which tools are visible or executable at runtime
48
-
49
- ## Reference integrations
50
-
51
- Python also includes reference integrations for runtime-specific behavior after
52
- the generic examples.
53
-
54
- Open a reference integration when you want to see the same kind of runtime
55
- behavior on a specific host or framework surface.
56
-
57
- Start with the generic example first, then use the Python reference
58
- integrations to inspect a runtime-specific path:
59
-
60
- - [LiteLLM Proxy reference integration](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/reference_integrations/litellm_proxy/README.md)
61
- - [Open WebUI pipe reference integration](https://github.com/rlippmann/context-compiler-example-integrations/blob/main/python/reference_integrations/openwebui_pipe/README.md)
62
-
63
- ## Run an example
64
-
65
- To explore or run an example, use a repository checkout:
66
-
67
- 1. Clone
68
- [`context-compiler-example-integrations`](https://github.com/rlippmann/context-compiler-example-integrations).
69
- 2. Choose a generic example or a reference integration.
70
- 3. Open that example's README.
71
- 4. Follow the example-specific setup, runtime, and validation instructions.