agenta 0.13.4__py3-none-any.whl → 0.13.6__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/__init__.py +1 -1
- agenta/cli/variant_commands.py +9 -4
- {agenta-0.13.4.dist-info → agenta-0.13.6.dist-info}/METADATA +1 -1
- {agenta-0.13.4.dist-info → agenta-0.13.6.dist-info}/RECORD +6 -6
- {agenta-0.13.4.dist-info → agenta-0.13.6.dist-info}/WHEEL +0 -0
- {agenta-0.13.4.dist-info → agenta-0.13.6.dist-info}/entry_points.txt +0 -0
agenta/__init__.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from .sdk.utils.preinit import PreInitObject
|
|
1
2
|
from .sdk.agenta_decorator import app, entrypoint
|
|
2
3
|
from .sdk.context import get_contexts, save_context
|
|
3
4
|
from .sdk.types import (
|
|
@@ -14,7 +15,6 @@ from .sdk.types import (
|
|
|
14
15
|
BinaryParam,
|
|
15
16
|
)
|
|
16
17
|
from .sdk.tracing.decorators import span
|
|
17
|
-
from .sdk.utils.preinit import PreInitObject
|
|
18
18
|
from .sdk.agenta_init import Config, init, llm_tracing
|
|
19
19
|
from .sdk.utils.helper.openai_cost import calculate_token_usage
|
|
20
20
|
|
agenta/cli/variant_commands.py
CHANGED
|
@@ -9,13 +9,15 @@ from requests.exceptions import ConnectionError
|
|
|
9
9
|
import click
|
|
10
10
|
import questionary
|
|
11
11
|
import toml
|
|
12
|
+
|
|
12
13
|
from agenta.cli import helper
|
|
13
14
|
from agenta.cli.telemetry import event_track
|
|
15
|
+
from agenta.client.backend.client import AgentaApi
|
|
16
|
+
from agenta.client.api import add_variant_to_server
|
|
14
17
|
from agenta.client.api_models import AppVariant, Image
|
|
15
18
|
from agenta.docker.docker_utils import build_tar_docker_container
|
|
19
|
+
from agenta.client.backend.types.variant_action import VariantActionEnum, VariantAction
|
|
16
20
|
|
|
17
|
-
from agenta.client.api import add_variant_to_server
|
|
18
|
-
from agenta.client.backend.client import AgentaApi
|
|
19
21
|
|
|
20
22
|
BACKEND_URL_SUFFIX = os.environ.get("BACKEND_URL_SUFFIX", "api")
|
|
21
23
|
|
|
@@ -260,8 +262,11 @@ def start_variant(variant_id: str, app_folder: str, host: str):
|
|
|
260
262
|
)
|
|
261
263
|
|
|
262
264
|
endpoint = client.variants.start_variant(
|
|
263
|
-
variant_id=variant_id,
|
|
264
|
-
|
|
265
|
+
variant_id=variant_id,
|
|
266
|
+
action=VariantAction(
|
|
267
|
+
action=VariantActionEnum.START,
|
|
268
|
+
),
|
|
269
|
+
).uri
|
|
265
270
|
click.echo("\n" + click.style("Congratulations! 🎉", bold=True, fg="green"))
|
|
266
271
|
click.echo(
|
|
267
272
|
click.style("Your app has been deployed locally as an API. 🚀", fg="cyan")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
agenta/__init__.py,sha256=
|
|
1
|
+
agenta/__init__.py,sha256=ZI0rGpXMt1F9q27BjEpygUyh4lyCNxTaz4UMAZPePYc,580
|
|
2
2
|
agenta/cli/evaluation_commands.py,sha256=fs6492tprPId9p8eGO02Xy-NCBm2RZNJLZWcUxugwd8,474
|
|
3
3
|
agenta/cli/helper.py,sha256=vRxHyeNaltzNIGrfU2vO0H28_rXDzx9QqIZ_S-W6zL4,6212
|
|
4
4
|
agenta/cli/main.py,sha256=GgYu6UsrnHbqPV7zPlO14b61IyaDiTIjGMYQS9DlqC4,9551
|
|
5
5
|
agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
|
|
6
|
-
agenta/cli/variant_commands.py,sha256=
|
|
6
|
+
agenta/cli/variant_commands.py,sha256=jmkq9eyoBYP2YxLg2lxyuD3Vo5cPx8dJXgD8pMJ5ejE,17066
|
|
7
7
|
agenta/cli/variant_configs.py,sha256=PLiuMKadVzs6Gi2uYaT0pZzyULNHDXaTMDWboqpwWdU,1293
|
|
8
8
|
agenta/client/Readme.md,sha256=zWJ6VMYCG124op5RcqgWBdJdlGkGQ2rPLk9F32rWvqo,2756
|
|
9
9
|
agenta/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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.6.dist-info/METADATA,sha256=rOruaS6mqnSa17zv1nB0no6GPw_jZzoQNLFPUujtkO8,26431
|
|
159
|
+
agenta-0.13.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
160
|
+
agenta-0.13.6.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
|
|
161
|
+
agenta-0.13.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|