discovery-engine-api 0.2.152__tar.gz → 0.2.154__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
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: discovery-engine-api
3
- Version: 0.2.152
3
+ Version: 0.2.154
4
4
  Summary: Python SDK for Disco API
5
5
  Project-URL: Homepage, https://www.leap-labs.com
6
6
  Project-URL: Documentation, https://disco.leap-labs.com/llms-full.txt
@@ -1,6 +1,6 @@
1
1
  """Disco Python SDK."""
2
2
 
3
- __version__ = "0.2.152"
3
+ __version__ = "0.2.154"
4
4
 
5
5
  from discovery.client import Engine
6
6
  from discovery.types import (
@@ -3,6 +3,7 @@
3
3
  import asyncio
4
4
  import os
5
5
  import time
6
+ import uuid
6
7
  from pathlib import Path
7
8
  from typing import Any, Dict, List, Optional, Tuple, Union
8
9
 
@@ -1017,6 +1018,7 @@ class Engine:
1017
1018
  response = await dashboard_client.post(
1018
1019
  "/api/run-analysis",
1019
1020
  json=report_payload,
1021
+ headers={"Idempotency-Key": str(uuid.uuid4())},
1020
1022
  )
1021
1023
 
1022
1024
  if response.status_code >= 400:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "discovery-engine-api"
3
- version = "0.2.152"
3
+ version = "0.2.154"
4
4
  description = "Python SDK for Disco API"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"