agenta 0.27.7a0__py3-none-any.whl → 0.27.7a2__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 (48) hide show
  1. agenta/client/backend/__init__.py +63 -0
  2. agenta/client/backend/client.py +22 -22
  3. agenta/client/backend/core/http_client.py +15 -7
  4. agenta/client/backend/observability/client.py +4 -4
  5. agenta/client/backend/observability_v_1/__init__.py +5 -0
  6. agenta/client/backend/observability_v_1/client.py +560 -0
  7. agenta/client/backend/observability_v_1/types/__init__.py +6 -0
  8. agenta/client/backend/observability_v_1/types/format.py +5 -0
  9. agenta/client/backend/observability_v_1/types/query_traces_response.py +11 -0
  10. agenta/client/backend/types/__init__.py +58 -0
  11. agenta/client/backend/types/agenta_node_dto.py +48 -0
  12. agenta/client/backend/types/agenta_node_dto_nodes_value.py +6 -0
  13. agenta/client/backend/types/agenta_nodes_response.py +30 -0
  14. agenta/client/backend/types/agenta_root_dto.py +30 -0
  15. agenta/client/backend/types/agenta_roots_response.py +30 -0
  16. agenta/client/backend/types/agenta_tree_dto.py +30 -0
  17. agenta/client/backend/types/agenta_trees_response.py +30 -0
  18. agenta/client/backend/types/collect_status_response.py +22 -0
  19. agenta/client/backend/types/exception_dto.py +26 -0
  20. agenta/client/backend/types/link_dto.py +24 -0
  21. agenta/client/backend/types/node_dto.py +24 -0
  22. agenta/client/backend/types/node_type.py +19 -0
  23. agenta/client/backend/types/o_tel_context_dto.py +22 -0
  24. agenta/client/backend/types/o_tel_event_dto.py +23 -0
  25. agenta/client/backend/types/o_tel_extra_dto.py +26 -0
  26. agenta/client/backend/types/o_tel_link_dto.py +23 -0
  27. agenta/client/backend/types/o_tel_span_dto.py +37 -0
  28. agenta/client/backend/types/o_tel_span_kind.py +15 -0
  29. agenta/client/backend/types/o_tel_spans_response.py +24 -0
  30. agenta/client/backend/types/o_tel_status_code.py +8 -0
  31. agenta/client/backend/types/parent_dto.py +21 -0
  32. agenta/client/backend/types/root_dto.py +21 -0
  33. agenta/client/backend/types/span_dto.py +54 -0
  34. agenta/client/backend/types/span_dto_nodes_value.py +9 -0
  35. agenta/client/backend/types/status_code.py +5 -0
  36. agenta/client/backend/types/status_dto.py +23 -0
  37. agenta/client/backend/types/time_dto.py +23 -0
  38. agenta/client/backend/types/tree_dto.py +23 -0
  39. agenta/client/backend/types/tree_type.py +5 -0
  40. agenta/client/backend/variants/client.py +24 -16
  41. agenta/sdk/__init__.py +2 -0
  42. agenta/sdk/decorators/routing.py +1 -1
  43. agenta/sdk/tracing/inline.py +29 -140
  44. agenta/sdk/types.py +5 -2
  45. {agenta-0.27.7a0.dist-info → agenta-0.27.7a2.dist-info}/METADATA +1 -1
  46. {agenta-0.27.7a0.dist-info → agenta-0.27.7a2.dist-info}/RECORD +48 -14
  47. {agenta-0.27.7a0.dist-info → agenta-0.27.7a2.dist-info}/WHEEL +0 -0
  48. {agenta-0.27.7a0.dist-info → agenta-0.27.7a2.dist-info}/entry_points.txt +0 -0
@@ -1,5 +1,12 @@
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
3
10
  from .aggregated_result import AggregatedResult
4
11
  from .aggregated_result_evaluator_config import AggregatedResultEvaluatorConfig
5
12
  from .app import App
@@ -7,6 +14,7 @@ from .app_variant_response import AppVariantResponse
7
14
  from .app_variant_revision import AppVariantRevision
8
15
  from .base_output import BaseOutput
9
16
  from .body_import_testset import BodyImportTestset
17
+ from .collect_status_response import CollectStatusResponse
10
18
  from .config_db import ConfigDb
11
19
  from .config_dto import ConfigDto
12
20
  from .config_response_model import ConfigResponseModel
@@ -31,6 +39,7 @@ from .evaluator import Evaluator
31
39
  from .evaluator_config import EvaluatorConfig
32
40
  from .evaluator_mapping_output_interface import EvaluatorMappingOutputInterface
33
41
  from .evaluator_output_interface import EvaluatorOutputInterface
42
+ from .exception_dto import ExceptionDto
34
43
  from .get_config_response import GetConfigResponse
35
44
  from .http_validation_error import HttpValidationError
36
45
  from .human_evaluation import HumanEvaluation
@@ -42,30 +51,50 @@ from .human_evaluation_update import HumanEvaluationUpdate
42
51
  from .image import Image
43
52
  from .invite_request import InviteRequest
44
53
  from .lifecycle_dto import LifecycleDto
54
+ from .link_dto import LinkDto
45
55
  from .list_api_keys_response import ListApiKeysResponse
46
56
  from .llm_run_rate_limit import LlmRunRateLimit
47
57
  from .llm_tokens import LlmTokens
48
58
  from .lm_providers_enum import LmProvidersEnum
49
59
  from .new_human_evaluation import NewHumanEvaluation
50
60
  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
51
71
  from .organization import Organization
52
72
  from .organization_output import OrganizationOutput
53
73
  from .outputs import Outputs
74
+ from .parent_dto import ParentDto
54
75
  from .permission import Permission
55
76
  from .reference_dto import ReferenceDto
56
77
  from .reference_request_model import ReferenceRequestModel
57
78
  from .result import Result
79
+ from .root_dto import RootDto
58
80
  from .score import Score
59
81
  from .simple_evaluation_output import SimpleEvaluationOutput
60
82
  from .span import Span
61
83
  from .span_detail import SpanDetail
84
+ from .span_dto import SpanDto
85
+ from .span_dto_nodes_value import SpanDtoNodesValue
62
86
  from .span_status_code import SpanStatusCode
63
87
  from .span_variant import SpanVariant
88
+ from .status_code import StatusCode
89
+ from .status_dto import StatusDto
64
90
  from .template import Template
65
91
  from .template_image_info import TemplateImageInfo
66
92
  from .test_set_output_response import TestSetOutputResponse
67
93
  from .test_set_simple_response import TestSetSimpleResponse
94
+ from .time_dto import TimeDto
68
95
  from .trace_detail import TraceDetail
96
+ from .tree_dto import TreeDto
97
+ from .tree_type import TreeType
69
98
  from .update_app_output import UpdateAppOutput
70
99
  from .uri import Uri
71
100
  from .validation_error import ValidationError
@@ -80,6 +109,13 @@ from .workspace_role import WorkspaceRole
80
109
  from .workspace_role_response import WorkspaceRoleResponse
81
110
 
82
111
  __all__ = [
112
+ "AgentaNodeDto",
113
+ "AgentaNodeDtoNodesValue",
114
+ "AgentaNodesResponse",
115
+ "AgentaRootDto",
116
+ "AgentaRootsResponse",
117
+ "AgentaTreeDto",
118
+ "AgentaTreesResponse",
83
119
  "AggregatedResult",
84
120
  "AggregatedResultEvaluatorConfig",
85
121
  "App",
@@ -87,6 +123,7 @@ __all__ = [
87
123
  "AppVariantRevision",
88
124
  "BaseOutput",
89
125
  "BodyImportTestset",
126
+ "CollectStatusResponse",
90
127
  "ConfigDb",
91
128
  "ConfigDto",
92
129
  "ConfigResponseModel",
@@ -111,6 +148,7 @@ __all__ = [
111
148
  "EvaluatorConfig",
112
149
  "EvaluatorMappingOutputInterface",
113
150
  "EvaluatorOutputInterface",
151
+ "ExceptionDto",
114
152
  "GetConfigResponse",
115
153
  "HttpValidationError",
116
154
  "HumanEvaluation",
@@ -122,30 +160,50 @@ __all__ = [
122
160
  "Image",
123
161
  "InviteRequest",
124
162
  "LifecycleDto",
163
+ "LinkDto",
125
164
  "ListApiKeysResponse",
126
165
  "LlmRunRateLimit",
127
166
  "LlmTokens",
128
167
  "LmProvidersEnum",
129
168
  "NewHumanEvaluation",
130
169
  "NewTestset",
170
+ "NodeDto",
171
+ "NodeType",
172
+ "OTelContextDto",
173
+ "OTelEventDto",
174
+ "OTelExtraDto",
175
+ "OTelLinkDto",
176
+ "OTelSpanDto",
177
+ "OTelSpanKind",
178
+ "OTelSpansResponse",
179
+ "OTelStatusCode",
131
180
  "Organization",
132
181
  "OrganizationOutput",
133
182
  "Outputs",
183
+ "ParentDto",
134
184
  "Permission",
135
185
  "ReferenceDto",
136
186
  "ReferenceRequestModel",
137
187
  "Result",
188
+ "RootDto",
138
189
  "Score",
139
190
  "SimpleEvaluationOutput",
140
191
  "Span",
141
192
  "SpanDetail",
193
+ "SpanDto",
194
+ "SpanDtoNodesValue",
142
195
  "SpanStatusCode",
143
196
  "SpanVariant",
197
+ "StatusCode",
198
+ "StatusDto",
144
199
  "Template",
145
200
  "TemplateImageInfo",
146
201
  "TestSetOutputResponse",
147
202
  "TestSetSimpleResponse",
203
+ "TimeDto",
148
204
  "TraceDetail",
205
+ "TreeDto",
206
+ "TreeType",
149
207
  "UpdateAppOutput",
150
208
  "Uri",
151
209
  "ValidationError",
@@ -0,0 +1,48 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import typing
5
+ from .lifecycle_dto import LifecycleDto
6
+ from .root_dto import RootDto
7
+ from .tree_dto import TreeDto
8
+ from .node_dto import NodeDto
9
+ from .parent_dto import ParentDto
10
+ from .time_dto import TimeDto
11
+ from .status_dto import StatusDto
12
+ from .exception_dto import ExceptionDto
13
+ from .link_dto import LinkDto
14
+ from .o_tel_extra_dto import OTelExtraDto
15
+ from .agenta_node_dto_nodes_value import AgentaNodeDtoNodesValue
16
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
17
+ import pydantic
18
+
19
+
20
+ class AgentaNodeDto(UniversalBaseModel):
21
+ lifecycle: typing.Optional[LifecycleDto] = None
22
+ root: RootDto
23
+ tree: TreeDto
24
+ node: NodeDto
25
+ parent: typing.Optional[ParentDto] = None
26
+ time: TimeDto
27
+ status: StatusDto
28
+ exception: typing.Optional[ExceptionDto] = None
29
+ data: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
30
+ metrics: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
31
+ meta: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
32
+ refs: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
33
+ links: typing.Optional[typing.List[LinkDto]] = None
34
+ otel: typing.Optional[OTelExtraDto] = None
35
+ nodes: typing.Optional[
36
+ typing.Dict[str, typing.Optional[AgentaNodeDtoNodesValue]]
37
+ ] = None
38
+
39
+ if IS_PYDANTIC_V2:
40
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
41
+ extra="allow", frozen=True
42
+ ) # type: ignore # Pydantic v2
43
+ else:
44
+
45
+ class Config:
46
+ frozen = True
47
+ smart_union = True
48
+ extra = pydantic.Extra.allow
@@ -0,0 +1,6 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+ from .span_dto import SpanDto
5
+
6
+ AgentaNodeDtoNodesValue = typing.Union[SpanDto, typing.List[SpanDto]]
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .span_dto import SpanDto
6
+ import typing
7
+ from .agenta_node_dto import AgentaNodeDto
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+ import pydantic
10
+ from ..core.pydantic_utilities import update_forward_refs
11
+
12
+
13
+ class AgentaNodesResponse(UniversalBaseModel):
14
+ nodes: typing.List[AgentaNodeDto]
15
+ version: str
16
+ count: typing.Optional[int] = None
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
20
+ extra="allow", frozen=True
21
+ ) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
28
+
29
+
30
+ update_forward_refs(SpanDto, AgentaNodesResponse=AgentaNodesResponse)
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .span_dto import SpanDto
6
+ from .root_dto import RootDto
7
+ import typing
8
+ from .agenta_tree_dto import AgentaTreeDto
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+ import pydantic
11
+ from ..core.pydantic_utilities import update_forward_refs
12
+
13
+
14
+ class AgentaRootDto(UniversalBaseModel):
15
+ root: RootDto
16
+ trees: typing.List[AgentaTreeDto]
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
20
+ extra="allow", frozen=True
21
+ ) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
28
+
29
+
30
+ update_forward_refs(SpanDto, AgentaRootDto=AgentaRootDto)
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .span_dto import SpanDto
6
+ import typing
7
+ from .agenta_root_dto import AgentaRootDto
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+ import pydantic
10
+ from ..core.pydantic_utilities import update_forward_refs
11
+
12
+
13
+ class AgentaRootsResponse(UniversalBaseModel):
14
+ roots: typing.List[AgentaRootDto]
15
+ version: str
16
+ count: typing.Optional[int] = None
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
20
+ extra="allow", frozen=True
21
+ ) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
28
+
29
+
30
+ update_forward_refs(SpanDto, AgentaRootsResponse=AgentaRootsResponse)
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .span_dto import SpanDto
6
+ from .tree_dto import TreeDto
7
+ import typing
8
+ from .agenta_node_dto import AgentaNodeDto
9
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
10
+ import pydantic
11
+ from ..core.pydantic_utilities import update_forward_refs
12
+
13
+
14
+ class AgentaTreeDto(UniversalBaseModel):
15
+ tree: TreeDto
16
+ nodes: typing.List[AgentaNodeDto]
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
20
+ extra="allow", frozen=True
21
+ ) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
28
+
29
+
30
+ update_forward_refs(SpanDto, AgentaTreeDto=AgentaTreeDto)
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from __future__ import annotations
4
+ from ..core.pydantic_utilities import UniversalBaseModel
5
+ from .span_dto import SpanDto
6
+ import typing
7
+ from .agenta_tree_dto import AgentaTreeDto
8
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
9
+ import pydantic
10
+ from ..core.pydantic_utilities import update_forward_refs
11
+
12
+
13
+ class AgentaTreesResponse(UniversalBaseModel):
14
+ trees: typing.List[AgentaTreeDto]
15
+ version: str
16
+ count: typing.Optional[int] = None
17
+
18
+ if IS_PYDANTIC_V2:
19
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
20
+ extra="allow", frozen=True
21
+ ) # type: ignore # Pydantic v2
22
+ else:
23
+
24
+ class Config:
25
+ frozen = True
26
+ smart_union = True
27
+ extra = pydantic.Extra.allow
28
+
29
+
30
+ update_forward_refs(SpanDto, AgentaTreesResponse=AgentaTreesResponse)
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class CollectStatusResponse(UniversalBaseModel):
10
+ version: str
11
+ status: str
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
15
+ extra="allow", frozen=True
16
+ ) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -0,0 +1,26 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import datetime as dt
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class ExceptionDto(UniversalBaseModel):
11
+ timestamp: dt.datetime
12
+ type: str
13
+ message: typing.Optional[str] = None
14
+ stacktrace: typing.Optional[str] = None
15
+ attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
16
+
17
+ if IS_PYDANTIC_V2:
18
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
19
+ extra="allow", frozen=True
20
+ ) # type: ignore # Pydantic v2
21
+ else:
22
+
23
+ class Config:
24
+ frozen = True
25
+ smart_union = True
26
+ extra = pydantic.Extra.allow
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .tree_type import TreeType
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class LinkDto(UniversalBaseModel):
11
+ type: TreeType = "invocation"
12
+ id: str
13
+ tree_id: typing.Optional[str] = None
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
17
+ extra="allow", frozen=True
18
+ ) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import typing
5
+ from .node_type import NodeType
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class NodeDto(UniversalBaseModel):
11
+ id: str
12
+ name: str
13
+ type: typing.Optional[NodeType] = None
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
17
+ extra="allow", frozen=True
18
+ ) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -0,0 +1,19 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ NodeType = typing.Union[
6
+ typing.Literal[
7
+ "agent",
8
+ "workflow",
9
+ "chain",
10
+ "task",
11
+ "tool",
12
+ "embedding",
13
+ "query",
14
+ "completion",
15
+ "chat",
16
+ "rerank",
17
+ ],
18
+ typing.Any,
19
+ ]
@@ -0,0 +1,22 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
5
+ import typing
6
+ import pydantic
7
+
8
+
9
+ class OTelContextDto(UniversalBaseModel):
10
+ trace_id: str
11
+ span_id: str
12
+
13
+ if IS_PYDANTIC_V2:
14
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
15
+ extra="allow", frozen=True
16
+ ) # type: ignore # Pydantic v2
17
+ else:
18
+
19
+ class Config:
20
+ frozen = True
21
+ smart_union = True
22
+ extra = pydantic.Extra.allow
@@ -0,0 +1,23 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import typing
5
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
6
+ import pydantic
7
+
8
+
9
+ class OTelEventDto(UniversalBaseModel):
10
+ name: str
11
+ timestamp: str
12
+ attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
16
+ extra="allow", frozen=True
17
+ ) # type: ignore # Pydantic v2
18
+ else:
19
+
20
+ class Config:
21
+ frozen = True
22
+ smart_union = True
23
+ extra = pydantic.Extra.allow
@@ -0,0 +1,26 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import typing
5
+ from .o_tel_event_dto import OTelEventDto
6
+ from .o_tel_link_dto import OTelLinkDto
7
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
8
+ import pydantic
9
+
10
+
11
+ class OTelExtraDto(UniversalBaseModel):
12
+ kind: typing.Optional[str] = None
13
+ attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
14
+ events: typing.Optional[typing.List[OTelEventDto]] = None
15
+ links: typing.Optional[typing.List[OTelLinkDto]] = None
16
+
17
+ if IS_PYDANTIC_V2:
18
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
19
+ extra="allow", frozen=True
20
+ ) # type: ignore # Pydantic v2
21
+ else:
22
+
23
+ class Config:
24
+ frozen = True
25
+ smart_union = True
26
+ extra = pydantic.Extra.allow
@@ -0,0 +1,23 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .o_tel_context_dto import OTelContextDto
5
+ import typing
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class OTelLinkDto(UniversalBaseModel):
11
+ context: OTelContextDto
12
+ attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
13
+
14
+ if IS_PYDANTIC_V2:
15
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
16
+ extra="allow", frozen=True
17
+ ) # type: ignore # Pydantic v2
18
+ else:
19
+
20
+ class Config:
21
+ frozen = True
22
+ smart_union = True
23
+ extra = pydantic.Extra.allow
@@ -0,0 +1,37 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ from .o_tel_context_dto import OTelContextDto
5
+ import typing
6
+ from .o_tel_span_kind import OTelSpanKind
7
+ import datetime as dt
8
+ from .o_tel_status_code import OTelStatusCode
9
+ from .o_tel_event_dto import OTelEventDto
10
+ from .o_tel_link_dto import OTelLinkDto
11
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
12
+ import pydantic
13
+
14
+
15
+ class OTelSpanDto(UniversalBaseModel):
16
+ context: OTelContextDto
17
+ name: str
18
+ kind: typing.Optional[OTelSpanKind] = None
19
+ start_time: dt.datetime
20
+ end_time: dt.datetime
21
+ status_code: typing.Optional[OTelStatusCode] = None
22
+ status_message: typing.Optional[str] = None
23
+ attributes: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
24
+ events: typing.Optional[typing.List[OTelEventDto]] = None
25
+ parent: typing.Optional[OTelContextDto] = None
26
+ links: typing.Optional[typing.List[OTelLinkDto]] = None
27
+
28
+ if IS_PYDANTIC_V2:
29
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
30
+ extra="allow", frozen=True
31
+ ) # type: ignore # Pydantic v2
32
+ else:
33
+
34
+ class Config:
35
+ frozen = True
36
+ smart_union = True
37
+ extra = pydantic.Extra.allow
@@ -0,0 +1,15 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ OTelSpanKind = typing.Union[
6
+ typing.Literal[
7
+ "SPAN_KIND_UNSPECIFIED",
8
+ "SPAN_KIND_INTERNAL",
9
+ "SPAN_KIND_SERVER",
10
+ "SPAN_KIND_CLIENT",
11
+ "SPAN_KIND_PRODUCER",
12
+ "SPAN_KIND_CONSUMER",
13
+ ],
14
+ typing.Any,
15
+ ]
@@ -0,0 +1,24 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.pydantic_utilities import UniversalBaseModel
4
+ import typing
5
+ from .o_tel_span_dto import OTelSpanDto
6
+ from ..core.pydantic_utilities import IS_PYDANTIC_V2
7
+ import pydantic
8
+
9
+
10
+ class OTelSpansResponse(UniversalBaseModel):
11
+ version: str
12
+ count: typing.Optional[int] = None
13
+ spans: typing.List[OTelSpanDto]
14
+
15
+ if IS_PYDANTIC_V2:
16
+ model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
17
+ extra="allow", frozen=True
18
+ ) # type: ignore # Pydantic v2
19
+ else:
20
+
21
+ class Config:
22
+ frozen = True
23
+ smart_union = True
24
+ extra = pydantic.Extra.allow
@@ -0,0 +1,8 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ OTelStatusCode = typing.Union[
6
+ typing.Literal["STATUS_CODE_OK", "STATUS_CODE_ERROR", "STATUS_CODE_UNSET"],
7
+ typing.Any,
8
+ ]