agenta 0.20.0a3__py3-none-any.whl → 0.20.0a4__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.

@@ -772,14 +772,6 @@ class AsyncObservabilityClient:
772
772
  ],
773
773
  )
774
774
  """
775
-
776
- logging.debug("----")
777
- logging.debug(
778
- urllib.parse.urljoin(
779
- f"{self._client_wrapper.get_base_url()}/", "observability/trace/"
780
- ),
781
- )
782
- logging.debug(self._client_wrapper.get_headers())
783
775
  _response = await self._client_wrapper.httpx_client.request(
784
776
  "POST",
785
777
  urllib.parse.urljoin(
agenta/sdk/agenta_init.py CHANGED
@@ -68,12 +68,6 @@ class AgentaSingleton:
68
68
  api_key or config.get("api_key") or os.environ.get("AGENTA_API_KEY")
69
69
  )
70
70
 
71
- print(api_key)
72
- print(config.get("api_key"))
73
- print(os.environ.get("AGENTA_API_KEY"))
74
- print(self.api_key)
75
- print(os.environ)
76
-
77
71
  if not self.app_id:
78
72
  raise ValueError(
79
73
  "App ID must be specified. You can provide it in one of the following ways:\n"
@@ -161,7 +161,7 @@ class entrypoint(BaseDecorator):
161
161
  entrypoint.routes.append(
162
162
  {
163
163
  "func": func.__name__,
164
- "endpoint": DEFAULT_PATH,
164
+ "endpoint": route,
165
165
  "params": {**config_params, **func_signature.parameters},
166
166
  }
167
167
  )
@@ -171,7 +171,7 @@ class entrypoint(BaseDecorator):
171
171
  entrypoint.routes.append(
172
172
  {
173
173
  "func": func.__name__,
174
- "endpoint": route[1:].replace("/", "_"),
174
+ "endpoint": route,
175
175
  "params": {**config_params, **func_signature.parameters},
176
176
  }
177
177
  )
@@ -565,7 +565,7 @@ class entrypoint(BaseDecorator):
565
565
  print("-> data")
566
566
  print(json.dumps(result.data, indent=2))
567
567
  print("-> trace")
568
- # print(json.dumps(result.trace, indent=2))
568
+ print(json.dumps(result.trace, indent=2))
569
569
 
570
570
  def override_schema(
571
571
  self, openapi_schema: dict, func: str, endpoint: str, params: dict
@@ -636,6 +636,9 @@ class entrypoint(BaseDecorator):
636
636
 
637
637
  return param_type
638
638
 
639
+ # Goes from '/some/path' to 'some_path'
640
+ endpoint = endpoint[1:].replace("/", "_")
641
+
639
642
  schema_to_override = openapi_schema["components"]["schemas"][
640
643
  f"Body_{func}_{endpoint}_post"
641
644
  ]["properties"]
@@ -69,7 +69,7 @@ class instrument(BaseDecorator):
69
69
 
70
70
  # EVENTUALLY THIS PATCH SHOULD BE REMOVED
71
71
  # PATCH : if result is not a dict, make it a dict, in span
72
- DEFAULT_KEY = "default"
72
+ DEFAULT_KEY = "message"
73
73
 
74
74
  if not isinstance(result, dict):
75
75
  value = result
@@ -101,7 +101,7 @@ class instrument(BaseDecorator):
101
101
 
102
102
  # EVENTUALLY THIS PATCH SHOULD BE REMOVED
103
103
  # PATCH : if result is not a dict, make it a dict, in span
104
- DEFAULT_KEY = "default"
104
+ DEFAULT_KEY = "message"
105
105
 
106
106
  if not isinstance(result, dict):
107
107
  value = result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.20.0a3
3
+ Version: 0.20.0a4
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
@@ -37,7 +37,7 @@ agenta/client/backend/resources/evaluations/client.py,sha256=T8ETcdUdAMzSA3TGu-C
37
37
  agenta/client/backend/resources/evaluators/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
38
38
  agenta/client/backend/resources/evaluators/client.py,sha256=xaafddTNiiPpcxbiUFqimaN3tE6fiemYNOpt1wRLci0,21753
39
39
  agenta/client/backend/resources/observability/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
40
- agenta/client/backend/resources/observability/client.py,sha256=4kTC18reOl0SBdHP7iVLunVPyqOsXq2FFWZYLe5mbU0,43239
40
+ agenta/client/backend/resources/observability/client.py,sha256=sQuDHooWEFbTAnejYKK1tjFwcSMwH9cSrytvecH_9Rw,42986
41
41
  agenta/client/backend/resources/testsets/__init__.py,sha256=9mUnTDeA1TxYvkj1l01A1prqsJV0ERRY2tzkY1fA4MQ,64
42
42
  agenta/client/backend/resources/testsets/client.py,sha256=jVRwbUAPPgXoApClHjoDQNeVQTxZWq4c7-CT1YZ7DRA,25010
43
43
  agenta/client/backend/resources/variants/__init__.py,sha256=BMR4SvsrqXC9FU8nPVzY8M9xGrBEhEGrmbgvy3iM1aE,171
@@ -127,12 +127,12 @@ agenta/docker/docker-assets/lambda_function.py,sha256=h4UZSSfqwpfsCgERv6frqwm_4J
127
127
  agenta/docker/docker-assets/main.py,sha256=7MI-21n81U7N7A0GxebNi0cmGWtJKcR2sPB6FcH2QfA,251
128
128
  agenta/docker/docker_utils.py,sha256=5uHMCzXkCvIsDdEiwbnnn97KkzsFbBvyMwogCsv_Z5U,3509
129
129
  agenta/sdk/__init__.py,sha256=ewYNjm6AHlqkIrPfX2D_pXZMwShOdhEUcWXb7xGA2bk,769
130
- agenta/sdk/agenta_init.py,sha256=WXsT266BLSr7LeNoYPEmDLNj8qoxPsggge-dto7f_9w,9953
130
+ agenta/sdk/agenta_init.py,sha256=8MfDuypxohd0qRTdtGjX7L17KW-1UGmzNVdiqF15_ak,9790
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=-oVl2sBH8tIjFD_6q6l0LmEPrPlfRT9Iy8KqEYxJvwk,28099
135
- agenta/sdk/decorators/tracing.py,sha256=jjHD6VY5YSSHLfC3C2Xl7-6psBq8ycczMB0kj1rYwl4,3749
134
+ agenta/sdk/decorators/llm_entrypoint.py,sha256=oZ_CWrysQ9KzT1oSh7ENpZ0TC_jRZWQ7Of3shqb_R6Q,28167
135
+ agenta/sdk/decorators/tracing.py,sha256=cMclr5uVN7isTW7MpF9E572B27mo6JUpUbVv-QO0nas,3749
136
136
  agenta/sdk/router.py,sha256=0sbajvn5C7t18anH6yNo7-oYxldHnYfwcbmQnIXBePw,269
137
137
  agenta/sdk/tracing/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
138
138
  agenta/sdk/tracing/callbacks.py,sha256=xWP3RRtmj3ogXeqYI6zdj6gF5QGu70UlQ17WNwdXIx8,8063
@@ -161,7 +161,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
161
161
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
162
162
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
163
163
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
164
- agenta-0.20.0a3.dist-info/METADATA,sha256=ejs-P0QRRYTn33Pukab6fxUj8olSqlXVYy0kdsBsTRk,26462
165
- agenta-0.20.0a3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
- agenta-0.20.0a3.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
167
- agenta-0.20.0a3.dist-info/RECORD,,
164
+ agenta-0.20.0a4.dist-info/METADATA,sha256=ZPKFul4FOqz3eLRdLr1H8UtQoKnlj6QOngWuxcYmGC0,26462
165
+ agenta-0.20.0a4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
166
+ agenta-0.20.0a4.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
167
+ agenta-0.20.0a4.dist-info/RECORD,,