aiutils-sdk 0.2.0__tar.gz → 0.2.2__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.
Files changed (22) hide show
  1. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/PKG-INFO +1 -1
  2. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/__init__.py +1 -1
  3. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/client.py +2 -0
  4. aiutils_sdk-0.2.2/aiutils_sdk/research.py +101 -0
  5. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk.egg-info/PKG-INFO +1 -1
  6. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk.egg-info/SOURCES.txt +1 -0
  7. aiutils_sdk-0.2.2/pyproject.toml +20 -0
  8. aiutils_sdk-0.2.0/pyproject.toml +0 -27
  9. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/README.md +0 -0
  10. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/chat.py +0 -0
  11. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/embeddings.py +0 -0
  12. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/exceptions.py +0 -0
  13. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/generations.py +0 -0
  14. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/images.py +0 -0
  15. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/models.py +0 -0
  16. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/wallet.py +0 -0
  17. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk/webhooks.py +0 -0
  18. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk.egg-info/dependency_links.txt +0 -0
  19. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk.egg-info/requires.txt +0 -0
  20. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/aiutils_sdk.egg-info/top_level.txt +0 -0
  21. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/setup.cfg +0 -0
  22. {aiutils_sdk-0.2.0 → aiutils_sdk-0.2.2}/tests/test_sdk.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiutils-sdk
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Python SDK for the AiUtils Developer API — 100+ AI models via one unified API
5
5
  Author-email: AiUtils Team <dev@aiutils.io>
6
6
  License-Expression: MIT
@@ -6,7 +6,7 @@ from aiutils_sdk.exceptions import (
6
6
  RateLimitError, APIError, ProviderError,
7
7
  )
8
8
 
9
- __version__ = "0.2.0"
9
+ __version__ = "0.2.2"
10
10
  __all__ = [
11
11
  "AiUtils",
12
12
  "ChatResponse", "ChatStreamChunk",
@@ -11,6 +11,7 @@ from aiutils_sdk.images import Images
11
11
  from aiutils_sdk.embeddings import Embeddings
12
12
  from aiutils_sdk.generations import Generations
13
13
  from aiutils_sdk.models import Models
14
+ from aiutils_sdk.research import Research
14
15
  from aiutils_sdk.wallet import Wallet
15
16
  from aiutils_sdk.webhooks import Webhooks
16
17
  from aiutils_sdk.exceptions import AuthenticationError, APIError
@@ -51,6 +52,7 @@ class AiUtils:
51
52
  self.embeddings = Embeddings(self)
52
53
  self.generations = Generations(self)
53
54
  self.models = Models(self)
55
+ self.research = Research(self)
54
56
  self.wallet = Wallet(self)
55
57
  self.webhooks = Webhooks(self)
56
58
 
@@ -0,0 +1,101 @@
1
+ """AiUtils SDK — Research endpoints (v1 YOYO + v2 HARNESS)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import logging
6
+ from typing import Any, Dict, List, Optional
7
+
8
+ logger = logging.getLogger(__name__)
9
+
10
+
11
+ class Research:
12
+ """Research API client.
13
+
14
+ Args:
15
+ client: The AiUtils client instance.
16
+ """
17
+
18
+ def __init__(self, client) -> None:
19
+ logger.debug("Entered into Research.__init__")
20
+ self._client = client
21
+
22
+ def run(
23
+ self,
24
+ *,
25
+ prompt: str,
26
+ thinking_level: str = "medium",
27
+ model_vendor: Optional[str] = None,
28
+ model_name: Optional[str] = None,
29
+ ) -> Dict[str, Any]:
30
+ """Run YOYO multi-agent deep research (v1)."""
31
+ logger.debug(f"Entered into Research.run: prompt={prompt[:60]!r}")
32
+ body: Dict[str, Any] = {"prompt": prompt, "thinking_level": thinking_level}
33
+ if model_vendor:
34
+ body["model_vendor"] = model_vendor
35
+ if model_name:
36
+ body["model_name"] = model_name
37
+ return self._client._request("POST", "/v1/research/run", json=body)
38
+
39
+ def run_v2(
40
+ self,
41
+ *,
42
+ prompt: str,
43
+ thinking_level: str = "medium",
44
+ domains: Optional[List[str]] = None,
45
+ max_agents: int = 5,
46
+ max_credits: float = 500.0,
47
+ model_vendor: Optional[str] = None,
48
+ model_name: Optional[str] = None,
49
+ ) -> Dict[str, Any]:
50
+ """Run collaborative multi-model research (v2 HARNESS)."""
51
+ logger.debug(f"Entered into Research.run_v2: prompt={prompt[:60]!r}")
52
+ body: Dict[str, Any] = {
53
+ "prompt": prompt,
54
+ "thinking_level": thinking_level,
55
+ "max_agents": max_agents,
56
+ "max_credits": max_credits,
57
+ }
58
+ if domains:
59
+ body["domains"] = domains
60
+ if model_vendor:
61
+ body["model_vendor"] = model_vendor
62
+ if model_name:
63
+ body["model_name"] = model_name
64
+ return self._client._request("POST", "/v1/research-v2", json=body)
65
+
66
+ def estimate_v2(
67
+ self,
68
+ *,
69
+ prompt: str,
70
+ thinking_level: str = "medium",
71
+ domains: Optional[List[str]] = None,
72
+ max_agents: int = 5,
73
+ ) -> Dict[str, Any]:
74
+ """Estimate credits for collaborative research."""
75
+ logger.debug(f"Entered into Research.estimate_v2: prompt={prompt[:60]!r}")
76
+ body: Dict[str, Any] = {
77
+ "prompt": prompt,
78
+ "thinking_level": thinking_level,
79
+ "max_agents": max_agents,
80
+ }
81
+ if domains:
82
+ body["domains"] = domains
83
+ return self._client._request("POST", "/v1/research-v2/estimate", json=body)
84
+
85
+ @staticmethod
86
+ def list_domains() -> List[Dict[str, str]]:
87
+ """List all available research domains."""
88
+ return [
89
+ {"key": "pharma_research", "label": "Pharma Research", "primary_model": "claude-opus-5"},
90
+ {"key": "medical_research", "label": "Medical Research", "primary_model": "claude-sonnet-5"},
91
+ {"key": "business_enterprise", "label": "Business & Enterprise", "primary_model": "claude-sonnet-5"},
92
+ {"key": "legal_compliance", "label": "Legal & Compliance", "primary_model": "claude-opus-5"},
93
+ {"key": "seo_research", "label": "SEO Research", "primary_model": "deepseek-chat"},
94
+ {"key": "marketing_research", "label": "Marketing Research", "primary_model": "claude-sonnet-5"},
95
+ {"key": "product_research", "label": "Product Research", "primary_model": "claude-sonnet-5"},
96
+ {"key": "knowledge_research", "label": "Knowledge Research", "primary_model": "deepseek-reasoner"},
97
+ {"key": "idea_research", "label": "Idea Research", "primary_model": "claude-sonnet-5"},
98
+ {"key": "ads_research", "label": "Ads Research", "primary_model": "deepseek-chat"},
99
+ {"key": "technical_design", "label": "Technical Design", "primary_model": "claude-opus-5"},
100
+ {"key": "scientific_research", "label": "Scientific Research", "primary_model": "claude-opus-5"},
101
+ ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiutils-sdk
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Python SDK for the AiUtils Developer API — 100+ AI models via one unified API
5
5
  Author-email: AiUtils Team <dev@aiutils.io>
6
6
  License-Expression: MIT
@@ -8,6 +8,7 @@ aiutils_sdk/exceptions.py
8
8
  aiutils_sdk/generations.py
9
9
  aiutils_sdk/images.py
10
10
  aiutils_sdk/models.py
11
+ aiutils_sdk/research.py
11
12
  aiutils_sdk/wallet.py
12
13
  aiutils_sdk/webhooks.py
13
14
  aiutils_sdk.egg-info/PKG-INFO
@@ -0,0 +1,20 @@
1
+ [project]
2
+ name = "aiutils-sdk"
3
+ version = "0.2.2"
4
+ description = "Python SDK for the AiUtils Developer API — 100+ AI models via one unified API"
5
+ requires-python = ">=3.9"
6
+ dependencies = [ "httpx>=0.25.0", "pydantic>=2.0",]
7
+ readme = "README.md"
8
+ license = "MIT"
9
+ keywords = [ "ai", "llm", "openai", "anthropic", "generation", "sdk",]
10
+ classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.11",]
11
+ [[project.authors]]
12
+ name = "AiUtils Team"
13
+ email = "dev@aiutils.io"
14
+
15
+ [build-system]
16
+ requires = [ "setuptools>=70.0",]
17
+ build-backend = "setuptools.build_meta"
18
+
19
+ [tool.setuptools.packages.find]
20
+ include = [ "aiutils_sdk*",]
@@ -1,27 +0,0 @@
1
- [project]
2
- name = "aiutils-sdk"
3
- version = "0.2.0"
4
- description = "Python SDK for the AiUtils Developer API — 100+ AI models via one unified API"
5
- requires-python = ">=3.9"
6
- dependencies = [
7
- "httpx>=0.25.0",
8
- "pydantic>=2.0",
9
- ]
10
- readme = "README.md"
11
- license = "MIT"
12
- authors = [{ name = "AiUtils Team", email = "dev@aiutils.io" }]
13
- keywords = ["ai", "llm", "openai", "anthropic", "generation", "sdk"]
14
- classifiers = [
15
- "Development Status :: 4 - Beta",
16
- "Intended Audience :: Developers",
17
- "Programming Language :: Python :: 3",
18
- "Programming Language :: Python :: 3.9",
19
- "Programming Language :: Python :: 3.11",
20
- ]
21
-
22
- [build-system]
23
- requires = ["setuptools>=70.0"]
24
- build-backend = "setuptools.build_meta"
25
-
26
- [tool.setuptools.packages.find]
27
- include = ["aiutils_sdk*"]
File without changes
File without changes