agenta 0.13.0__py3-none-any.whl → 0.13.0a1__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/client/backend/types/create_span.py +0 -1
- agenta/client/backend/types/get_config_response.py +1 -0
- agenta/sdk/agenta_decorator.py +1 -1
- agenta/sdk/agenta_init.py +1 -3
- agenta/sdk/tracing/llm_tracing.py +0 -4
- {agenta-0.13.0.dist-info → agenta-0.13.0a1.dist-info}/METADATA +1 -1
- {agenta-0.13.0.dist-info → agenta-0.13.0a1.dist-info}/RECORD +9 -9
- {agenta-0.13.0.dist-info → agenta-0.13.0a1.dist-info}/WHEEL +0 -0
- {agenta-0.13.0.dist-info → agenta-0.13.0a1.dist-info}/entry_points.txt +0 -0
|
@@ -18,7 +18,6 @@ class CreateSpan(pydantic.BaseModel):
|
|
|
18
18
|
id: str
|
|
19
19
|
app_id: typing.Optional[str]
|
|
20
20
|
variant_id: typing.Optional[str]
|
|
21
|
-
variant_name: typing.Optional[str]
|
|
22
21
|
inputs: typing.Optional[typing.Dict[str, typing.Any]]
|
|
23
22
|
outputs: typing.Optional[typing.List[str]]
|
|
24
23
|
config: typing.Optional[typing.Dict[str, typing.Any]]
|
agenta/sdk/agenta_decorator.py
CHANGED
|
@@ -121,7 +121,7 @@ def entrypoint(func: Callable[..., Any]) -> Callable[..., Any]:
|
|
|
121
121
|
name=func.__name__,
|
|
122
122
|
inputs=func_params,
|
|
123
123
|
config=config,
|
|
124
|
-
environment=
|
|
124
|
+
environment="playground", # type: ignore #NOTE: wrapper is only called in playground
|
|
125
125
|
)
|
|
126
126
|
|
|
127
127
|
llm_result = await execute_function(
|
agenta/sdk/agenta_init.py
CHANGED
|
@@ -90,7 +90,6 @@ class AgentaSingleton:
|
|
|
90
90
|
self.host = host
|
|
91
91
|
self.app_id = os.environ.get("AGENTA_APP_ID") if app_id is None else app_id
|
|
92
92
|
self.variant_id = os.environ.get("AGENTA_VARIANT_ID")
|
|
93
|
-
self.variant_name = os.environ.get("AGENTA_VARIANT_NAME")
|
|
94
93
|
self.api_key = api_key
|
|
95
94
|
self.config = Config(base_id=base_id, host=host)
|
|
96
95
|
|
|
@@ -194,7 +193,7 @@ class Config:
|
|
|
194
193
|
+ str(ex)
|
|
195
194
|
)
|
|
196
195
|
try:
|
|
197
|
-
self.set(**
|
|
196
|
+
self.set(**config.parameters)
|
|
198
197
|
except Exception as ex:
|
|
199
198
|
logger.warning("Failed to set the configuration with error: " + str(ex))
|
|
200
199
|
|
|
@@ -238,7 +237,6 @@ def llm_tracing(max_workers: Optional[int] = None) -> Tracing:
|
|
|
238
237
|
base_url=singleton.host,
|
|
239
238
|
app_id=singleton.app_id, # type: ignore
|
|
240
239
|
variant_id=singleton.variant_id, # type: ignore
|
|
241
|
-
variant_name=singleton.variant_name,
|
|
242
240
|
api_key=singleton.api_key,
|
|
243
241
|
max_workers=max_workers,
|
|
244
242
|
)
|
|
@@ -36,7 +36,6 @@ class Tracing(object):
|
|
|
36
36
|
base_url: str,
|
|
37
37
|
app_id: str,
|
|
38
38
|
variant_id: str,
|
|
39
|
-
variant_name: Optional[str] = None,
|
|
40
39
|
api_key: Optional[str] = None,
|
|
41
40
|
max_workers: Optional[int] = None,
|
|
42
41
|
):
|
|
@@ -45,7 +44,6 @@ class Tracing(object):
|
|
|
45
44
|
self.llm_logger = llm_logger
|
|
46
45
|
self.app_id = app_id
|
|
47
46
|
self.variant_id = variant_id
|
|
48
|
-
self.variant_name = variant_name
|
|
49
47
|
self.tasks_manager = TaskQueue(
|
|
50
48
|
max_workers if max_workers else 4, logger=llm_logger
|
|
51
49
|
)
|
|
@@ -103,7 +101,6 @@ class Tracing(object):
|
|
|
103
101
|
id=span_id,
|
|
104
102
|
app_id=self.app_id,
|
|
105
103
|
variant_id=self.variant_id,
|
|
106
|
-
variant_name=self.variant_name,
|
|
107
104
|
inputs=inputs,
|
|
108
105
|
name=name,
|
|
109
106
|
config=config,
|
|
@@ -134,7 +131,6 @@ class Tracing(object):
|
|
|
134
131
|
name=name,
|
|
135
132
|
app_id=self.app_id,
|
|
136
133
|
variant_id=self.variant_id,
|
|
137
|
-
variant_name=self.variant_name,
|
|
138
134
|
config=config,
|
|
139
135
|
environment=self.active_trace.environment,
|
|
140
136
|
parent_span_id=self.parent_span_id,
|
|
@@ -54,7 +54,7 @@ agenta/client/backend/types/base_output.py,sha256=ynXhDBQKrkR6Lnkx-yv6Q8xW4wXmzX
|
|
|
54
54
|
agenta/client/backend/types/body_import_testset.py,sha256=7dVF3mv3VO0Co8F0qxLAgu4jabqDPjebK4mYvcd_TuA,1061
|
|
55
55
|
agenta/client/backend/types/config_db.py,sha256=P0cSYvVOn0ZxpYMIdvhWpQVjRuBS5APe6qlc69AXaF4,1028
|
|
56
56
|
agenta/client/backend/types/create_app_output.py,sha256=pgnTnfZx35Q-8wZ1yTZBQ0ydYacGzFC9kyLug_UvymM,986
|
|
57
|
-
agenta/client/backend/types/create_span.py,sha256=
|
|
57
|
+
agenta/client/backend/types/create_span.py,sha256=q6FDyuS9mMBffcJD7RuYJR9etX9KvaODRW093lQKX1o,1754
|
|
58
58
|
agenta/client/backend/types/create_trace_response.py,sha256=FO-Ii9JEn2AQ1nmZYmjnKRbACsNxRvY_-xn7Ys7Yo8A,1012
|
|
59
59
|
agenta/client/backend/types/docker_env_vars.py,sha256=altCvA1k-zdAkKNYLwaCnmV48HZg9cwe2cHu_BGImac,986
|
|
60
60
|
agenta/client/backend/types/environment_output.py,sha256=dl0GKodeqB7kWK5mH6Y4iBppkpwRzSTmtkXH1II4L6w,1257
|
|
@@ -73,7 +73,7 @@ agenta/client/backend/types/evaluation_webhook.py,sha256=emuKpD4NQjgYkjvQUyKLzHH
|
|
|
73
73
|
agenta/client/backend/types/evaluator.py,sha256=AezEarRlPQ19mDU5Af4zixwbWckbMPg8Kjn11HxyXFQ,1084
|
|
74
74
|
agenta/client/backend/types/evaluator_config.py,sha256=d3_ZxThl6ZkXTbmtBiqIg6CJIH8ha6am6fPEYcxp89A,1124
|
|
75
75
|
agenta/client/backend/types/feedback.py,sha256=aYDUHvxJ0A3Dhs8JSWYLpxef3bIaHrug6gXH5pNtuAQ,1136
|
|
76
|
-
agenta/client/backend/types/get_config_response.py,sha256=
|
|
76
|
+
agenta/client/backend/types/get_config_response.py,sha256=8a-RJDiBewC5Hdc0sZgt7sGwBfFzSohYqXIlQF1azf0,1081
|
|
77
77
|
agenta/client/backend/types/http_validation_error.py,sha256=YhAPLKvuWLcgHn-uVWiZdWInseMiIS5eymdHKDqAB6Y,1060
|
|
78
78
|
agenta/client/backend/types/human_evaluation.py,sha256=fSSO8Li0pAPcYe6lVUvJfrBTeGlJ8srdSw478vxXwW0,1305
|
|
79
79
|
agenta/client/backend/types/human_evaluation_scenario.py,sha256=Ug3XQusHX5VfU_X2_EJhU58xgedZi59MrRIAgJWk3VY,1508
|
|
@@ -127,13 +127,13 @@ 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=ueA-t4-UCZDemEMPUX6GqST-0Ewfc05G3GKkmRJuK4w,3422
|
|
129
129
|
agenta/sdk/__init__.py,sha256=jmeLRuXrew02ZruODZYIu4kpw0S8vV6JhMPQWFGtj30,648
|
|
130
|
-
agenta/sdk/agenta_decorator.py,sha256=
|
|
131
|
-
agenta/sdk/agenta_init.py,sha256=
|
|
130
|
+
agenta/sdk/agenta_decorator.py,sha256=aYTsTGd22X87CxyqGIyfNGcNjVZCaO8yDk_M7US9Dpw,17287
|
|
131
|
+
agenta/sdk/agenta_init.py,sha256=KHiIBtItXxOAkVtuFQfwokvw1_Xop8cCKYoVoqCMx5g,8886
|
|
132
132
|
agenta/sdk/context.py,sha256=q-PxL05-I84puunUAs9LGsffEXcYhDxhQxjuOz2vK90,901
|
|
133
133
|
agenta/sdk/router.py,sha256=0sbajvn5C7t18anH6yNo7-oYxldHnYfwcbmQnIXBePw,269
|
|
134
134
|
agenta/sdk/tracing/context_manager.py,sha256=HskDaiORoOhjeN375gm05wYnieQzh5UnoIsnSAHkAyc,252
|
|
135
135
|
agenta/sdk/tracing/decorators.py,sha256=ujtU8gf3GDoHYuLTfEYK_2eIYZ-1oX5dpv02Mf4l_II,1191
|
|
136
|
-
agenta/sdk/tracing/llm_tracing.py,sha256=
|
|
136
|
+
agenta/sdk/tracing/llm_tracing.py,sha256=kJ1yrl6quoswIgxR-dBQBAdmUDhWU_X4K4ByNS52J1k,7175
|
|
137
137
|
agenta/sdk/tracing/logger.py,sha256=4zG9c51p8xPdKA5SL8MOgBfkpCnBSuV6JfWiXO0A7oc,473
|
|
138
138
|
agenta/sdk/tracing/tasks_manager.py,sha256=XVGBEOwmHa6KcCC0PApk0_bZ0Ilk2ESuduNObB1rw2s,3792
|
|
139
139
|
agenta/sdk/types.py,sha256=Mn0yBlHh_Yr_5oQXUfsYI3V7sJAVWkJgkxEOBDOOMS0,5852
|
|
@@ -155,7 +155,7 @@ agenta/templates/simple_prompt/app.py,sha256=kODgF6lhzsaJPdgL5b21bUki6jkvqjWZzWR
|
|
|
155
155
|
agenta/templates/simple_prompt/env.example,sha256=g9AE5bYcGPpxawXMJ96gh8oenEPCHTabsiOnfQo3c5k,70
|
|
156
156
|
agenta/templates/simple_prompt/requirements.txt,sha256=ywRglRy7pPkw8bljmMEJJ4aOOQKrt9FGKULZ-DGkoBU,23
|
|
157
157
|
agenta/templates/simple_prompt/template.toml,sha256=DQBtRrF4GU8LBEXOZ-GGuINXMQDKGTEG5y37tnvIUIE,60
|
|
158
|
-
agenta-0.13.
|
|
159
|
-
agenta-0.13.
|
|
160
|
-
agenta-0.13.
|
|
161
|
-
agenta-0.13.
|
|
158
|
+
agenta-0.13.0a1.dist-info/METADATA,sha256=opQ9aTTLZU5okKXpy-RmQRre36x9D8S_e-p4rolfUuw,26433
|
|
159
|
+
agenta-0.13.0a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
160
|
+
agenta-0.13.0a1.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
|
|
161
|
+
agenta-0.13.0a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|