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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: contex-python
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Official Python SDK for Contex - Semantic context routing for AI agents
5
5
  Author-email: Cahoots <admin@cahoots.cc>
6
6
  License: MIT
@@ -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 comprehensive health status"""
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
- results: List[MatchedData] = Field(..., description="Matched data items")
176
- total: int = Field(..., description="Total number of matches")
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: contex-python
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Official Python SDK for Contex - Semantic context routing for AI agents
5
5
  Author-email: Cahoots <admin@cahoots.cc>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "contex-python"
7
- version = "0.1.8"
7
+ version = "0.1.9"
8
8
  description = "Official Python SDK for Contex - Semantic context routing for AI agents"
9
9
  readme = "README.md"
10
10
  authors = [
File without changes
File without changes
File without changes