agenta 0.27.2a2__py3-none-any.whl → 0.27.3__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 (49) 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 +2 -2
  10. agenta/sdk/tracing/inline.py +140 -29
  11. agenta/sdk/types.py +2 -5
  12. {agenta-0.27.2a2.dist-info → agenta-0.27.3.dist-info}/METADATA +1 -1
  13. {agenta-0.27.2a2.dist-info → agenta-0.27.3.dist-info}/RECORD +15 -49
  14. agenta/client/backend/observability_v_1/__init__.py +0 -5
  15. agenta/client/backend/observability_v_1/client.py +0 -560
  16. agenta/client/backend/observability_v_1/types/__init__.py +0 -6
  17. agenta/client/backend/observability_v_1/types/format.py +0 -5
  18. agenta/client/backend/observability_v_1/types/query_traces_response.py +0 -11
  19. agenta/client/backend/types/agenta_node_dto.py +0 -48
  20. agenta/client/backend/types/agenta_node_dto_nodes_value.py +0 -6
  21. agenta/client/backend/types/agenta_nodes_response.py +0 -30
  22. agenta/client/backend/types/agenta_root_dto.py +0 -30
  23. agenta/client/backend/types/agenta_roots_response.py +0 -30
  24. agenta/client/backend/types/agenta_tree_dto.py +0 -30
  25. agenta/client/backend/types/agenta_trees_response.py +0 -30
  26. agenta/client/backend/types/collect_status_response.py +0 -22
  27. agenta/client/backend/types/exception_dto.py +0 -26
  28. agenta/client/backend/types/link_dto.py +0 -24
  29. agenta/client/backend/types/node_dto.py +0 -24
  30. agenta/client/backend/types/node_type.py +0 -19
  31. agenta/client/backend/types/o_tel_context_dto.py +0 -22
  32. agenta/client/backend/types/o_tel_event_dto.py +0 -23
  33. agenta/client/backend/types/o_tel_extra_dto.py +0 -26
  34. agenta/client/backend/types/o_tel_link_dto.py +0 -23
  35. agenta/client/backend/types/o_tel_span_dto.py +0 -37
  36. agenta/client/backend/types/o_tel_span_kind.py +0 -15
  37. agenta/client/backend/types/o_tel_spans_response.py +0 -24
  38. agenta/client/backend/types/o_tel_status_code.py +0 -8
  39. agenta/client/backend/types/parent_dto.py +0 -21
  40. agenta/client/backend/types/root_dto.py +0 -21
  41. agenta/client/backend/types/span_dto.py +0 -54
  42. agenta/client/backend/types/span_dto_nodes_value.py +0 -9
  43. agenta/client/backend/types/status_code.py +0 -5
  44. agenta/client/backend/types/status_dto.py +0 -23
  45. agenta/client/backend/types/time_dto.py +0 -23
  46. agenta/client/backend/types/tree_dto.py +0 -23
  47. agenta/client/backend/types/tree_type.py +0 -5
  48. {agenta-0.27.2a2.dist-info → agenta-0.27.3.dist-info}/WHEEL +0 -0
  49. {agenta-0.27.2a2.dist-info → agenta-0.27.3.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,8 +0,0 @@
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
- ]
@@ -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,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- StatusCode = typing.Union[typing.Literal["UNSET", "OK", "ERROR"], typing.Any]
@@ -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
@@ -1,5 +0,0 @@
1
- # This file was auto-generated by Fern from our API Definition.
2
-
3
- import typing
4
-
5
- TreeType = typing.Literal["invocation"]