ai-lib-python 0.7.0__py3-none-any.whl → 0.7.1__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.
- {ai_lib_python-0.7.0.dist-info → ai_lib_python-0.7.1.dist-info}/METADATA +17 -1
- {ai_lib_python-0.7.0.dist-info → ai_lib_python-0.7.1.dist-info}/RECORD +5 -5
- {ai_lib_python-0.7.0.dist-info → ai_lib_python-0.7.1.dist-info}/WHEEL +0 -0
- {ai_lib_python-0.7.0.dist-info → ai_lib_python-0.7.1.dist-info}/licenses/LICENSE-APACHE +0 -0
- {ai_lib_python-0.7.0.dist-info → ai_lib_python-0.7.1.dist-info}/licenses/LICENSE-MIT +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ai-lib-python
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Official Python Runtime for AI-Protocol - The canonical Pythonic implementation for unified AI model interaction
|
|
5
5
|
Project-URL: Homepage, https://github.com/hiddenpath/ai-lib-python
|
|
6
6
|
Project-URL: Documentation, https://github.com/hiddenpath/ai-lib-python#readme
|
|
@@ -176,6 +176,20 @@ COMPLIANCE_DIR=../ai-protocol/tests/compliance pytest tests/compliance/ -v
|
|
|
176
176
|
|
|
177
177
|
For details, see [CROSS_RUNTIME.md](https://github.com/hiddenpath/ai-protocol/blob/main/docs/CROSS_RUNTIME.md).
|
|
178
178
|
|
|
179
|
+
### Testing with ai-protocol-mock
|
|
180
|
+
|
|
181
|
+
For integration and MCP e2e tests without real API calls, use [ai-protocol-mock](https://github.com/hiddenpath/ai-protocol-mock):
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
# Start mock server (from ai-protocol-mock repo)
|
|
185
|
+
docker-compose up -d
|
|
186
|
+
|
|
187
|
+
# Run tests with mock
|
|
188
|
+
MOCK_HTTP_URL=http://localhost:4010 MOCK_MCP_URL=http://localhost:4010/mcp pytest tests/ -v
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Or in code: `AiClient.create("openai/gpt-4o", base_url="http://localhost:4010")`
|
|
192
|
+
|
|
179
193
|
## 📦 Installation
|
|
180
194
|
|
|
181
195
|
```bash
|
|
@@ -228,6 +242,8 @@ Provider manifests are resolved in a backward-compatible order:
|
|
|
228
242
|
| `AI_LIB_RPS` | Rate limit (requests per second) | - |
|
|
229
243
|
| `AI_LIB_BREAKER_FAILURE_THRESHOLD` | Circuit breaker failure threshold | 5 |
|
|
230
244
|
| `AI_LIB_BREAKER_COOLDOWN_SECS` | Circuit breaker cooldown seconds | 30 |
|
|
245
|
+
| `MOCK_HTTP_URL` | Mock server URL for testing (ai-protocol-mock) | - |
|
|
246
|
+
| `MOCK_MCP_URL` | Mock MCP endpoint for testing | - |
|
|
231
247
|
|
|
232
248
|
### Provider API Keys
|
|
233
249
|
|
|
@@ -90,8 +90,8 @@ ai_lib_python/types/message.py,sha256=gsJD5Bs_Us0J5HaUbgeICrZoXjRDju8p6h844jfCtk
|
|
|
90
90
|
ai_lib_python/types/tool.py,sha256=ftMI2hGBLfyRjWYBT1CQAtlqzidRj2ulzpIw0-EtX8M,5728
|
|
91
91
|
ai_lib_python/utils/__init__.py,sha256=lDDkX8nuQhsZwnRQPD2YNqdcoqtsNGV3rOwQW64U0nE,415
|
|
92
92
|
ai_lib_python/utils/tool_call_assembler.py,sha256=5SboZfqlikLomUUVHh5P3Qeka3mjAM-W3J9Qs4bJW6Q,9639
|
|
93
|
-
ai_lib_python-0.7.
|
|
94
|
-
ai_lib_python-0.7.
|
|
95
|
-
ai_lib_python-0.7.
|
|
96
|
-
ai_lib_python-0.7.
|
|
97
|
-
ai_lib_python-0.7.
|
|
93
|
+
ai_lib_python-0.7.1.dist-info/METADATA,sha256=ptUHiWCRU5BeUUV6qTrqrYNDJf_pyN8jDBz7cjKb0Lo,34102
|
|
94
|
+
ai_lib_python-0.7.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
95
|
+
ai_lib_python-0.7.1.dist-info/licenses/LICENSE-APACHE,sha256=RhOs0uWVx9q0dhQCFzp5z6SR_B02c6GVIqAfG0GRySY,11038
|
|
96
|
+
ai_lib_python-0.7.1.dist-info/licenses/LICENSE-MIT,sha256=UmRJkhXZSqN2Xs1lHghPVSHUY5G7Jm1fyRPPqSQnlhA,1088
|
|
97
|
+
ai_lib_python-0.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|