agenta 0.27.0__py3-none-any.whl → 0.27.0a1__py3-none-any.whl
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.
Potentially problematic release.
This version of agenta might be problematic. Click here for more details.
- agenta/__init__.py +3 -22
- agenta/cli/helper.py +1 -5
- agenta/client/backend/__init__.py +0 -14
- agenta/client/backend/apps/client.py +20 -28
- agenta/client/backend/client.py +2 -25
- agenta/client/backend/containers/client.py +1 -5
- agenta/client/backend/core/__init__.py +1 -2
- agenta/client/backend/core/client_wrapper.py +6 -6
- agenta/client/backend/core/file.py +11 -33
- agenta/client/backend/core/http_client.py +18 -24
- agenta/client/backend/core/pydantic_utilities.py +29 -144
- agenta/client/backend/core/request_options.py +0 -3
- agenta/client/backend/core/serialization.py +42 -139
- agenta/client/backend/evaluations/client.py +2 -7
- agenta/client/backend/evaluators/client.py +1 -349
- agenta/client/backend/observability/client.py +2 -11
- agenta/client/backend/testsets/client.py +10 -10
- agenta/client/backend/types/__init__.py +0 -14
- agenta/client/backend/types/app.py +0 -1
- agenta/client/backend/types/app_variant_response.py +1 -3
- agenta/client/backend/types/create_span.py +2 -3
- agenta/client/backend/types/environment_output.py +0 -1
- agenta/client/backend/types/environment_output_extended.py +0 -1
- agenta/client/backend/types/evaluation.py +2 -1
- agenta/client/backend/types/evaluator.py +0 -2
- agenta/client/backend/types/evaluator_config.py +0 -1
- agenta/client/backend/types/human_evaluation.py +2 -1
- agenta/client/backend/types/llm_tokens.py +2 -2
- agenta/client/backend/types/span.py +0 -1
- agenta/client/backend/types/span_detail.py +1 -7
- agenta/client/backend/types/test_set_output_response.py +2 -5
- agenta/client/backend/types/trace_detail.py +1 -7
- agenta/client/backend/types/with_pagination.py +2 -4
- agenta/client/backend/variants/client.py +273 -1566
- agenta/docker/docker-assets/Dockerfile.cloud.template +1 -1
- agenta/sdk/__init__.py +5 -20
- agenta/sdk/agenta_init.py +26 -30
- agenta/sdk/config_manager.py +205 -0
- agenta/sdk/context/routing.py +5 -6
- agenta/sdk/decorators/routing.py +135 -142
- agenta/sdk/decorators/tracing.py +245 -206
- agenta/sdk/litellm/litellm.py +36 -47
- agenta/sdk/tracing/attributes.py +2 -7
- agenta/sdk/tracing/context.py +2 -5
- agenta/sdk/tracing/conventions.py +8 -10
- agenta/sdk/tracing/exporters.py +6 -15
- agenta/sdk/tracing/inline.py +98 -70
- agenta/sdk/tracing/processors.py +14 -55
- agenta/sdk/tracing/spans.py +4 -16
- agenta/sdk/tracing/tracing.py +50 -54
- agenta/sdk/types.py +2 -61
- agenta/sdk/utils/exceptions.py +1 -31
- {agenta-0.27.0.dist-info → agenta-0.27.0a1.dist-info}/METADATA +1 -1
- {agenta-0.27.0.dist-info → agenta-0.27.0a1.dist-info}/RECORD +56 -67
- agenta/client/backend/types/config_dto.py +0 -32
- agenta/client/backend/types/config_response_model.py +0 -32
- agenta/client/backend/types/evaluator_mapping_output_interface.py +0 -21
- agenta/client/backend/types/evaluator_output_interface.py +0 -21
- agenta/client/backend/types/lifecycle_dto.py +0 -24
- agenta/client/backend/types/reference_dto.py +0 -23
- agenta/client/backend/types/reference_request_model.py +0 -23
- agenta/sdk/managers/__init__.py +0 -6
- agenta/sdk/managers/config.py +0 -318
- agenta/sdk/managers/deployment.py +0 -45
- agenta/sdk/managers/shared.py +0 -639
- agenta/sdk/managers/variant.py +0 -182
- {agenta-0.27.0.dist-info → agenta-0.27.0a1.dist-info}/WHEEL +0 -0
- {agenta-0.27.0.dist-info → agenta-0.27.0a1.dist-info}/entry_points.txt +0 -0
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
3
|
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
import
|
|
5
|
-
from ..core.serialization import FieldMetadata
|
|
4
|
+
import pydantic
|
|
6
5
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
6
|
import typing
|
|
8
|
-
import pydantic
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
class TestSetOutputResponse(UniversalBaseModel):
|
|
12
|
-
id:
|
|
10
|
+
id: str = pydantic.Field(alias="_id")
|
|
13
11
|
name: str
|
|
14
12
|
created_at: str
|
|
15
|
-
updated_at: str
|
|
16
13
|
|
|
17
14
|
if IS_PYDANTIC_V2:
|
|
18
15
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
@@ -1,21 +1,18 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
-
from __future__ import annotations
|
|
4
3
|
from ..core.pydantic_utilities import UniversalBaseModel
|
|
5
|
-
from .span import Span
|
|
6
4
|
import typing
|
|
7
5
|
import datetime as dt
|
|
8
6
|
from .span_variant import SpanVariant
|
|
9
7
|
from .span_status_code import SpanStatusCode
|
|
8
|
+
from .span import Span
|
|
10
9
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
11
10
|
import pydantic
|
|
12
|
-
from ..core.pydantic_utilities import update_forward_refs
|
|
13
11
|
|
|
14
12
|
|
|
15
13
|
class TraceDetail(UniversalBaseModel):
|
|
16
14
|
id: str
|
|
17
15
|
name: str
|
|
18
|
-
project_id: typing.Optional[str] = None
|
|
19
16
|
parent_span_id: typing.Optional[str] = None
|
|
20
17
|
created_at: dt.datetime
|
|
21
18
|
variant: SpanVariant
|
|
@@ -39,6 +36,3 @@ class TraceDetail(UniversalBaseModel):
|
|
|
39
36
|
frozen = True
|
|
40
37
|
smart_union = True
|
|
41
38
|
extra = pydantic.Extra.allow
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
update_forward_refs(Span, TraceDetail=TraceDetail)
|
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
4
|
import typing
|
|
5
|
-
import typing_extensions
|
|
6
|
-
from ..core.serialization import FieldMetadata
|
|
7
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
8
5
|
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
9
7
|
|
|
10
8
|
|
|
11
9
|
class WithPagination(UniversalBaseModel):
|
|
12
10
|
data: typing.List[typing.Optional[typing.Any]]
|
|
13
11
|
total: int
|
|
14
12
|
page: int
|
|
15
|
-
page_size:
|
|
13
|
+
page_size: int = pydantic.Field(alias="pageSize")
|
|
16
14
|
|
|
17
15
|
if IS_PYDANTIC_V2:
|
|
18
16
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|