agenta 0.27.2a2__py3-none-any.whl → 0.27.4a0__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.

Files changed (54) hide show
  1. agenta/client/backend/__init__.py +0 -63
  2. agenta/client/backend/client.py +22 -22
  3. agenta/client/backend/core/http_client.py +7 -15
  4. agenta/client/backend/observability/client.py +4 -4
  5. agenta/client/backend/types/__init__.py +0 -58
  6. agenta/client/backend/variants/client.py +16 -24
  7. agenta/sdk/__init__.py +0 -2
  8. agenta/sdk/agenta_init.py +7 -9
  9. agenta/sdk/decorators/routing.py +29 -5
  10. agenta/sdk/middleware/__init__.py +0 -0
  11. agenta/sdk/middleware/auth.py +136 -0
  12. agenta/sdk/middleware/cache.py +43 -0
  13. agenta/sdk/tracing/exporters.py +1 -1
  14. agenta/sdk/tracing/inline.py +140 -29
  15. agenta/sdk/tracing/processors.py +1 -1
  16. agenta/sdk/types.py +2 -5
  17. {agenta-0.27.2a2.dist-info → agenta-0.27.4a0.dist-info}/METADATA +1 -1
  18. {agenta-0.27.2a2.dist-info → agenta-0.27.4a0.dist-info}/RECORD +20 -51
  19. agenta/client/backend/observability_v_1/__init__.py +0 -5
  20. agenta/client/backend/observability_v_1/client.py +0 -560
  21. agenta/client/backend/observability_v_1/types/__init__.py +0 -6
  22. agenta/client/backend/observability_v_1/types/format.py +0 -5
  23. agenta/client/backend/observability_v_1/types/query_traces_response.py +0 -11
  24. agenta/client/backend/types/agenta_node_dto.py +0 -48
  25. agenta/client/backend/types/agenta_node_dto_nodes_value.py +0 -6
  26. agenta/client/backend/types/agenta_nodes_response.py +0 -30
  27. agenta/client/backend/types/agenta_root_dto.py +0 -30
  28. agenta/client/backend/types/agenta_roots_response.py +0 -30
  29. agenta/client/backend/types/agenta_tree_dto.py +0 -30
  30. agenta/client/backend/types/agenta_trees_response.py +0 -30
  31. agenta/client/backend/types/collect_status_response.py +0 -22
  32. agenta/client/backend/types/exception_dto.py +0 -26
  33. agenta/client/backend/types/link_dto.py +0 -24
  34. agenta/client/backend/types/node_dto.py +0 -24
  35. agenta/client/backend/types/node_type.py +0 -19
  36. agenta/client/backend/types/o_tel_context_dto.py +0 -22
  37. agenta/client/backend/types/o_tel_event_dto.py +0 -23
  38. agenta/client/backend/types/o_tel_extra_dto.py +0 -26
  39. agenta/client/backend/types/o_tel_link_dto.py +0 -23
  40. agenta/client/backend/types/o_tel_span_dto.py +0 -37
  41. agenta/client/backend/types/o_tel_span_kind.py +0 -15
  42. agenta/client/backend/types/o_tel_spans_response.py +0 -24
  43. agenta/client/backend/types/o_tel_status_code.py +0 -8
  44. agenta/client/backend/types/parent_dto.py +0 -21
  45. agenta/client/backend/types/root_dto.py +0 -21
  46. agenta/client/backend/types/span_dto.py +0 -54
  47. agenta/client/backend/types/span_dto_nodes_value.py +0 -9
  48. agenta/client/backend/types/status_code.py +0 -5
  49. agenta/client/backend/types/status_dto.py +0 -23
  50. agenta/client/backend/types/time_dto.py +0 -23
  51. agenta/client/backend/types/tree_dto.py +0 -23
  52. agenta/client/backend/types/tree_type.py +0 -5
  53. {agenta-0.27.2a2.dist-info → agenta-0.27.4a0.dist-info}/WHEEL +0 -0
  54. {agenta-0.27.2a2.dist-info → agenta-0.27.4a0.dist-info}/entry_points.txt +0 -0
@@ -1,13 +1,6 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
3
  from .types import (
4
- AgentaNodeDto,
5
- AgentaNodeDtoNodesValue,
6
- AgentaNodesResponse,
7
- AgentaRootDto,
8
- AgentaRootsResponse,
9
- AgentaTreeDto,
10
- AgentaTreesResponse,
11
4
  AggregatedResult,
12
5
  AggregatedResultEvaluatorConfig,
13
6
  App,
@@ -15,7 +8,6 @@ from .types import (
15
8
  AppVariantRevision,
16
9
  BaseOutput,
17
10
  BodyImportTestset,
18
- CollectStatusResponse,
19
11
  ConfigDb,
20
12
  ConfigDto,
21
13
  ConfigResponseModel,
@@ -40,7 +32,6 @@ from .types import (
40
32
  EvaluatorConfig,
41
33
  EvaluatorMappingOutputInterface,
42
34
  EvaluatorOutputInterface,
43
- ExceptionDto,
44
35
  GetConfigResponse,
45
36
  HttpValidationError,
46
37
  HumanEvaluation,
@@ -52,50 +43,30 @@ from .types import (
52
43
  Image,
53
44
  InviteRequest,
54
45
  LifecycleDto,
55
- LinkDto,
56
46
  ListApiKeysResponse,
57
47
  LlmRunRateLimit,
58
48
  LlmTokens,
59
49
  LmProvidersEnum,
60
50
  NewHumanEvaluation,
61
51
  NewTestset,
62
- NodeDto,
63
- NodeType,
64
- OTelContextDto,
65
- OTelEventDto,
66
- OTelExtraDto,
67
- OTelLinkDto,
68
- OTelSpanDto,
69
- OTelSpanKind,
70
- OTelSpansResponse,
71
- OTelStatusCode,
72
52
  Organization,
73
53
  OrganizationOutput,
74
54
  Outputs,
75
- ParentDto,
76
55
  Permission,
77
56
  ReferenceDto,
78
57
  ReferenceRequestModel,
79
58
  Result,
80
- RootDto,
81
59
  Score,
82
60
  SimpleEvaluationOutput,
83
61
  Span,
84
62
  SpanDetail,
85
- SpanDto,
86
- SpanDtoNodesValue,
87
63
  SpanStatusCode,
88
64
  SpanVariant,
89
- StatusCode,
90
- StatusDto,
91
65
  Template,
92
66
  TemplateImageInfo,
93
67
  TestSetOutputResponse,
94
68
  TestSetSimpleResponse,
95
- TimeDto,
96
69
  TraceDetail,
97
- TreeDto,
98
- TreeType,
99
70
  UpdateAppOutput,
100
71
  Uri,
101
72
  ValidationError,
@@ -119,25 +90,16 @@ from . import (
119
90
  evaluations,
120
91
  evaluators,
121
92
  observability,
122
- observability_v_1,
123
93
  testsets,
124
94
  variants,
125
95
  )
126
96
  from .client import AgentaApi, AsyncAgentaApi
127
97
  from .containers import ContainerTemplatesResponse
128
- from .observability_v_1 import Format, QueryTracesResponse
129
98
  from .variants import AddVariantFromBaseAndConfigResponse
130
99
 
131
100
  __all__ = [
132
101
  "AddVariantFromBaseAndConfigResponse",
133
102
  "AgentaApi",
134
- "AgentaNodeDto",
135
- "AgentaNodeDtoNodesValue",
136
- "AgentaNodesResponse",
137
- "AgentaRootDto",
138
- "AgentaRootsResponse",
139
- "AgentaTreeDto",
140
- "AgentaTreesResponse",
141
103
  "AggregatedResult",
142
104
  "AggregatedResultEvaluatorConfig",
143
105
  "App",
@@ -146,7 +108,6 @@ __all__ = [
146
108
  "AsyncAgentaApi",
147
109
  "BaseOutput",
148
110
  "BodyImportTestset",
149
- "CollectStatusResponse",
150
111
  "ConfigDb",
151
112
  "ConfigDto",
152
113
  "ConfigResponseModel",
@@ -172,8 +133,6 @@ __all__ = [
172
133
  "EvaluatorConfig",
173
134
  "EvaluatorMappingOutputInterface",
174
135
  "EvaluatorOutputInterface",
175
- "ExceptionDto",
176
- "Format",
177
136
  "GetConfigResponse",
178
137
  "HttpValidationError",
179
138
  "HumanEvaluation",
@@ -185,51 +144,30 @@ __all__ = [
185
144
  "Image",
186
145
  "InviteRequest",
187
146
  "LifecycleDto",
188
- "LinkDto",
189
147
  "ListApiKeysResponse",
190
148
  "LlmRunRateLimit",
191
149
  "LlmTokens",
192
150
  "LmProvidersEnum",
193
151
  "NewHumanEvaluation",
194
152
  "NewTestset",
195
- "NodeDto",
196
- "NodeType",
197
- "OTelContextDto",
198
- "OTelEventDto",
199
- "OTelExtraDto",
200
- "OTelLinkDto",
201
- "OTelSpanDto",
202
- "OTelSpanKind",
203
- "OTelSpansResponse",
204
- "OTelStatusCode",
205
153
  "Organization",
206
154
  "OrganizationOutput",
207
155
  "Outputs",
208
- "ParentDto",
209
156
  "Permission",
210
- "QueryTracesResponse",
211
157
  "ReferenceDto",
212
158
  "ReferenceRequestModel",
213
159
  "Result",
214
- "RootDto",
215
160
  "Score",
216
161
  "SimpleEvaluationOutput",
217
162
  "Span",
218
163
  "SpanDetail",
219
- "SpanDto",
220
- "SpanDtoNodesValue",
221
164
  "SpanStatusCode",
222
165
  "SpanVariant",
223
- "StatusCode",
224
- "StatusDto",
225
166
  "Template",
226
167
  "TemplateImageInfo",
227
168
  "TestSetOutputResponse",
228
169
  "TestSetSimpleResponse",
229
- "TimeDto",
230
170
  "TraceDetail",
231
- "TreeDto",
232
- "TreeType",
233
171
  "UnprocessableEntityError",
234
172
  "UpdateAppOutput",
235
173
  "Uri",
@@ -251,7 +189,6 @@ __all__ = [
251
189
  "evaluations",
252
190
  "evaluators",
253
191
  "observability",
254
- "observability_v_1",
255
192
  "testsets",
256
193
  "variants",
257
194
  ]
@@ -13,7 +13,6 @@ from .containers.client import ContainersClient
13
13
  from .environments.client import EnvironmentsClient
14
14
  from .bases.client import BasesClient
15
15
  from .configs.client import ConfigsClient
16
- from .observability_v_1.client import ObservabilityV1Client
17
16
  from .core.request_options import RequestOptions
18
17
  from .types.list_api_keys_response import ListApiKeysResponse
19
18
  from .core.pydantic_utilities import parse_obj_as
@@ -41,7 +40,6 @@ from .containers.client import AsyncContainersClient
41
40
  from .environments.client import AsyncEnvironmentsClient
42
41
  from .bases.client import AsyncBasesClient
43
42
  from .configs.client import AsyncConfigsClient
44
- from .observability_v_1.client import AsyncObservabilityV1Client
45
43
 
46
44
  # this is used as the default value for optional parameters
47
45
  OMIT = typing.cast(typing.Any, ...)
@@ -91,13 +89,17 @@ class AgentaApi:
91
89
  self._client_wrapper = SyncClientWrapper(
92
90
  base_url=base_url,
93
91
  api_key=api_key,
94
- httpx_client=httpx_client
95
- if httpx_client is not None
96
- else httpx.Client(
97
- timeout=_defaulted_timeout, follow_redirects=follow_redirects
98
- )
99
- if follow_redirects is not None
100
- else httpx.Client(timeout=_defaulted_timeout),
92
+ httpx_client=(
93
+ httpx_client
94
+ if httpx_client is not None
95
+ else (
96
+ httpx.Client(
97
+ timeout=_defaulted_timeout, follow_redirects=follow_redirects
98
+ )
99
+ if follow_redirects is not None
100
+ else httpx.Client(timeout=_defaulted_timeout)
101
+ )
102
+ ),
101
103
  timeout=_defaulted_timeout,
102
104
  )
103
105
  self.observability = ObservabilityClient(client_wrapper=self._client_wrapper)
@@ -110,9 +112,6 @@ class AgentaApi:
110
112
  self.environments = EnvironmentsClient(client_wrapper=self._client_wrapper)
111
113
  self.bases = BasesClient(client_wrapper=self._client_wrapper)
112
114
  self.configs = ConfigsClient(client_wrapper=self._client_wrapper)
113
- self.observability_v_1 = ObservabilityV1Client(
114
- client_wrapper=self._client_wrapper
115
- )
116
115
 
117
116
  def list_api_keys(
118
117
  self, *, request_options: typing.Optional[RequestOptions] = None
@@ -1620,13 +1619,17 @@ class AsyncAgentaApi:
1620
1619
  self._client_wrapper = AsyncClientWrapper(
1621
1620
  base_url=base_url,
1622
1621
  api_key=api_key,
1623
- httpx_client=httpx_client
1624
- if httpx_client is not None
1625
- else httpx.AsyncClient(
1626
- timeout=_defaulted_timeout, follow_redirects=follow_redirects
1627
- )
1628
- if follow_redirects is not None
1629
- else httpx.AsyncClient(timeout=_defaulted_timeout),
1622
+ httpx_client=(
1623
+ httpx_client
1624
+ if httpx_client is not None
1625
+ else (
1626
+ httpx.AsyncClient(
1627
+ timeout=_defaulted_timeout, follow_redirects=follow_redirects
1628
+ )
1629
+ if follow_redirects is not None
1630
+ else httpx.AsyncClient(timeout=_defaulted_timeout)
1631
+ )
1632
+ ),
1630
1633
  timeout=_defaulted_timeout,
1631
1634
  )
1632
1635
  self.observability = AsyncObservabilityClient(
@@ -1641,9 +1644,6 @@ class AsyncAgentaApi:
1641
1644
  self.environments = AsyncEnvironmentsClient(client_wrapper=self._client_wrapper)
1642
1645
  self.bases = AsyncBasesClient(client_wrapper=self._client_wrapper)
1643
1646
  self.configs = AsyncConfigsClient(client_wrapper=self._client_wrapper)
1644
- self.observability_v_1 = AsyncObservabilityV1Client(
1645
- client_wrapper=self._client_wrapper
1646
- )
1647
1647
 
1648
1648
  async def list_api_keys(
1649
1649
  self, *, request_options: typing.Optional[RequestOptions] = None
@@ -148,9 +148,9 @@ def get_request_body(
148
148
  json_body = maybe_filter_request_body(json, request_options, omit)
149
149
 
150
150
  # If you have an empty JSON body, you should just send None
151
- return (
152
- json_body if json_body != {} else None
153
- ), data_body if data_body != {} else None
151
+ return (json_body if json_body != {} else None), (
152
+ data_body if data_body != {} else None
153
+ )
154
154
 
155
155
 
156
156
  class HttpClient:
@@ -250,9 +250,7 @@ class HttpClient:
250
250
  data=data_body,
251
251
  content=content,
252
252
  files=(
253
- convert_file_dict_to_httpx_tuples(
254
- remove_omit_from_dict(remove_none_from_dict(files), omit)
255
- )
253
+ convert_file_dict_to_httpx_tuples(remove_none_from_dict(files))
256
254
  if (files is not None and files is not omit)
257
255
  else None
258
256
  ),
@@ -353,9 +351,7 @@ class HttpClient:
353
351
  data=data_body,
354
352
  content=content,
355
353
  files=(
356
- convert_file_dict_to_httpx_tuples(
357
- remove_omit_from_dict(remove_none_from_dict(files), omit)
358
- )
354
+ convert_file_dict_to_httpx_tuples(remove_none_from_dict(files))
359
355
  if (files is not None and files is not omit)
360
356
  else None
361
357
  ),
@@ -462,9 +458,7 @@ class AsyncHttpClient:
462
458
  data=data_body,
463
459
  content=content,
464
460
  files=(
465
- convert_file_dict_to_httpx_tuples(
466
- remove_omit_from_dict(remove_none_from_dict(files), omit)
467
- )
461
+ convert_file_dict_to_httpx_tuples(remove_none_from_dict(files))
468
462
  if files is not None
469
463
  else None
470
464
  ),
@@ -564,9 +558,7 @@ class AsyncHttpClient:
564
558
  data=data_body,
565
559
  content=content,
566
560
  files=(
567
- convert_file_dict_to_httpx_tuples(
568
- remove_omit_from_dict(remove_none_from_dict(files), omit)
569
- )
561
+ convert_file_dict_to_httpx_tuples(remove_none_from_dict(files))
570
562
  if files is not None
571
563
  else None
572
564
  ),
@@ -280,7 +280,7 @@ class ObservabilityClient:
280
280
  raise ApiError(status_code=_response.status_code, body=_response.text)
281
281
  raise ApiError(status_code=_response.status_code, body=_response_json)
282
282
 
283
- def delete_traces_legacy(
283
+ def delete_traces(
284
284
  self,
285
285
  *,
286
286
  request: typing.Sequence[str],
@@ -307,7 +307,7 @@ class ObservabilityClient:
307
307
  api_key="YOUR_API_KEY",
308
308
  base_url="https://yourhost.com/path/to/api",
309
309
  )
310
- client.observability.delete_traces_legacy(
310
+ client.observability.delete_traces(
311
311
  request=["string"],
312
312
  )
313
313
  """
@@ -901,7 +901,7 @@ class AsyncObservabilityClient:
901
901
  raise ApiError(status_code=_response.status_code, body=_response.text)
902
902
  raise ApiError(status_code=_response.status_code, body=_response_json)
903
903
 
904
- async def delete_traces_legacy(
904
+ async def delete_traces(
905
905
  self,
906
906
  *,
907
907
  request: typing.Sequence[str],
@@ -933,7 +933,7 @@ class AsyncObservabilityClient:
933
933
 
934
934
 
935
935
  async def main() -> None:
936
- await client.observability.delete_traces_legacy(
936
+ await client.observability.delete_traces(
937
937
  request=["string"],
938
938
  )
939
939
 
@@ -1,12 +1,5 @@
1
1
  # This file was auto-generated by Fern from our API Definition.
2
2
 
3
- from .agenta_node_dto import AgentaNodeDto
4
- from .agenta_node_dto_nodes_value import AgentaNodeDtoNodesValue
5
- from .agenta_nodes_response import AgentaNodesResponse
6
- from .agenta_root_dto import AgentaRootDto
7
- from .agenta_roots_response import AgentaRootsResponse
8
- from .agenta_tree_dto import AgentaTreeDto
9
- from .agenta_trees_response import AgentaTreesResponse
10
3
  from .aggregated_result import AggregatedResult
11
4
  from .aggregated_result_evaluator_config import AggregatedResultEvaluatorConfig
12
5
  from .app import App
@@ -14,7 +7,6 @@ from .app_variant_response import AppVariantResponse
14
7
  from .app_variant_revision import AppVariantRevision
15
8
  from .base_output import BaseOutput
16
9
  from .body_import_testset import BodyImportTestset
17
- from .collect_status_response import CollectStatusResponse
18
10
  from .config_db import ConfigDb
19
11
  from .config_dto import ConfigDto
20
12
  from .config_response_model import ConfigResponseModel
@@ -39,7 +31,6 @@ from .evaluator import Evaluator
39
31
  from .evaluator_config import EvaluatorConfig
40
32
  from .evaluator_mapping_output_interface import EvaluatorMappingOutputInterface
41
33
  from .evaluator_output_interface import EvaluatorOutputInterface
42
- from .exception_dto import ExceptionDto
43
34
  from .get_config_response import GetConfigResponse
44
35
  from .http_validation_error import HttpValidationError
45
36
  from .human_evaluation import HumanEvaluation
@@ -51,50 +42,30 @@ from .human_evaluation_update import HumanEvaluationUpdate
51
42
  from .image import Image
52
43
  from .invite_request import InviteRequest
53
44
  from .lifecycle_dto import LifecycleDto
54
- from .link_dto import LinkDto
55
45
  from .list_api_keys_response import ListApiKeysResponse
56
46
  from .llm_run_rate_limit import LlmRunRateLimit
57
47
  from .llm_tokens import LlmTokens
58
48
  from .lm_providers_enum import LmProvidersEnum
59
49
  from .new_human_evaluation import NewHumanEvaluation
60
50
  from .new_testset import NewTestset
61
- from .node_dto import NodeDto
62
- from .node_type import NodeType
63
- from .o_tel_context_dto import OTelContextDto
64
- from .o_tel_event_dto import OTelEventDto
65
- from .o_tel_extra_dto import OTelExtraDto
66
- from .o_tel_link_dto import OTelLinkDto
67
- from .o_tel_span_dto import OTelSpanDto
68
- from .o_tel_span_kind import OTelSpanKind
69
- from .o_tel_spans_response import OTelSpansResponse
70
- from .o_tel_status_code import OTelStatusCode
71
51
  from .organization import Organization
72
52
  from .organization_output import OrganizationOutput
73
53
  from .outputs import Outputs
74
- from .parent_dto import ParentDto
75
54
  from .permission import Permission
76
55
  from .reference_dto import ReferenceDto
77
56
  from .reference_request_model import ReferenceRequestModel
78
57
  from .result import Result
79
- from .root_dto import RootDto
80
58
  from .score import Score
81
59
  from .simple_evaluation_output import SimpleEvaluationOutput
82
60
  from .span import Span
83
61
  from .span_detail import SpanDetail
84
- from .span_dto import SpanDto
85
- from .span_dto_nodes_value import SpanDtoNodesValue
86
62
  from .span_status_code import SpanStatusCode
87
63
  from .span_variant import SpanVariant
88
- from .status_code import StatusCode
89
- from .status_dto import StatusDto
90
64
  from .template import Template
91
65
  from .template_image_info import TemplateImageInfo
92
66
  from .test_set_output_response import TestSetOutputResponse
93
67
  from .test_set_simple_response import TestSetSimpleResponse
94
- from .time_dto import TimeDto
95
68
  from .trace_detail import TraceDetail
96
- from .tree_dto import TreeDto
97
- from .tree_type import TreeType
98
69
  from .update_app_output import UpdateAppOutput
99
70
  from .uri import Uri
100
71
  from .validation_error import ValidationError
@@ -109,13 +80,6 @@ from .workspace_role import WorkspaceRole
109
80
  from .workspace_role_response import WorkspaceRoleResponse
110
81
 
111
82
  __all__ = [
112
- "AgentaNodeDto",
113
- "AgentaNodeDtoNodesValue",
114
- "AgentaNodesResponse",
115
- "AgentaRootDto",
116
- "AgentaRootsResponse",
117
- "AgentaTreeDto",
118
- "AgentaTreesResponse",
119
83
  "AggregatedResult",
120
84
  "AggregatedResultEvaluatorConfig",
121
85
  "App",
@@ -123,7 +87,6 @@ __all__ = [
123
87
  "AppVariantRevision",
124
88
  "BaseOutput",
125
89
  "BodyImportTestset",
126
- "CollectStatusResponse",
127
90
  "ConfigDb",
128
91
  "ConfigDto",
129
92
  "ConfigResponseModel",
@@ -148,7 +111,6 @@ __all__ = [
148
111
  "EvaluatorConfig",
149
112
  "EvaluatorMappingOutputInterface",
150
113
  "EvaluatorOutputInterface",
151
- "ExceptionDto",
152
114
  "GetConfigResponse",
153
115
  "HttpValidationError",
154
116
  "HumanEvaluation",
@@ -160,50 +122,30 @@ __all__ = [
160
122
  "Image",
161
123
  "InviteRequest",
162
124
  "LifecycleDto",
163
- "LinkDto",
164
125
  "ListApiKeysResponse",
165
126
  "LlmRunRateLimit",
166
127
  "LlmTokens",
167
128
  "LmProvidersEnum",
168
129
  "NewHumanEvaluation",
169
130
  "NewTestset",
170
- "NodeDto",
171
- "NodeType",
172
- "OTelContextDto",
173
- "OTelEventDto",
174
- "OTelExtraDto",
175
- "OTelLinkDto",
176
- "OTelSpanDto",
177
- "OTelSpanKind",
178
- "OTelSpansResponse",
179
- "OTelStatusCode",
180
131
  "Organization",
181
132
  "OrganizationOutput",
182
133
  "Outputs",
183
- "ParentDto",
184
134
  "Permission",
185
135
  "ReferenceDto",
186
136
  "ReferenceRequestModel",
187
137
  "Result",
188
- "RootDto",
189
138
  "Score",
190
139
  "SimpleEvaluationOutput",
191
140
  "Span",
192
141
  "SpanDetail",
193
- "SpanDto",
194
- "SpanDtoNodesValue",
195
142
  "SpanStatusCode",
196
143
  "SpanVariant",
197
- "StatusCode",
198
- "StatusDto",
199
144
  "Template",
200
145
  "TemplateImageInfo",
201
146
  "TestSetOutputResponse",
202
147
  "TestSetSimpleResponse",
203
- "TimeDto",
204
148
  "TraceDetail",
205
- "TreeDto",
206
- "TreeType",
207
149
  "UpdateAppOutput",
208
150
  "Uri",
209
151
  "ValidationError",
@@ -1104,14 +1104,14 @@ class VariantsClient:
1104
1104
  def configs_delete(
1105
1105
  self,
1106
1106
  *,
1107
- variant_ref: ReferenceRequestModel,
1107
+ variant_ref: typing.Optional[ReferenceRequestModel] = OMIT,
1108
1108
  application_ref: typing.Optional[ReferenceRequestModel] = OMIT,
1109
1109
  request_options: typing.Optional[RequestOptions] = None,
1110
1110
  ) -> int:
1111
1111
  """
1112
1112
  Parameters
1113
1113
  ----------
1114
- variant_ref : ReferenceRequestModel
1114
+ variant_ref : typing.Optional[ReferenceRequestModel]
1115
1115
 
1116
1116
  application_ref : typing.Optional[ReferenceRequestModel]
1117
1117
 
@@ -1125,15 +1125,13 @@ class VariantsClient:
1125
1125
 
1126
1126
  Examples
1127
1127
  --------
1128
- from agenta import AgentaApi, ReferenceRequestModel
1128
+ from agenta import AgentaApi
1129
1129
 
1130
1130
  client = AgentaApi(
1131
1131
  api_key="YOUR_API_KEY",
1132
1132
  base_url="https://yourhost.com/path/to/api",
1133
1133
  )
1134
- client.variants.configs_delete(
1135
- variant_ref=ReferenceRequestModel(),
1136
- )
1134
+ client.variants.configs_delete()
1137
1135
  """
1138
1136
  _response = self._client_wrapper.httpx_client.request(
1139
1137
  "variants/configs/delete",
@@ -1246,14 +1244,14 @@ class VariantsClient:
1246
1244
  def configs_history(
1247
1245
  self,
1248
1246
  *,
1249
- variant_ref: ReferenceRequestModel,
1247
+ variant_ref: typing.Optional[ReferenceRequestModel] = OMIT,
1250
1248
  application_ref: typing.Optional[ReferenceRequestModel] = OMIT,
1251
1249
  request_options: typing.Optional[RequestOptions] = None,
1252
1250
  ) -> typing.List[ConfigResponseModel]:
1253
1251
  """
1254
1252
  Parameters
1255
1253
  ----------
1256
- variant_ref : ReferenceRequestModel
1254
+ variant_ref : typing.Optional[ReferenceRequestModel]
1257
1255
 
1258
1256
  application_ref : typing.Optional[ReferenceRequestModel]
1259
1257
 
@@ -1267,15 +1265,13 @@ class VariantsClient:
1267
1265
 
1268
1266
  Examples
1269
1267
  --------
1270
- from agenta import AgentaApi, ReferenceRequestModel
1268
+ from agenta import AgentaApi
1271
1269
 
1272
1270
  client = AgentaApi(
1273
1271
  api_key="YOUR_API_KEY",
1274
1272
  base_url="https://yourhost.com/path/to/api",
1275
1273
  )
1276
- client.variants.configs_history(
1277
- variant_ref=ReferenceRequestModel(),
1278
- )
1274
+ client.variants.configs_history()
1279
1275
  """
1280
1276
  _response = self._client_wrapper.httpx_client.request(
1281
1277
  "variants/configs/history",
@@ -2508,14 +2504,14 @@ class AsyncVariantsClient:
2508
2504
  async def configs_delete(
2509
2505
  self,
2510
2506
  *,
2511
- variant_ref: ReferenceRequestModel,
2507
+ variant_ref: typing.Optional[ReferenceRequestModel] = OMIT,
2512
2508
  application_ref: typing.Optional[ReferenceRequestModel] = OMIT,
2513
2509
  request_options: typing.Optional[RequestOptions] = None,
2514
2510
  ) -> int:
2515
2511
  """
2516
2512
  Parameters
2517
2513
  ----------
2518
- variant_ref : ReferenceRequestModel
2514
+ variant_ref : typing.Optional[ReferenceRequestModel]
2519
2515
 
2520
2516
  application_ref : typing.Optional[ReferenceRequestModel]
2521
2517
 
@@ -2531,7 +2527,7 @@ class AsyncVariantsClient:
2531
2527
  --------
2532
2528
  import asyncio
2533
2529
 
2534
- from agenta import AsyncAgentaApi, ReferenceRequestModel
2530
+ from agenta import AsyncAgentaApi
2535
2531
 
2536
2532
  client = AsyncAgentaApi(
2537
2533
  api_key="YOUR_API_KEY",
@@ -2540,9 +2536,7 @@ class AsyncVariantsClient:
2540
2536
 
2541
2537
 
2542
2538
  async def main() -> None:
2543
- await client.variants.configs_delete(
2544
- variant_ref=ReferenceRequestModel(),
2545
- )
2539
+ await client.variants.configs_delete()
2546
2540
 
2547
2541
 
2548
2542
  asyncio.run(main())
@@ -2666,14 +2660,14 @@ class AsyncVariantsClient:
2666
2660
  async def configs_history(
2667
2661
  self,
2668
2662
  *,
2669
- variant_ref: ReferenceRequestModel,
2663
+ variant_ref: typing.Optional[ReferenceRequestModel] = OMIT,
2670
2664
  application_ref: typing.Optional[ReferenceRequestModel] = OMIT,
2671
2665
  request_options: typing.Optional[RequestOptions] = None,
2672
2666
  ) -> typing.List[ConfigResponseModel]:
2673
2667
  """
2674
2668
  Parameters
2675
2669
  ----------
2676
- variant_ref : ReferenceRequestModel
2670
+ variant_ref : typing.Optional[ReferenceRequestModel]
2677
2671
 
2678
2672
  application_ref : typing.Optional[ReferenceRequestModel]
2679
2673
 
@@ -2689,7 +2683,7 @@ class AsyncVariantsClient:
2689
2683
  --------
2690
2684
  import asyncio
2691
2685
 
2692
- from agenta import AsyncAgentaApi, ReferenceRequestModel
2686
+ from agenta import AsyncAgentaApi
2693
2687
 
2694
2688
  client = AsyncAgentaApi(
2695
2689
  api_key="YOUR_API_KEY",
@@ -2698,9 +2692,7 @@ class AsyncVariantsClient:
2698
2692
 
2699
2693
 
2700
2694
  async def main() -> None:
2701
- await client.variants.configs_history(
2702
- variant_ref=ReferenceRequestModel(),
2703
- )
2695
+ await client.variants.configs_history()
2704
2696
 
2705
2697
 
2706
2698
  asyncio.run(main())
agenta/sdk/__init__.py CHANGED
@@ -17,8 +17,6 @@ from .types import (
17
17
  FileInputURL,
18
18
  BinaryParam,
19
19
  Prompt,
20
- AgentaNodeDto,
21
- AgentaNodesResponse,
22
20
  )
23
21
 
24
22
  from .tracing import Tracing, get_tracer