agenta 0.19.6__py3-none-any.whl → 0.19.6a0__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 +5 -0
- agenta/sdk/decorators/tracing.py +2 -0
- agenta/sdk/tracing/llm_tracing.py +1 -0
- {agenta-0.19.6.dist-info → agenta-0.19.6a0.dist-info}/METADATA +1 -1
- {agenta-0.19.6.dist-info → agenta-0.19.6a0.dist-info}/RECORD +7 -7
- {agenta-0.19.6.dist-info → agenta-0.19.6a0.dist-info}/WHEEL +0 -0
- {agenta-0.19.6.dist-info → agenta-0.19.6a0.dist-info}/entry_points.txt +0 -0
agenta/sdk/agenta_init.py
CHANGED
|
@@ -240,6 +240,11 @@ def init(
|
|
|
240
240
|
|
|
241
241
|
singleton.init(app_id=app_id, host=host, api_key=api_key, config_fname=config_fname)
|
|
242
242
|
|
|
243
|
+
if os.environ.get("AGENTA_LOCAL", False):
|
|
244
|
+
singleton.host = singleton.host.replace(
|
|
245
|
+
"http://localhost", "http://host.docker.internal"
|
|
246
|
+
)
|
|
247
|
+
|
|
243
248
|
tracing = Tracing(
|
|
244
249
|
host=singleton.host, # type: ignore
|
|
245
250
|
app_id=singleton.app_id, # type: ignore
|
agenta/sdk/decorators/tracing.py
CHANGED
|
@@ -56,6 +56,7 @@ class instrument(BaseDecorator):
|
|
|
56
56
|
input_dict.update(kwargs)
|
|
57
57
|
|
|
58
58
|
async def wrapped_func(*args, **kwargs):
|
|
59
|
+
|
|
59
60
|
# logging.debug(" ".join([">..", str(tracing_context.get())]))
|
|
60
61
|
|
|
61
62
|
token = None
|
|
@@ -123,6 +124,7 @@ class instrument(BaseDecorator):
|
|
|
123
124
|
input_dict.update(kwargs)
|
|
124
125
|
|
|
125
126
|
def wrapped_func(*args, **kwargs):
|
|
127
|
+
|
|
126
128
|
# logging.debug(" ".join([">..", str(tracing_context.get())]))
|
|
127
129
|
|
|
128
130
|
token = None
|
|
@@ -127,17 +127,17 @@ 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=
|
|
130
|
+
agenta/sdk/agenta_init.py,sha256=xZEuuSnKm1zgG7YFpMCMXxabbgVyPqnW6am0Qu3n3TU,9958
|
|
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
134
|
agenta/sdk/decorators/llm_entrypoint.py,sha256=umcniOOQfKVdPgHVb_jRhoGKei14Yc3PIZmEC8CU2Wg,22996
|
|
135
|
-
agenta/sdk/decorators/tracing.py,sha256=
|
|
135
|
+
agenta/sdk/decorators/tracing.py,sha256=_RCiT6VqOshUtFm7rZhv5mQGl5PioXPDJxb3N8EDOUY,6174
|
|
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=8XYcGC4EZQ0lBn2IWmtPH_yC5Hu6Yu-NkdZRuY7CoTw,6816
|
|
139
139
|
agenta/sdk/tracing/context_manager.py,sha256=HskDaiORoOhjeN375gm05wYnieQzh5UnoIsnSAHkAyc,252
|
|
140
|
-
agenta/sdk/tracing/llm_tracing.py,sha256=
|
|
140
|
+
agenta/sdk/tracing/llm_tracing.py,sha256=k8SfZ7mo2oDUijne00lGkHh1AryzWydZEefT4RtnnWU,13690
|
|
141
141
|
agenta/sdk/tracing/logger.py,sha256=GfH7V-jBHcn7h5dbdrnkDMe_ml3wkXFBeoQiqR4KVRc,474
|
|
142
142
|
agenta/sdk/tracing/tasks_manager.py,sha256=ROrWIaqS2J2HHiJtRWiHKlLY8CCsqToP5VeXu7mamck,3748
|
|
143
143
|
agenta/sdk/tracing/tracing_context.py,sha256=EOi1zfqpb2cBjhBtHIphUkVHi4jiWes-RRNdbgk1kMc,906
|
|
@@ -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.19.
|
|
165
|
-
agenta-0.19.
|
|
166
|
-
agenta-0.19.
|
|
167
|
-
agenta-0.19.
|
|
164
|
+
agenta-0.19.6a0.dist-info/METADATA,sha256=0uvnsMgJUeCyZC51VbA-_C67WR4gpzEYNfKQ5onan1E,26462
|
|
165
|
+
agenta-0.19.6a0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
166
|
+
agenta-0.19.6a0.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
|
|
167
|
+
agenta-0.19.6a0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|