agenta 0.18.0__py3-none-any.whl → 0.19.1__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/config.py CHANGED
@@ -11,14 +11,12 @@ from pathlib import Path
11
11
  toml_config = toml.load(f"{Path(__file__).parent}/config.toml")
12
12
 
13
13
  # Set the environment variables from the TOML configurations
14
- os.environ["DATABASE_URL"] = toml_config["database_url"]
15
14
  os.environ["REGISTRY"] = toml_config["registry"]
16
15
  os.environ["BACKEND_URL_SUFFIX"] = toml_config["backend_url_suffix"]
17
16
  os.environ["ALLOW_ORIGINS"] = toml_config["allow_origins"]
18
17
 
19
18
 
20
19
  class Settings(BaseSettings):
21
- database_url: str
22
20
  registry: str
23
21
  backend_url_suffix: str
24
22
  allow_origins: str
agenta/config.toml CHANGED
@@ -1,5 +1,4 @@
1
1
  docker_registry_url="127.0.0.1:5001"
2
- database_url="localhost:5432"
3
2
  registry="agenta-server"
4
3
  backend_url_suffix="api"
5
4
  allow_origins="http://localhost:3000,http://localhost:3001,http://cloud.agenta.ai,https://cloud.agenta.ai"
agenta/sdk/agenta_init.py CHANGED
@@ -26,16 +26,6 @@ class AgentaSingleton:
26
26
  cls._instance = super(AgentaSingleton, cls).__new__(cls)
27
27
  return cls._instance
28
28
 
29
- @property
30
- def client(self):
31
- """API Backend client.
32
-
33
- Returns:
34
- AgentaAPI: instance of agenta api backend
35
- """
36
-
37
- return AgentaApi(base_url=self.host + "/api", api_key=self.api_key)
38
-
39
29
  def init(
40
30
  self,
41
31
  app_id: Optional[str] = None,
@@ -95,7 +85,7 @@ class AgentaSingleton:
95
85
 
96
86
 
97
87
  class Config:
98
- def __init__(self, base_id: str, host: str, api_key: str = ""):
88
+ def __init__(self, base_id: str, host: str, api_key: Optional[str] = ""):
99
89
  self.base_id = base_id
100
90
  self.host = host
101
91
 
@@ -103,7 +93,9 @@ class Config:
103
93
  self.persist = False
104
94
  else:
105
95
  self.persist = True
106
- self.client = AgentaApi(base_url=self.host + "/api", api_key=api_key)
96
+ self.client = AgentaApi(
97
+ base_url=self.host + "/api", api_key=api_key if api_key else ""
98
+ )
107
99
 
108
100
  def register_default(self, overwrite=False, **kwargs):
109
101
  """alias for default"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.18.0
3
+ Version: 0.19.1
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
@@ -117,8 +117,8 @@ agenta/client/backend/types/workspace_role.py,sha256=PxKM8IcPoair8nK2Ed0GXZQxVff
117
117
  agenta/client/backend/types/workspace_role_response.py,sha256=i79slTp45qCEsUFPg0AUr_wngjcCko5zaFHXwsjrZWw,1072
118
118
  agenta/client/client.py,sha256=DWOGS9A8u4wu28s9jGOR4eRhf7vo4zT7GyDvrIGu59Y,19648
119
119
  agenta/client/exceptions.py,sha256=cxLjjKvZKlUgBxt4Vn9J_SsezJPPNHvrZxnoq-D6zmw,94
120
- agenta/config.py,sha256=Id-Ie1yf9QRP1YPhRYaYSOruRe6RBrsCXkG9rAa-ZtA,732
121
- agenta/config.toml,sha256=ptE0P49bwsu3Luyn7OLFmk2buPhj5D-MA-O_ErOGoLg,223
120
+ agenta/config.py,sha256=0VrTqduB4g8Mt_Ll7ffFcEjKF5qjTUIxmUtTPW2ygWw,653
121
+ agenta/config.toml,sha256=sIORbhnyct2R9lJrquxhNL4pHul3O0R7iaipCoja5MY,193
122
122
  agenta/docker/docker-assets/Dockerfile.cloud.template,sha256=uJuXKvtkMY6f4KaOh3XE5pmuJR7mfZEXJk_8hj2uatc,386
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
@@ -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=cF0de6DiH-NZWEm0XvPN8_TeC1whPBnDf1WYYE1qK2g,762
130
- agenta/sdk/agenta_init.py,sha256=aKCJRoZ6nsY3dHWwvgxdxyJhYL3n5xEcD6ZJiqshchQ,9959
130
+ agenta/sdk/agenta_init.py,sha256=zhMYCH6QMDzQADrOmFBaqZRvAYrA6CC35XsePY7IMxg,9789
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
@@ -159,7 +159,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
159
159
  agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
160
160
  agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
161
161
  agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
162
- agenta-0.18.0.dist-info/METADATA,sha256=IbA8D4H5SWIfBHOaGAX5NmmefNgEAZkvkH7BUyWhWp4,26458
163
- agenta-0.18.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
164
- agenta-0.18.0.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
165
- agenta-0.18.0.dist-info/RECORD,,
162
+ agenta-0.19.1.dist-info/METADATA,sha256=5pVwD7MuunohvTraDMTtW3zlo7_y2UKnRJMHm1Wmrow,26458
163
+ agenta-0.19.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
164
+ agenta-0.19.1.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
165
+ agenta-0.19.1.dist-info/RECORD,,