agenta 0.1.29__tar.gz → 0.2.2__tar.gz
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-0.1.29 → agenta-0.2.2}/PKG-INFO +1 -1
- {agenta-0.1.29 → agenta-0.2.2}/agenta/cli/main.py +3 -1
- {agenta-0.1.29 → agenta-0.2.2}/agenta/client/client.py +2 -1
- {agenta-0.1.29 → agenta-0.2.2}/agenta/sdk/agenta.py +4 -12
- {agenta-0.1.29 → agenta-0.2.2}/agenta/sdk/types.py +1 -1
- {agenta-0.1.29 → agenta-0.2.2}/pyproject.toml +1 -1
- {agenta-0.1.29 → agenta-0.2.2}/README.md +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/__init__.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/cli/helper.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/cli/variant_commands.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/client/Readme.md +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/client/__init__.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/client/api_models.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/config.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/config.toml +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/docker/docker-assets/Dockerfile.template +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/docker/docker-assets/README.md +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/docker/docker-assets/entrypoint.sh +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/docker/docker-assets/main.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/docker/docker_utils.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/sdk/__init__.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/sdk/context.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/sdk/init.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/sdk/router.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/templates/simple_prompt/README.md +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/templates/simple_prompt/app.py +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/templates/simple_prompt/env.example +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/templates/simple_prompt/requirements.txt +0 -0
- {agenta-0.1.29 → agenta-0.2.2}/agenta/templates/simple_prompt/template.toml +0 -0
|
@@ -145,7 +145,9 @@ def init(app_name: str):
|
|
|
145
145
|
sys.exit(0)
|
|
146
146
|
|
|
147
147
|
# Create a .gitignore file and add some default environment folder names to it
|
|
148
|
-
gitignore_content =
|
|
148
|
+
gitignore_content = (
|
|
149
|
+
"# Environments \nenv/\nvenv/\nENV/\nenv.bak/\nvenv.bak/\nmyenv/\n"
|
|
150
|
+
)
|
|
149
151
|
with open(".gitignore", "w") as gitignore_file:
|
|
150
152
|
gitignore_file.write(gitignore_content)
|
|
151
153
|
|
|
@@ -47,9 +47,10 @@ def start_variant(app_name: str, variant_name: str, host: str) -> str:
|
|
|
47
47
|
"""
|
|
48
48
|
response = requests.post(
|
|
49
49
|
f"{host}/{BACKEND_URL_SUFFIX}/app_variant/start/",
|
|
50
|
-
json={"app_name": app_name, "variant_name": variant_name},
|
|
50
|
+
json={"app_variant": {"app_name": app_name, "variant_name": variant_name}},
|
|
51
51
|
timeout=600,
|
|
52
52
|
)
|
|
53
|
+
|
|
53
54
|
if response.status_code != 200:
|
|
54
55
|
error_message = response.json()["detail"]
|
|
55
56
|
raise APIRequestError(
|
|
@@ -64,15 +64,11 @@ def ingest(func: Callable[..., Any]):
|
|
|
64
64
|
}
|
|
65
65
|
# find the default values for the optional parameters
|
|
66
66
|
for name, param in app_params.items():
|
|
67
|
-
default_value =
|
|
68
|
-
param.default if param.default is not param.empty else None
|
|
69
|
-
)
|
|
67
|
+
default_value = param.default if param.default is not param.empty else None
|
|
70
68
|
app_params[name] = default_value
|
|
71
69
|
|
|
72
70
|
ingestible_files = {
|
|
73
|
-
name: param
|
|
74
|
-
for name, param in func_params.items()
|
|
75
|
-
if param.annotation is InFile
|
|
71
|
+
name: param for name, param in func_params.items() if param.annotation is InFile
|
|
76
72
|
}
|
|
77
73
|
|
|
78
74
|
@functools.wraps(func)
|
|
@@ -292,9 +288,7 @@ def override_schema(
|
|
|
292
288
|
]["properties"]
|
|
293
289
|
for param_name, param_val in app_params.items():
|
|
294
290
|
if isinstance(param_val, MultipleChoiceParam):
|
|
295
|
-
subschema = find_in_schema(
|
|
296
|
-
schema_to_override, param_name, "choice"
|
|
297
|
-
)
|
|
291
|
+
subschema = find_in_schema(schema_to_override, param_name, "choice")
|
|
298
292
|
default = str(param_val)
|
|
299
293
|
param_choices = param_val.choices
|
|
300
294
|
choices = (
|
|
@@ -304,9 +298,7 @@ def override_schema(
|
|
|
304
298
|
)
|
|
305
299
|
|
|
306
300
|
subschema["enum"] = choices
|
|
307
|
-
subschema["default"] =
|
|
308
|
-
default if default in param_choices else choices[0]
|
|
309
|
-
)
|
|
301
|
+
subschema["default"] = default if default in param_choices else choices[0]
|
|
310
302
|
if isinstance(param_val, FloatParam):
|
|
311
303
|
subschema = find_in_schema(schema_to_override, param_name, "float")
|
|
312
304
|
subschema["minimum"] = param_val.minval
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|