agenta 0.15.0a1__py3-none-any.whl → 0.15.0a2__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.

@@ -2,7 +2,7 @@ FROM public.ecr.aws/s2t9a1r1/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
5
- RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
5
+ RUN pip install --no-cache-dir --disable-pip-version-check -U -r requirements.txt
6
6
  RUN pip install --no-cache-dir --disable-pip-version-check mangum
7
7
  COPY . ${LAMBDA_TASK_ROOT}
8
8
 
@@ -82,7 +82,7 @@ class entrypoint(BaseDecorator):
82
82
 
83
83
  # Set the configuration and environment of the LLM app parent span at run-time
84
84
  agenta.tracing.set_span_attribute(
85
- {"config": config_params, "environment": "playground"}
85
+ {"config": config_params, "environment": "playground"}
86
86
  )
87
87
 
88
88
  llm_result = await self.execute_function(
@@ -105,7 +105,7 @@ class entrypoint(BaseDecorator):
105
105
 
106
106
  # Set the configuration and environment of the LLM app parent span at run-time
107
107
  agenta.tracing.set_span_attribute(
108
- {"config": config_params, "environment": kwargs["environment"]}
108
+ {"config": config_params, "environment": kwargs["environment"]}
109
109
  )
110
110
 
111
111
  llm_result = await self.execute_function(
@@ -391,8 +391,8 @@ class entrypoint(BaseDecorator):
391
391
 
392
392
  # Set the configuration and environment of the LLM app parent span at run-time
393
393
  agenta.tracing.set_span_attribute(
394
- {"config": agenta.config.all(), "environment": "bash"}
395
- )
394
+ {"config": agenta.config.all(), "environment": "bash"}
395
+ )
396
396
 
397
397
  loop = asyncio.get_event_loop()
398
398
  result = loop.run_until_complete(
@@ -76,7 +76,9 @@ class Tracing(metaclass=SingletonMeta):
76
76
  self.active_trace_id: Optional[str] = None
77
77
  self.pending_spans: List[CreateSpan] = []
78
78
  self.tags: List[str] = []
79
- self.trace_config_cache: Dict[str, Any] = {} # used to save the trace configuration before starting the first span
79
+ self.trace_config_cache: Dict[
80
+ str, Any
81
+ ] = {} # used to save the trace configuration before starting the first span
80
82
  self.span_dict: Dict[str, CreateSpan] = {} # type: ignore
81
83
 
82
84
  @property
@@ -95,7 +97,9 @@ class Tracing(metaclass=SingletonMeta):
95
97
  self,
96
98
  attributes: Dict[str, Any] = {},
97
99
  ):
98
- if self.active_span is None: # This is the case where entrypoint wants to save the trace information but the parent span has not been initialized yet
100
+ if (
101
+ self.active_span is None
102
+ ): # This is the case where entrypoint wants to save the trace information but the parent span has not been initialized yet
99
103
  for key, value in attributes.items():
100
104
  self.trace_config_cache[key] = value
101
105
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.15.0a1
3
+ Version: 0.15.0a2
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
@@ -119,7 +119,7 @@ agenta/client/client.py,sha256=DWOGS9A8u4wu28s9jGOR4eRhf7vo4zT7GyDvrIGu59Y,19648
119
119
  agenta/client/exceptions.py,sha256=cxLjjKvZKlUgBxt4Vn9J_SsezJPPNHvrZxnoq-D6zmw,94
120
120
  agenta/config.py,sha256=Id-Ie1yf9QRP1YPhRYaYSOruRe6RBrsCXkG9rAa-ZtA,732
121
121
  agenta/config.toml,sha256=ptE0P49bwsu3Luyn7OLFmk2buPhj5D-MA-O_ErOGoLg,223
122
- agenta/docker/docker-assets/Dockerfile.cloud.template,sha256=uJuXKvtkMY6f4KaOh3XE5pmuJR7mfZEXJk_8hj2uatc,386
122
+ agenta/docker/docker-assets/Dockerfile.cloud.template,sha256=Mn9g7bTQSnPXcCLZo-iVirV3cveCQHC_F7IECQufmME,389
123
123
  agenta/docker/docker-assets/Dockerfile.template,sha256=aVA_okx0xXalcTvdQGhSfzSjNpQZVoLJCGYA39-2Nwk,280
124
124
  agenta/docker/docker-assets/README.md,sha256=XHxwh2ks_ozrtAU7SLbL3J14SB2holG6buoTxwmMiZM,102
125
125
  agenta/docker/docker-assets/entrypoint.sh,sha256=29XK8VQjQsx4hN2j-4JDy-6kQb5y4LCqZEa7PD4eqCQ,74
@@ -131,11 +131,11 @@ agenta/sdk/agenta_init.py,sha256=2iU8POiedmWL34_DgeXk38n0kN3MWlrGOruRsvd66Yw,884
131
131
  agenta/sdk/client.py,sha256=trKyBOYFZRk0v5Eptxvh87yPf50Y9CqY6Qgv4Fy-VH4,2142
132
132
  agenta/sdk/context.py,sha256=q-PxL05-I84puunUAs9LGsffEXcYhDxhQxjuOz2vK90,901
133
133
  agenta/sdk/decorators/base.py,sha256=9aNdX5h8a2mFweuhdO-BQPwXGKY9ONPIdLRhSGAGMfY,217
134
- agenta/sdk/decorators/llm_entrypoint.py,sha256=aW78CMpAVQ5YWQuDAgfjlqyXY5LHUmS4LQukJqhxNB0,19531
134
+ agenta/sdk/decorators/llm_entrypoint.py,sha256=rdtehr_OmLz-fIZqHWfKxir6GhwkDeI1Of3BcQlkzpc,19526
135
135
  agenta/sdk/decorators/tracing.py,sha256=-QrchKPjFjYbIau5bw1hlUyOcX4kdOzjVQ79KE4iwmw,2800
136
136
  agenta/sdk/router.py,sha256=0sbajvn5C7t18anH6yNo7-oYxldHnYfwcbmQnIXBePw,269
137
137
  agenta/sdk/tracing/context_manager.py,sha256=HskDaiORoOhjeN375gm05wYnieQzh5UnoIsnSAHkAyc,252
138
- agenta/sdk/tracing/llm_tracing.py,sha256=RxMVO5xynk3FWpl5CFAQFEohUlhb1WoUqSze1BgtL-4,8140
138
+ agenta/sdk/tracing/llm_tracing.py,sha256=JbrcHBwmHA_7EVgWGM3fatz4jYeKJJDXyu8qH3Q2LUE,8186
139
139
  agenta/sdk/tracing/logger.py,sha256=4zG9c51p8xPdKA5SL8MOgBfkpCnBSuV6JfWiXO0A7oc,473
140
140
  agenta/sdk/tracing/tasks_manager.py,sha256=ROrWIaqS2J2HHiJtRWiHKlLY8CCsqToP5VeXu7mamck,3748
141
141
  agenta/sdk/types.py,sha256=Mn0yBlHh_Yr_5oQXUfsYI3V7sJAVWkJgkxEOBDOOMS0,5852
@@ -157,7 +157,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
157
157
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
158
158
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
159
159
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
160
- agenta-0.15.0a1.dist-info/METADATA,sha256=MVIjIlEt-YrAzqRdO5mg7JzGx_R9BD-60QkNmiK39Rw,26465
161
- agenta-0.15.0a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
162
- agenta-0.15.0a1.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
163
- agenta-0.15.0a1.dist-info/RECORD,,
160
+ agenta-0.15.0a2.dist-info/METADATA,sha256=VKV2C4g76vQZ_tOGEDuQswroRniG5SSjIDjjlR1nfq8,26465
161
+ agenta-0.15.0a2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
162
+ agenta-0.15.0a2.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
163
+ agenta-0.15.0a2.dist-info/RECORD,,