agenta 0.27.7__py3-none-any.whl → 0.27.7a0__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/cli/main.py +51 -4
- agenta/client/backend/__init__.py +0 -63
- agenta/client/backend/apps/client.py +58 -12
- agenta/client/backend/client.py +22 -22
- agenta/client/backend/core/http_client.py +7 -15
- agenta/client/backend/evaluations/client.py +11 -0
- agenta/client/backend/observability/client.py +4 -4
- agenta/client/backend/testsets/client.py +40 -8
- agenta/client/backend/types/__init__.py +0 -58
- agenta/client/backend/variants/client.py +16 -24
- agenta/sdk/__init__.py +0 -2
- agenta/sdk/agenta_init.py +9 -4
- agenta/sdk/decorators/routing.py +42 -24
- agenta/sdk/litellm/litellm.py +75 -30
- agenta/sdk/middleware/auth.py +6 -9
- agenta/sdk/tracing/context.py +6 -6
- agenta/sdk/tracing/inline.py +151 -48
- agenta/sdk/tracing/processors.py +3 -1
- agenta/sdk/tracing/tracing.py +5 -1
- agenta/sdk/types.py +2 -5
- agenta/sdk/utils/debug.py +68 -0
- agenta/sdk/utils/exceptions.py +9 -15
- agenta/sdk/utils/logging.py +1 -5
- {agenta-0.27.7.dist-info → agenta-0.27.7a0.dist-info}/METADATA +1 -1
- {agenta-0.27.7.dist-info → agenta-0.27.7a0.dist-info}/RECORD +27 -60
- agenta/client/backend/observability_v_1/__init__.py +0 -5
- agenta/client/backend/observability_v_1/client.py +0 -560
- agenta/client/backend/observability_v_1/types/__init__.py +0 -6
- agenta/client/backend/observability_v_1/types/format.py +0 -5
- agenta/client/backend/observability_v_1/types/query_traces_response.py +0 -11
- agenta/client/backend/types/agenta_node_dto.py +0 -48
- agenta/client/backend/types/agenta_node_dto_nodes_value.py +0 -6
- agenta/client/backend/types/agenta_nodes_response.py +0 -30
- agenta/client/backend/types/agenta_root_dto.py +0 -30
- agenta/client/backend/types/agenta_roots_response.py +0 -30
- agenta/client/backend/types/agenta_tree_dto.py +0 -30
- agenta/client/backend/types/agenta_trees_response.py +0 -30
- agenta/client/backend/types/collect_status_response.py +0 -22
- agenta/client/backend/types/exception_dto.py +0 -26
- agenta/client/backend/types/link_dto.py +0 -24
- agenta/client/backend/types/node_dto.py +0 -24
- agenta/client/backend/types/node_type.py +0 -19
- agenta/client/backend/types/o_tel_context_dto.py +0 -22
- agenta/client/backend/types/o_tel_event_dto.py +0 -23
- agenta/client/backend/types/o_tel_extra_dto.py +0 -26
- agenta/client/backend/types/o_tel_link_dto.py +0 -23
- agenta/client/backend/types/o_tel_span_dto.py +0 -37
- agenta/client/backend/types/o_tel_span_kind.py +0 -15
- agenta/client/backend/types/o_tel_spans_response.py +0 -24
- agenta/client/backend/types/o_tel_status_code.py +0 -8
- agenta/client/backend/types/parent_dto.py +0 -21
- agenta/client/backend/types/root_dto.py +0 -21
- agenta/client/backend/types/span_dto.py +0 -54
- agenta/client/backend/types/span_dto_nodes_value.py +0 -9
- agenta/client/backend/types/status_code.py +0 -5
- agenta/client/backend/types/status_dto.py +0 -23
- agenta/client/backend/types/time_dto.py +0 -23
- agenta/client/backend/types/tree_dto.py +0 -23
- agenta/client/backend/types/tree_type.py +0 -5
- {agenta-0.27.7.dist-info → agenta-0.27.7a0.dist-info}/WHEEL +0 -0
- {agenta-0.27.7.dist-info → agenta-0.27.7a0.dist-info}/entry_points.txt +0 -0
|
@@ -1,30 +0,0 @@
|
|
|
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)
|
|
@@ -1,30 +0,0 @@
|
|
|
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)
|
|
@@ -1,30 +0,0 @@
|
|
|
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)
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1,26 +0,0 @@
|
|
|
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
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
]
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1,21 +0,0 @@
|
|
|
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 ParentDto(UniversalBaseModel):
|
|
10
|
-
id: str
|
|
11
|
-
|
|
12
|
-
if IS_PYDANTIC_V2:
|
|
13
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
14
|
-
extra="allow", frozen=True
|
|
15
|
-
) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,21 +0,0 @@
|
|
|
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 RootDto(UniversalBaseModel):
|
|
10
|
-
id: str
|
|
11
|
-
|
|
12
|
-
if IS_PYDANTIC_V2:
|
|
13
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
14
|
-
extra="allow", frozen=True
|
|
15
|
-
) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
-
import typing
|
|
6
|
-
from .lifecycle_dto import LifecycleDto
|
|
7
|
-
from .root_dto import RootDto
|
|
8
|
-
from .tree_dto import TreeDto
|
|
9
|
-
from .node_dto import NodeDto
|
|
10
|
-
from .parent_dto import ParentDto
|
|
11
|
-
from .time_dto import TimeDto
|
|
12
|
-
from .status_dto import StatusDto
|
|
13
|
-
from .exception_dto import ExceptionDto
|
|
14
|
-
from .link_dto import LinkDto
|
|
15
|
-
from .o_tel_extra_dto import OTelExtraDto
|
|
16
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
17
|
-
import pydantic
|
|
18
|
-
from ..core.pydantic_utilities import update_forward_refs
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class SpanDto(UniversalBaseModel):
|
|
22
|
-
lifecycle: typing.Optional[LifecycleDto] = None
|
|
23
|
-
root: RootDto
|
|
24
|
-
tree: TreeDto
|
|
25
|
-
node: NodeDto
|
|
26
|
-
parent: typing.Optional[ParentDto] = None
|
|
27
|
-
time: TimeDto
|
|
28
|
-
status: StatusDto
|
|
29
|
-
exception: typing.Optional[ExceptionDto] = None
|
|
30
|
-
data: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
31
|
-
metrics: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
32
|
-
meta: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
33
|
-
refs: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
34
|
-
links: typing.Optional[typing.List[LinkDto]] = None
|
|
35
|
-
otel: typing.Optional[OTelExtraDto] = None
|
|
36
|
-
nodes: typing.Optional[
|
|
37
|
-
typing.Dict[str, typing.Optional["SpanDtoNodesValue"]]
|
|
38
|
-
] = None
|
|
39
|
-
|
|
40
|
-
if IS_PYDANTIC_V2:
|
|
41
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(
|
|
42
|
-
extra="allow", frozen=True
|
|
43
|
-
) # type: ignore # Pydantic v2
|
|
44
|
-
else:
|
|
45
|
-
|
|
46
|
-
class Config:
|
|
47
|
-
frozen = True
|
|
48
|
-
smart_union = True
|
|
49
|
-
extra = pydantic.Extra.allow
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
from .span_dto_nodes_value import SpanDtoNodesValue # noqa: E402
|
|
53
|
-
|
|
54
|
-
update_forward_refs(SpanDto)
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
import typing
|
|
5
|
-
import typing
|
|
6
|
-
|
|
7
|
-
if typing.TYPE_CHECKING:
|
|
8
|
-
from .span_dto import SpanDto
|
|
9
|
-
SpanDtoNodesValue = typing.Union["SpanDto", typing.List["SpanDto"]]
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from ..core.pydantic_utilities import UniversalBaseModel
|
|
4
|
-
from .status_code import StatusCode
|
|
5
|
-
import typing
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class StatusDto(UniversalBaseModel):
|
|
11
|
-
code: StatusCode
|
|
12
|
-
message: typing.Optional[str] = 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
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
6
|
-
import typing
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class TimeDto(UniversalBaseModel):
|
|
11
|
-
start: dt.datetime
|
|
12
|
-
end: dt.datetime
|
|
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
|
|
@@ -1,23 +0,0 @@
|
|
|
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 .tree_type import TreeType
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2
|
|
7
|
-
import pydantic
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class TreeDto(UniversalBaseModel):
|
|
11
|
-
id: str
|
|
12
|
-
type: typing.Optional[TreeType] = 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
|
|
File without changes
|
|
File without changes
|