contex-python 0.1.8__tar.gz → 0.1.9__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.
- {contex_python-0.1.8 → contex_python-0.1.9}/PKG-INFO +1 -1
- {contex_python-0.1.8 → contex_python-0.1.9}/contex/client.py +6 -2
- {contex_python-0.1.8 → contex_python-0.1.9}/contex/models.py +4 -2
- {contex_python-0.1.8 → contex_python-0.1.9}/contex_python.egg-info/PKG-INFO +1 -1
- {contex_python-0.1.8 → contex_python-0.1.9}/pyproject.toml +1 -1
- {contex_python-0.1.8 → contex_python-0.1.9}/LICENSE +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/README.md +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/contex/__init__.py +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/contex/exceptions.py +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/contex_python.egg-info/SOURCES.txt +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/contex_python.egg-info/dependency_links.txt +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/contex_python.egg-info/requires.txt +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/contex_python.egg-info/top_level.txt +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/setup.cfg +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/tests/test_client.py +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/tests/test_integration.py +0 -0
- {contex_python-0.1.8 → contex_python-0.1.9}/tests/test_models.py +0 -0
|
@@ -309,7 +309,7 @@ class ContexAsyncClient:
|
|
|
309
309
|
query=query,
|
|
310
310
|
max_results=max_results,
|
|
311
311
|
)
|
|
312
|
-
result = await self._request("POST", "/api/v1/query", json=request.model_dump())
|
|
312
|
+
result = await self._request("POST", f"/api/v1/projects/{project_id}/query", json=request.model_dump())
|
|
313
313
|
return QueryResponse(**result)
|
|
314
314
|
|
|
315
315
|
# ========================================================================
|
|
@@ -350,7 +350,11 @@ class ContexAsyncClient:
|
|
|
350
350
|
# ========================================================================
|
|
351
351
|
|
|
352
352
|
async def health(self) -> Dict[str, Any]:
|
|
353
|
-
"""Get
|
|
353
|
+
"""Get basic health status (always returns healthy if server is running)"""
|
|
354
|
+
return await self._request("GET", "/health")
|
|
355
|
+
|
|
356
|
+
async def health_detailed(self) -> Dict[str, Any]:
|
|
357
|
+
"""Get comprehensive health status with component details (may return unhealthy for degraded components)"""
|
|
354
358
|
return await self._request("GET", "/api/v1/health")
|
|
355
359
|
|
|
356
360
|
async def ready(self) -> Dict[str, Any]:
|
|
@@ -171,9 +171,11 @@ class QueryResponse(BaseModel):
|
|
|
171
171
|
Response from semantic query.
|
|
172
172
|
|
|
173
173
|
Contains matched data items sorted by relevance.
|
|
174
|
+
Matches server's QueryResponse in src/core/models.py.
|
|
174
175
|
"""
|
|
175
|
-
|
|
176
|
-
|
|
176
|
+
query: str = Field(..., description="The query that was executed")
|
|
177
|
+
matches: List[MatchedDataSource] = Field(..., description="Matched data sources")
|
|
178
|
+
total_matches: int = Field(..., description="Total number of matches found")
|
|
177
179
|
|
|
178
180
|
|
|
179
181
|
class APIKeyResponse(BaseModel):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|