futureagi 0.3.4__tar.gz → 0.3.5__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.
- {futureagi-0.3.4 → futureagi-0.3.5}/PKG-INFO +1 -1
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/api/auth.py +2 -2
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/client.py +1 -1
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/evals/evaluator.py +1 -1
- {futureagi-0.3.4 → futureagi-0.3.5}/pyproject.toml +2 -1
- {futureagi-0.3.4 → futureagi-0.3.5}/LICENSE.md +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/README.md +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/api/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/api/types.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/datasets/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/datasets/client.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/datasets/types.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/evals/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/evals/templates.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/evals/types.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/integrations/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/integrations/providers/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/integrations/providers/types.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/testcases/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/testcases/conversational_test_case.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/testcases/general.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/testcases/llm_test_case.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/testcases/mllm_test_case.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/testcases/utils.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/__init__.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/constants.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/errors.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/executor.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/logging.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/routes.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/types.py +0 -0
- {futureagi-0.3.4 → futureagi-0.3.5}/fi/utils/utils.py +0 -0
|
@@ -20,7 +20,7 @@ from fi.utils.errors import MissingAuthError
|
|
|
20
20
|
from fi.utils.executor import BoundedExecutor
|
|
21
21
|
|
|
22
22
|
T = TypeVar("T")
|
|
23
|
-
U = TypeVar("U"
|
|
23
|
+
U = TypeVar("U")
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class ResponseHandler(Generic[T, U], ABC):
|
|
@@ -69,7 +69,7 @@ class HttpClient:
|
|
|
69
69
|
def request(
|
|
70
70
|
self,
|
|
71
71
|
config: RequestConfig,
|
|
72
|
-
response_handler: Optional[ResponseHandler[T]] = None,
|
|
72
|
+
response_handler: Optional[ResponseHandler[T, U]] = None,
|
|
73
73
|
) -> Union[Response, T]:
|
|
74
74
|
"""Make an HTTP request with retries and response handling"""
|
|
75
75
|
|
|
@@ -16,7 +16,7 @@ from fi.utils.types import Environments, ModelTypes
|
|
|
16
16
|
from fi.utils.utils import is_timestamp_in_range
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
class ClientResponseHandler(ResponseHandler[Dict]):
|
|
19
|
+
class ClientResponseHandler(ResponseHandler[Dict, None]):
|
|
20
20
|
"""Handles responses for client requests"""
|
|
21
21
|
|
|
22
22
|
@classmethod
|
|
@@ -12,7 +12,7 @@ from fi.utils.errors import InvalidAuthError
|
|
|
12
12
|
from fi.utils.routes import Routes
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
class EvalResponseHandler(ResponseHandler[BatchRunResult]):
|
|
15
|
+
class EvalResponseHandler(ResponseHandler[BatchRunResult, None]):
|
|
16
16
|
"""Handles responses for evaluation requests"""
|
|
17
17
|
|
|
18
18
|
@classmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "futureagi"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.5"
|
|
4
4
|
description = "We help GenAI teams maintain high-accuracy for their Models in production."
|
|
5
5
|
authors = ["Future AGI <no-reply@futureagi.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -29,6 +29,7 @@ pydantic = "^2.9.2"
|
|
|
29
29
|
pre-commit = "^4.0.1"
|
|
30
30
|
pytest = "^8.3.3"
|
|
31
31
|
pytest-cov = "^6.0.0"
|
|
32
|
+
tox = "^4.23.2"
|
|
32
33
|
|
|
33
34
|
[build-system]
|
|
34
35
|
requires = ["poetry-core"]
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|