contex-python 0.1.1__tar.gz → 0.1.3__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.1
3
+ Version: 0.1.3
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
@@ -200,7 +200,7 @@ class ContexAsyncClient:
200
200
  data_format=data_format,
201
201
  metadata=metadata,
202
202
  )
203
- return await self._request("POST", "/api/data/publish", json=event.model_dump())
203
+ return await self._request("POST", "/api/v1/v1/data/publish", json=event.model_dump())
204
204
 
205
205
  # ========================================================================
206
206
  # Agent Management
@@ -248,7 +248,7 @@ class ContexAsyncClient:
248
248
  webhook_secret=webhook_secret,
249
249
  last_seen_sequence=last_seen_sequence,
250
250
  )
251
- result = await self._request("POST", "/api/agents/register", json=registration.model_dump())
251
+ result = await self._request("POST", "/api/v1/agents/register", json=registration.model_dump())
252
252
  return RegistrationResponse(**result)
253
253
 
254
254
  async def unregister_agent(self, agent_id: str) -> Dict[str, Any]:
@@ -261,7 +261,7 @@ class ContexAsyncClient:
261
261
  Returns:
262
262
  Response confirming unregistration
263
263
  """
264
- return await self._request("DELETE", f"/api/agents/{agent_id}")
264
+ return await self._request("DELETE", f"/api/v1/agents/{agent_id}")
265
265
 
266
266
  async def get_agent_status(self, agent_id: str) -> Dict[str, Any]:
267
267
  """
@@ -273,7 +273,7 @@ class ContexAsyncClient:
273
273
  Returns:
274
274
  Agent status information
275
275
  """
276
- return await self._request("GET", f"/api/agents/{agent_id}/status")
276
+ return await self._request("GET", f"/api/v1/agents/{agent_id}/status")
277
277
 
278
278
  # ========================================================================
279
279
  # Querying
@@ -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/query", json=request.model_dump())
312
+ result = await self._request("POST", "/api/v1/query", json=request.model_dump())
313
313
  return QueryResponse(**result)
314
314
 
315
315
  # ========================================================================
@@ -329,12 +329,12 @@ class ContexAsyncClient:
329
329
  Note:
330
330
  The API key is only returned once. Store it securely!
331
331
  """
332
- result = await self._request("POST", f"/api/auth/keys?name={name}")
332
+ result = await self._request("POST", f"/api/v1/auth/keys?name={name}")
333
333
  return APIKeyResponse(**result)
334
334
 
335
335
  async def list_api_keys(self) -> List[Dict[str, Any]]:
336
336
  """List all API keys (without the actual key values)"""
337
- return await self._request("GET", "/api/auth/keys")
337
+ return await self._request("GET", "/api/v1/auth/keys")
338
338
 
339
339
  async def revoke_api_key(self, key_id: str) -> Dict[str, Any]:
340
340
  """
@@ -343,7 +343,7 @@ class ContexAsyncClient:
343
343
  Args:
344
344
  key_id: Key identifier
345
345
  """
346
- return await self._request("DELETE", f"/api/auth/keys/{key_id}")
346
+ return await self._request("DELETE", f"/api/v1/auth/keys/{key_id}")
347
347
 
348
348
  # ========================================================================
349
349
  # Health & Status
@@ -351,15 +351,15 @@ class ContexAsyncClient:
351
351
 
352
352
  async def health(self) -> Dict[str, Any]:
353
353
  """Get comprehensive health status"""
354
- return await self._request("GET", "/api/health")
354
+ return await self._request("GET", "/api/v1/health")
355
355
 
356
356
  async def ready(self) -> Dict[str, Any]:
357
357
  """Get readiness status"""
358
- return await self._request("GET", "/api/health/ready")
358
+ return await self._request("GET", "/api/v1/health/ready")
359
359
 
360
360
  async def rate_limit_status(self) -> RateLimitInfo:
361
361
  """Get current rate limit status"""
362
- result = await self._request("GET", "/api/rate-limit/status")
362
+ result = await self._request("GET", "/api/v1/rate-limit/status")
363
363
  return RateLimitInfo(**result)
364
364
 
365
365
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: contex-python
3
- Version: 0.1.1
3
+ Version: 0.1.3
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.1"
7
+ version = "0.1.3"
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