agenta 0.14.12a1__py3-none-any.whl → 0.14.12a2__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/sdk/agenta_init.py CHANGED
@@ -86,7 +86,7 @@ class AgentaSingleton:
86
86
 
87
87
  self.variant_id = os.environ.get("AGENTA_VARIANT_ID")
88
88
  self.variant_name = os.environ.get("AGENTA_VARIANT_NAME")
89
- self.config = Config(base_id=self.base_id, host=self.host)
89
+ self.config = Config(base_id=self.base_id, host=self.host, api_key=self.api_key)
90
90
 
91
91
  def get_app(self, app_name: str) -> str:
92
92
  apps = self.client.apps.list_apps(app_name=app_name)
@@ -113,9 +113,10 @@ class AgentaSingleton:
113
113
 
114
114
 
115
115
  class Config:
116
- def __init__(self, base_id, host):
116
+ def __init__(self, base_id: str, host: str, api_key: str):
117
117
  self.base_id = base_id
118
118
  self.host = host
119
+ self.api_key = api_key
119
120
 
120
121
  if base_id is None or host is None:
121
122
  self.persist = False
@@ -130,8 +131,7 @@ class Config:
130
131
  AgentaAPI: instance of agenta api backend
131
132
  """
132
133
 
133
- sdk_client = SDKClient(api_key=self.api_key, host=self.host) # type: ignore
134
- return sdk_client._build_sdk_client()
134
+ return AgentaApi(base_url=self.host + "/api", api_key=self.api_key)
135
135
 
136
136
  def register_default(self, overwrite=False, **kwargs):
137
137
  """alias for default"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.14.12a1
3
+ Version: 0.14.12a2
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
@@ -127,7 +127,7 @@ 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=nQS3x2sE_3kuRp6gEhShS_jAZ8hbSBs8i4mkWqdGT6I,618
130
- agenta/sdk/agenta_init.py,sha256=KjxMOewpADtlhOAqTbW-T2TQ1oVwKncV1-0ByNwXBpE,8644
130
+ agenta/sdk/agenta_init.py,sha256=8D55zEse0YlBhkQGevj2FC8gP1YnMqOo_oEg1CPSyAs,8666
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
@@ -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.14.12a1.dist-info/METADATA,sha256=FvGwGSng5NkmGuJMMA5KdbQvIj9sw5A5MMfB5D0a2Go,26466
161
- agenta-0.14.12a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
162
- agenta-0.14.12a1.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
163
- agenta-0.14.12a1.dist-info/RECORD,,
160
+ agenta-0.14.12a2.dist-info/METADATA,sha256=37JWVWBz4mFIQCZLwACxqhOamzn-Z3VTALgFenew_A4,26466
161
+ agenta-0.14.12a2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
162
+ agenta-0.14.12a2.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
163
+ agenta-0.14.12a2.dist-info/RECORD,,