agenta 0.13.1__py3-none-any.whl → 0.13.3__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/cli/main.py CHANGED
@@ -248,8 +248,9 @@ def init(app_name: str, backend_host: str):
248
248
  gitignore_content = (
249
249
  "# Environments \nenv/\nvenv/\nENV/\nenv.bak/\nvenv.bak/\nmyenv/\n"
250
250
  )
251
- with open(".gitignore", "w") as gitignore_file:
252
- gitignore_file.write(gitignore_content)
251
+ if not os.path.exists(".agentaignore"):
252
+ with open(".agentaignore", "w") as gitignore_file:
253
+ gitignore_file.write(gitignore_content)
253
254
 
254
255
  click.echo("App initialized successfully")
255
256
  if init_option == "Start from template":
@@ -51,12 +51,14 @@ def build_tar_docker_container(folder: Path, file_name: Path) -> Path:
51
51
  shutil.copy(Path(__file__).parent / "docker-assets" / "lambda_function.py", folder)
52
52
  shutil.copy(Path(__file__).parent / "docker-assets" / "entrypoint.sh", folder)
53
53
 
54
+ # Initialize agentaignore_content with an empty string
55
+ agentaignore_content = ""
56
+
54
57
  # Read the contents of .gitignore file
55
- gitignore_content = ""
56
- gitignore_file_path = folder / ".gitignore"
57
- if gitignore_file_path.exists():
58
- with open(gitignore_file_path, "r") as gitignore_file:
59
- gitignore_content = gitignore_file.read()
58
+ agentaignore_file_path = folder / ".agentaignore"
59
+ if agentaignore_file_path.exists():
60
+ with open(agentaignore_file_path, "r") as agentaignore_file:
61
+ agentaignore_content = agentaignore_file.read()
60
62
 
61
63
  # Create a temporary directory
62
64
  with tempfile.TemporaryDirectory() as temp_dir:
@@ -64,7 +66,7 @@ def build_tar_docker_container(folder: Path, file_name: Path) -> Path:
64
66
 
65
67
  # Clean - remove '/' from every files and folders in the gitignore contents
66
68
  sanitized_patterns = [
67
- pattern.replace("/", "") for pattern in gitignore_content.splitlines()
69
+ pattern.replace("/", "") for pattern in agentaignore_content.splitlines()
68
70
  ]
69
71
 
70
72
  # Function to ignore files based on the patterns
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: agenta
3
- Version: 0.13.1
3
+ Version: 0.13.3
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
@@ -1,7 +1,7 @@
1
1
  agenta/__init__.py,sha256=76BQuUIAiXkLz_hjiDAsqos8UAD8J2zGkfwJOewtP3Y,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
- agenta/cli/main.py,sha256=oDhr3cBOjm5EisXbq8ix8RFptDmwl0hsXbyIyQ9LXf4,9492
4
+ agenta/cli/main.py,sha256=GgYu6UsrnHbqPV7zPlO14b61IyaDiTIjGMYQS9DlqC4,9551
5
5
  agenta/cli/telemetry.py,sha256=GaFFRsE_NtrcSSJ10r2jhgFs5Sk8gf2C09Ox3gOr3eU,1317
6
6
  agenta/cli/variant_commands.py,sha256=y1OQgdVAjqiGldgih1rORtuFqOytD4Ncuh-vMue3gik,16915
7
7
  agenta/cli/variant_configs.py,sha256=PLiuMKadVzs6Gi2uYaT0pZzyULNHDXaTMDWboqpwWdU,1293
@@ -125,7 +125,7 @@ agenta/docker/docker-assets/README.md,sha256=XHxwh2ks_ozrtAU7SLbL3J14SB2holG6buo
125
125
  agenta/docker/docker-assets/entrypoint.sh,sha256=29XK8VQjQsx4hN2j-4JDy-6kQb5y4LCqZEa7PD4eqCQ,74
126
126
  agenta/docker/docker-assets/lambda_function.py,sha256=h4UZSSfqwpfsCgERv6frqwm_4JrYu9rLz3I-LxCfeEg,83
127
127
  agenta/docker/docker-assets/main.py,sha256=7MI-21n81U7N7A0GxebNi0cmGWtJKcR2sPB6FcH2QfA,251
128
- agenta/docker/docker_utils.py,sha256=ueA-t4-UCZDemEMPUX6GqST-0Ewfc05G3GKkmRJuK4w,3422
128
+ agenta/docker/docker_utils.py,sha256=5uHMCzXkCvIsDdEiwbnnn97KkzsFbBvyMwogCsv_Z5U,3509
129
129
  agenta/sdk/__init__.py,sha256=jmeLRuXrew02ZruODZYIu4kpw0S8vV6JhMPQWFGtj30,648
130
130
  agenta/sdk/agenta_decorator.py,sha256=6vz0G3YCRKRzK8JrQFyy8c2RIXy2kVMwyxTS093_8vQ,17296
131
131
  agenta/sdk/agenta_init.py,sha256=wDfStpe8_3ZXRLtikarwDKI_VpA1YW4eIz_3fXq39is,9044
@@ -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.1.dist-info/METADATA,sha256=7R5UlZ759DFB7CEIF3QM1H0hKly12_18t6i-YTnT8vY,26431
159
- agenta-0.13.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
160
- agenta-0.13.1.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
161
- agenta-0.13.1.dist-info/RECORD,,
158
+ agenta-0.13.3.dist-info/METADATA,sha256=JDlghZrWRGeABzjstccd-rbje6liS8EtJmtbEUnUXrI,26431
159
+ agenta-0.13.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
160
+ agenta-0.13.3.dist-info/entry_points.txt,sha256=PDiu8_8AsL7ibU9v4iNoOKR1S7F2rdxjlEprjM9QOgo,46
161
+ agenta-0.13.3.dist-info/RECORD,,