agenta 0.27.0a12__py3-none-any.whl → 0.27.0a15__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.

@@ -1,4 +1,4 @@
1
- FROM public.ecr.aws/s2t9a1r1/agentaai/lambda_templates_public:main
1
+ FROM public.ecr.aws/h3w6n5z0/agentaai/lambda_templates_public:main
2
2
 
3
3
  COPY requirements.txt ${LAMBDA_TASK_ROOT}
4
4
  RUN pip install --no-cache-dir --disable-pip-version-check -U agenta
agenta/sdk/agenta_init.py CHANGED
@@ -79,13 +79,13 @@ class AgentaSingleton:
79
79
  )
80
80
 
81
81
  self.app_id = app_id or config.get("app_id") or os.environ.get("AGENTA_APP_ID")
82
- if not self.app_id:
83
- raise ValueError(
84
- "App ID must be specified. You can provide it in one of the following ways:\n"
85
- "1. As an argument when calling ag.init(app_id='your_app_id').\n"
86
- "2. In the configuration file specified by config_fname.\n"
87
- "3. As an environment variable 'AGENTA_APP_ID'."
88
- )
82
+ # if not self.app_id:
83
+ # raise ValueError(
84
+ # "App ID must be specified. You can provide it in one of the following ways:\n"
85
+ # "1. As an argument when calling ag.init(app_id='your_app_id').\n"
86
+ # "2. In the configuration file specified by config_fname.\n"
87
+ # "3. As an environment variable 'AGENTA_APP_ID'."
88
+ # )
89
89
 
90
90
  self.api_key = (
91
91
  api_key or os.environ.get("AGENTA_API_KEY") or config.get("api_key")
@@ -821,11 +821,15 @@ def parse_from_otel_span_dto(
821
821
 
822
822
  node_id = UUID(tree_id.hex[16:] + otel_span_dto.context.span_id[2:])
823
823
 
824
- node_type: str = types.get("node")
824
+ node_type = NodeType.TASK
825
+ try:
826
+ node_type = NodeType(types.get("node", "").lower())
827
+ except: # pylint: disable=bare-except
828
+ pass
825
829
 
826
830
  node = NodeDTO(
827
831
  id=node_id,
828
- type=node_type.lower() if node_type else None,
832
+ type=node_type,
829
833
  name=otel_span_dto.name,
830
834
  )
831
835
 
@@ -1191,7 +1195,7 @@ def _parse_to_legacy_span(span: SpanDTO) -> CreateSpan:
1191
1195
  ),
1192
1196
  #
1193
1197
  app_id=(
1194
- span.refs.get("application.id", "missing-app-id")
1198
+ span.refs.get("application", {}).get("id", "missing-app-id")
1195
1199
  if span.refs
1196
1200
  else "missing-app-id"
1197
1201
  ),
@@ -35,8 +35,6 @@ class Tracing(metaclass=Singleton):
35
35
  ) -> None:
36
36
  # ENDPOINT (OTLP)
37
37
  self.otlp_url = url
38
- # AITH (OTLP)
39
- self.api_key: Optional[str] = None
40
38
  # HEADERS (OTLP)
41
39
  self.headers: Dict[str, str] = dict()
42
40
  # REFERENCES
@@ -59,16 +57,12 @@ class Tracing(metaclass=Singleton):
59
57
  # DEPRECATING
60
58
  app_id: Optional[str] = None,
61
59
  ):
62
- # AUTH (OTLP)
63
- self.api_key = api_key
64
60
  # HEADERS (OTLP)
65
- self.headers = {}
66
- if app_id:
67
- self.headers.update(**{"AG-APP-ID": app_id})
68
61
  if api_key:
69
- self.headers.update(**{"Authorization": self.api_key})
62
+ self.headers["Authorization"] = api_key
70
63
  # REFERENCES
71
- self.references["application.id"] = app_id
64
+ if app_id:
65
+ self.references["application.id"] = app_id
72
66
 
73
67
  # TRACER PROVIDER
74
68
  self.tracer_provider = TracerProvider(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.27.0a12
3
+ Version: 0.27.0a15
4
4
  Summary: The SDK for agenta is an open-source LLMOps platform.
5
5
  Home-page: https://agenta.ai
6
6
  Keywords: LLMOps,LLM,evaluation,prompt engineering
@@ -132,7 +132,7 @@ agenta/client/client.py,sha256=DWOGS9A8u4wu28s9jGOR4eRhf7vo4zT7GyDvrIGu59Y,19648
132
132
  agenta/client/exceptions.py,sha256=cxLjjKvZKlUgBxt4Vn9J_SsezJPPNHvrZxnoq-D6zmw,94
133
133
  agenta/config.py,sha256=0VrTqduB4g8Mt_Ll7ffFcEjKF5qjTUIxmUtTPW2ygWw,653
134
134
  agenta/config.toml,sha256=sIORbhnyct2R9lJrquxhNL4pHul3O0R7iaipCoja5MY,193
135
- agenta/docker/docker-assets/Dockerfile.cloud.template,sha256=uJuXKvtkMY6f4KaOh3XE5pmuJR7mfZEXJk_8hj2uatc,386
135
+ agenta/docker/docker-assets/Dockerfile.cloud.template,sha256=_b3mLMgGXSFABn5VSlio29cl4guYAJc4UkSdy5nAUmg,386
136
136
  agenta/docker/docker-assets/Dockerfile.template,sha256=aVA_okx0xXalcTvdQGhSfzSjNpQZVoLJCGYA39-2Nwk,280
137
137
  agenta/docker/docker-assets/README.md,sha256=XHxwh2ks_ozrtAU7SLbL3J14SB2holG6buoTxwmMiZM,102
138
138
  agenta/docker/docker-assets/entrypoint.sh,sha256=29XK8VQjQsx4hN2j-4JDy-6kQb5y4LCqZEa7PD4eqCQ,74
@@ -140,7 +140,7 @@ agenta/docker/docker-assets/lambda_function.py,sha256=h4UZSSfqwpfsCgERv6frqwm_4J
140
140
  agenta/docker/docker-assets/main.py,sha256=7MI-21n81U7N7A0GxebNi0cmGWtJKcR2sPB6FcH2QfA,251
141
141
  agenta/docker/docker_utils.py,sha256=kO1q2_IR0fEAo4M-2Pt_v-zC7GxxnkLogjKFhU869Ps,3555
142
142
  agenta/sdk/__init__.py,sha256=G-KGS3nIyzsMFc_Ct3mZ_6MuKppJg7qDnBXuz_oy1Go,1688
143
- agenta/sdk/agenta_init.py,sha256=_GugAX15eqTODzpGRIcBbqF87znl1q5gD12Fw7vjPs4,10652
143
+ agenta/sdk/agenta_init.py,sha256=yUqHK55NtcrYM0XRVR1u1RADi0kGKJ2EZitDaVw2wlk,10666
144
144
  agenta/sdk/assets.py,sha256=Zv4i8MVUSB3jMODQon1mzJtYxuntmrCNjLGk8f-2fls,2856
145
145
  agenta/sdk/client.py,sha256=trKyBOYFZRk0v5Eptxvh87yPf50Y9CqY6Qgv4Fy-VH4,2142
146
146
  agenta/sdk/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -162,10 +162,10 @@ agenta/sdk/tracing/attributes.py,sha256=zh8JQZSeYCLBeIRSopKJx6QQ-WEgw08Cr64DS_WO
162
162
  agenta/sdk/tracing/context.py,sha256=PSJdhcaOXSMAuGUBySpLKPKyx8duF3TJzhUEk2ufqPc,777
163
163
  agenta/sdk/tracing/conventions.py,sha256=JBtznBXZ3aRkGKkLl7cPwdMNh3w1G-H2Ta2YrAxbr38,950
164
164
  agenta/sdk/tracing/exporters.py,sha256=mFK5vrL7X-pQmyH-c9vrmGtsjSkCBOR31q2M4ZsOo80,1568
165
- agenta/sdk/tracing/inline.py,sha256=aPeY-zfIZ_4m8gIO0UT7cYmv7QpEYu7Ta_2MnLg0MVI,34515
165
+ agenta/sdk/tracing/inline.py,sha256=jVIlmDIFSzXr-ofMbGlO8VFnNeiUL4C4yA8soED4AHI,34611
166
166
  agenta/sdk/tracing/processors.py,sha256=8hgwC44qtPDmQ5yurKA4T6rEVx5y927w2sDHdU5GoUA,3115
167
167
  agenta/sdk/tracing/spans.py,sha256=nqUOjjirBxB8Eacv8Qj4Ra_6rknGi3lbJdNyKmk5ODQ,3707
168
- agenta/sdk/tracing/tracing.py,sha256=laInX27JUBCS_KiOqMax2Ja5UJ9X72tY5bufLbcYebo,6990
168
+ agenta/sdk/tracing/tracing.py,sha256=50669Lr6XwRoIEWDqEFj-K4HRcYSaL9i5vqwARvP7bk,6778
169
169
  agenta/sdk/types.py,sha256=naGZ5QYpX2HxAA8yO7xiUKs1FDPcC7rtT2K3NURifMg,6827
170
170
  agenta/sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
171
171
  agenta/sdk/utils/costs.py,sha256=i8C7ud__pThLS55XkN4YW8czXtGeXr2mx7jjcOFeiXg,5955
@@ -190,7 +190,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
190
190
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
191
191
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
192
192
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
193
- agenta-0.27.0a12.dist-info/METADATA,sha256=7YiEcddLp2Q-vb3NvqOvSAsoAyur_IA9NXRBSUul_j8,31739
194
- agenta-0.27.0a12.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
195
- agenta-0.27.0a12.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
196
- agenta-0.27.0a12.dist-info/RECORD,,
193
+ agenta-0.27.0a15.dist-info/METADATA,sha256=7uBKsTpm7jYIuSJkCcqKf9VLLEALjsa4L3T55YJAAvU,31739
194
+ agenta-0.27.0a15.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
195
+ agenta-0.27.0a15.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
196
+ agenta-0.27.0a15.dist-info/RECORD,,