agenta 0.14.14__tar.gz → 0.14.14a1__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.14.14 → agenta-0.14.14a1}/PKG-INFO +3 -3
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/agenta_decorator.py +103 -34
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/types.py +65 -83
- {agenta-0.14.14 → agenta-0.14.14a1}/pyproject.toml +3 -3
- {agenta-0.14.14 → agenta-0.14.14a1}/README.md +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/cli/evaluation_commands.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/cli/helper.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/cli/main.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/cli/telemetry.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/cli/variant_commands.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/cli/variant_configs.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/Readme.md +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/api.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/api_models.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/core/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/core/api_error.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/core/client_wrapper.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/core/datetime_utils.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/core/jsonable_encoder.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/core/remove_none_from_dict.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/errors/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/errors/unprocessable_entity_error.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/apps/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/apps/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/bases/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/bases/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/configs/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/configs/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/containers/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/containers/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/containers/types/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/containers/types/container_templates_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/environments/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/environments/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/evaluations/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/evaluations/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/evaluators/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/evaluators/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/observability/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/observability/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/testsets/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/testsets/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/variants/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/variants/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/variants/types/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/variants/types/add_variant_from_base_and_config_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/aggregated_result.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/aggregated_result_evaluator_config.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/app.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/app_variant_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/app_variant_revision.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/base_output.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/body_import_testset.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/config_db.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/create_app_output.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/create_span.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/create_trace_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/docker_env_vars.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/environment_output.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/environment_output_extended.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/environment_revision.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/error.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_input.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_output.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_result.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_score_update.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_status_enum.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_type.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_webhook.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluator.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluator_config.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/feedback.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/get_config_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/http_validation_error.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario_input.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario_output.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario_update.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_update.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/image.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/invite_request.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/list_api_keys_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/llm_run_rate_limit.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/llm_tokens.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/new_human_evaluation.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/new_testset.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/organization.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/organization_output.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/permission.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/result.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/score.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/simple_evaluation_output.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/span.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/span_detail.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/span_kind.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/span_status_code.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/span_variant.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/template.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/template_image_info.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/test_set_output_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/test_set_simple_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/trace_detail.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/uri.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/validation_error.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/validation_error_loc_item.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/variant_action.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/variant_action_enum.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/with_pagination.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/workspace_member_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/workspace_permission.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/workspace_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/workspace_role.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/workspace_role_response.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/exceptions.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/config.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/config.toml +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/docker/docker-assets/Dockerfile.cloud.template +1 -1
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/docker/docker-assets/Dockerfile.template +1 -1
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/docker/docker-assets/README.md +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/docker/docker-assets/entrypoint.sh +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/docker/docker-assets/lambda_function.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/docker/docker-assets/main.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/docker/docker_utils.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/__init__.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/agenta_init.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/client.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/context.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/router.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/tracing/context_manager.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/tracing/decorators.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/tracing/llm_tracing.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/tracing/logger.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/tracing/tasks_manager.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/utils/globals.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/utils/helper/openai_cost.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/sdk/utils/preinit.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/compose_email/README.md +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/compose_email/app.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/compose_email/env.example +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/compose_email/requirements.txt +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/compose_email/template.toml +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/extract_data_to_json/README.md +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/extract_data_to_json/app.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/extract_data_to_json/env.example +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/extract_data_to_json/requirements.txt +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/extract_data_to_json/template.toml +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/simple_prompt/README.md +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/simple_prompt/app.py +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/simple_prompt/env.example +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/simple_prompt/requirements.txt +0 -0
- {agenta-0.14.14 → agenta-0.14.14a1}/agenta/templates/simple_prompt/template.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: agenta
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.14a1
|
|
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
|
|
@@ -18,12 +18,12 @@ Classifier: Topic :: Software Development :: Libraries
|
|
|
18
18
|
Requires-Dist: cachetools (>=5.3.3,<6.0.0)
|
|
19
19
|
Requires-Dist: click (>=8.1.3,<9.0.0)
|
|
20
20
|
Requires-Dist: docker (>=6.1.1,<8.0.0)
|
|
21
|
-
Requires-Dist: fastapi (>=0.
|
|
21
|
+
Requires-Dist: fastapi (>=0.111.0,<0.112.0)
|
|
22
22
|
Requires-Dist: httpx (>=0.24,<0.28)
|
|
23
23
|
Requires-Dist: importlib-metadata (>=6.7,<8.0)
|
|
24
24
|
Requires-Dist: ipdb (>=0.13)
|
|
25
25
|
Requires-Dist: posthog (>=3.1.0,<4.0.0)
|
|
26
|
-
Requires-Dist: pydantic (
|
|
26
|
+
Requires-Dist: pydantic (>=2.7.1,<3.0.0)
|
|
27
27
|
Requires-Dist: pymongo (>=4.6.3,<5.0.0)
|
|
28
28
|
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
|
|
29
29
|
Requires-Dist: python-multipart (>=0.0.6,<0.0.10)
|
|
@@ -57,7 +57,7 @@ def ingest_file(upfile: UploadFile):
|
|
|
57
57
|
return InFile(file_name=upfile.filename, file_path=temp_file.name)
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
def entrypoint(func: Callable[..., Any])
|
|
60
|
+
def entrypoint(func: Callable[..., Any]):
|
|
61
61
|
"""
|
|
62
62
|
Decorator to wrap a function for HTTP POST and terminal exposure.
|
|
63
63
|
|
|
@@ -97,8 +97,8 @@ def entrypoint(func: Callable[..., Any]) -> Callable[..., Any]:
|
|
|
97
97
|
|
|
98
98
|
# End trace recording
|
|
99
99
|
tracing.end_recording(
|
|
100
|
-
outputs=llm_result.
|
|
101
|
-
span=tracing.active_trace,
|
|
100
|
+
outputs=llm_result.model_dump(),
|
|
101
|
+
span=tracing.active_trace, # type: ignore
|
|
102
102
|
)
|
|
103
103
|
return llm_result
|
|
104
104
|
|
|
@@ -130,8 +130,8 @@ def entrypoint(func: Callable[..., Any]) -> Callable[..., Any]:
|
|
|
130
130
|
|
|
131
131
|
# End trace recording
|
|
132
132
|
tracing.end_recording(
|
|
133
|
-
outputs=llm_result.
|
|
134
|
-
span=tracing.active_trace,
|
|
133
|
+
outputs=llm_result.model_dump(),
|
|
134
|
+
span=tracing.active_trace, # type: ignore
|
|
135
135
|
)
|
|
136
136
|
return llm_result
|
|
137
137
|
|
|
@@ -144,6 +144,7 @@ def entrypoint(func: Callable[..., Any]) -> Callable[..., Any]:
|
|
|
144
144
|
func_signature,
|
|
145
145
|
ingestible_files,
|
|
146
146
|
)
|
|
147
|
+
|
|
147
148
|
route_deployed = f"/{endpoint_name}_deployed"
|
|
148
149
|
app.post(route_deployed, response_model=FuncResponse)(wrapper_deployed)
|
|
149
150
|
override_schema(
|
|
@@ -156,11 +157,10 @@ def entrypoint(func: Callable[..., Any]) -> Callable[..., Any]:
|
|
|
156
157
|
if is_main_script(func):
|
|
157
158
|
handle_terminal_run(
|
|
158
159
|
func,
|
|
159
|
-
func_signature.parameters,
|
|
160
|
+
func_signature.parameters, # type: ignore
|
|
160
161
|
config_params,
|
|
161
162
|
ingestible_files,
|
|
162
163
|
)
|
|
163
|
-
return None
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
def extract_ingestible_files(
|
|
@@ -248,7 +248,7 @@ def update_wrapper_signature(wrapper: Callable[..., Any], updated_params: List):
|
|
|
248
248
|
|
|
249
249
|
wrapper_signature = inspect.signature(wrapper)
|
|
250
250
|
wrapper_signature = wrapper_signature.replace(parameters=updated_params)
|
|
251
|
-
wrapper.__signature__ = wrapper_signature
|
|
251
|
+
wrapper.__signature__ = wrapper_signature # type: ignore
|
|
252
252
|
|
|
253
253
|
|
|
254
254
|
def update_function_signature(
|
|
@@ -259,7 +259,7 @@ def update_function_signature(
|
|
|
259
259
|
) -> None:
|
|
260
260
|
"""Update the function signature to include new parameters."""
|
|
261
261
|
|
|
262
|
-
updated_params = []
|
|
262
|
+
updated_params: List[inspect.Parameter] = []
|
|
263
263
|
add_config_params_to_parser(updated_params, config_params)
|
|
264
264
|
add_func_params_to_parser(updated_params, func_signature, ingestible_files)
|
|
265
265
|
update_wrapper_signature(wrapper, updated_params)
|
|
@@ -271,7 +271,7 @@ def update_deployed_function_signature(
|
|
|
271
271
|
ingestible_files: Dict[str, inspect.Parameter],
|
|
272
272
|
) -> None:
|
|
273
273
|
"""Update the function signature to include new parameters."""
|
|
274
|
-
updated_params = []
|
|
274
|
+
updated_params: List[inspect.Parameter] = []
|
|
275
275
|
add_func_params_to_parser(updated_params, func_signature, ingestible_files)
|
|
276
276
|
for param in [
|
|
277
277
|
"config",
|
|
@@ -293,12 +293,19 @@ def add_config_params_to_parser(
|
|
|
293
293
|
) -> None:
|
|
294
294
|
"""Add configuration parameters to function signature."""
|
|
295
295
|
for name, param in config_params.items():
|
|
296
|
+
assert (
|
|
297
|
+
len(param.__class__.__bases__) == 1
|
|
298
|
+
), f"Inherited standard type of {param.__class__} needs to be one."
|
|
296
299
|
updated_params.append(
|
|
297
300
|
inspect.Parameter(
|
|
298
301
|
name,
|
|
299
302
|
inspect.Parameter.KEYWORD_ONLY,
|
|
300
303
|
default=Body(param),
|
|
301
|
-
annotation=
|
|
304
|
+
annotation=param.__class__.__bases__[
|
|
305
|
+
0
|
|
306
|
+
], # determines and get the base (parent/inheritance) type of the sdk-type at run-time. \
|
|
307
|
+
# E.g __class__ is ag.MessagesInput() and accessing it parent type will return (<class 'list'>,), \
|
|
308
|
+
# thus, why we are accessing the first item.
|
|
302
309
|
)
|
|
303
310
|
)
|
|
304
311
|
|
|
@@ -315,12 +322,19 @@ def add_func_params_to_parser(
|
|
|
315
322
|
inspect.Parameter(name, param.kind, annotation=UploadFile)
|
|
316
323
|
)
|
|
317
324
|
else:
|
|
325
|
+
assert (
|
|
326
|
+
len(param.default.__class__.__bases__) == 1
|
|
327
|
+
), f"Inherited standard type of {param.default.__class__} needs to be one."
|
|
318
328
|
updated_params.append(
|
|
319
329
|
inspect.Parameter(
|
|
320
330
|
name,
|
|
321
331
|
inspect.Parameter.KEYWORD_ONLY,
|
|
322
|
-
default=Body(
|
|
323
|
-
annotation=param.
|
|
332
|
+
default=Body(param.default),
|
|
333
|
+
annotation=param.default.__class__.__bases__[
|
|
334
|
+
0
|
|
335
|
+
], # determines and get the base (parent/inheritance) type of the sdk-type at run-time. \
|
|
336
|
+
# E.g __class__ is ag.MessagesInput() and accessing it parent type will return (<class 'list'>,), \
|
|
337
|
+
# thus, why we are accessing the first item.
|
|
324
338
|
)
|
|
325
339
|
)
|
|
326
340
|
|
|
@@ -375,8 +389,8 @@ def handle_terminal_run(
|
|
|
375
389
|
parser.add_argument(
|
|
376
390
|
f"--{name}",
|
|
377
391
|
type=str,
|
|
378
|
-
default=param.default,
|
|
379
|
-
choices=param.choices,
|
|
392
|
+
default=param.default, # type: ignore
|
|
393
|
+
choices=param.choices, # type: ignore
|
|
380
394
|
)
|
|
381
395
|
else:
|
|
382
396
|
parser.add_argument(
|
|
@@ -426,7 +440,9 @@ def override_schema(openapi_schema: dict, func_name: str, endpoint: str, params:
|
|
|
426
440
|
params (dict(param_name, param_val)): The dictionary of the parameters for the function
|
|
427
441
|
"""
|
|
428
442
|
|
|
429
|
-
def find_in_schema(
|
|
443
|
+
def find_in_schema(
|
|
444
|
+
schema_type_properties: dict, schema: dict, param_name: str, xparam: str
|
|
445
|
+
):
|
|
430
446
|
"""Finds a parameter in the schema based on its name and x-parameter value"""
|
|
431
447
|
for _, value in schema.items():
|
|
432
448
|
value_title_lower = str(value.get("title")).lower()
|
|
@@ -438,9 +454,17 @@ def override_schema(openapi_schema: dict, func_name: str, endpoint: str, params:
|
|
|
438
454
|
|
|
439
455
|
if (
|
|
440
456
|
isinstance(value, dict)
|
|
441
|
-
and
|
|
457
|
+
and schema_type_properties.get("x-parameter") == xparam
|
|
442
458
|
and value_title == param_name
|
|
443
459
|
):
|
|
460
|
+
# this will update the default type schema with the properties gotten
|
|
461
|
+
# from the schema type (param_val) __schema_properties__ classmethod
|
|
462
|
+
for type_key, type_value in schema_type_properties.items():
|
|
463
|
+
# BEFORE:
|
|
464
|
+
# value = {'temperature': {'title': 'Temperature'}}
|
|
465
|
+
value[type_key] = type_value
|
|
466
|
+
# AFTER:
|
|
467
|
+
# value = {'temperature': { "type": "number", "title": "Temperature", "x-parameter": "float" }}
|
|
444
468
|
return value
|
|
445
469
|
|
|
446
470
|
schema_to_override = openapi_schema["components"]["schemas"][
|
|
@@ -448,16 +472,26 @@ def override_schema(openapi_schema: dict, func_name: str, endpoint: str, params:
|
|
|
448
472
|
]["properties"]
|
|
449
473
|
for param_name, param_val in params.items():
|
|
450
474
|
if isinstance(param_val, GroupedMultipleChoiceParam):
|
|
451
|
-
subschema = find_in_schema(
|
|
475
|
+
subschema = find_in_schema(
|
|
476
|
+
param_val.__schema_type_properties__(),
|
|
477
|
+
schema_to_override,
|
|
478
|
+
param_name,
|
|
479
|
+
"grouped_choice",
|
|
480
|
+
)
|
|
452
481
|
assert (
|
|
453
482
|
subschema
|
|
454
483
|
), f"GroupedMultipleChoiceParam '{param_name}' is in the parameters but could not be found in the openapi.json"
|
|
455
|
-
subschema["choices"] = param_val.choices
|
|
456
|
-
subschema["default"] = param_val.default
|
|
484
|
+
subschema["choices"] = param_val.choices # type: ignore
|
|
485
|
+
subschema["default"] = param_val.default # type: ignore
|
|
457
486
|
if isinstance(param_val, MultipleChoiceParam):
|
|
458
|
-
subschema = find_in_schema(
|
|
487
|
+
subschema = find_in_schema(
|
|
488
|
+
param_val.__schema_type_properties__(),
|
|
489
|
+
schema_to_override,
|
|
490
|
+
param_name,
|
|
491
|
+
"choice",
|
|
492
|
+
)
|
|
459
493
|
default = str(param_val)
|
|
460
|
-
param_choices = param_val.choices
|
|
494
|
+
param_choices = param_val.choices # type: ignore
|
|
461
495
|
choices = (
|
|
462
496
|
[default] + param_choices
|
|
463
497
|
if param_val not in param_choices
|
|
@@ -466,36 +500,71 @@ def override_schema(openapi_schema: dict, func_name: str, endpoint: str, params:
|
|
|
466
500
|
subschema["enum"] = choices
|
|
467
501
|
subschema["default"] = default if default in param_choices else choices[0]
|
|
468
502
|
if isinstance(param_val, FloatParam):
|
|
469
|
-
subschema = find_in_schema(
|
|
470
|
-
|
|
471
|
-
|
|
503
|
+
subschema = find_in_schema(
|
|
504
|
+
param_val.__schema_type_properties__(),
|
|
505
|
+
schema_to_override,
|
|
506
|
+
param_name,
|
|
507
|
+
"float",
|
|
508
|
+
)
|
|
509
|
+
subschema["minimum"] = param_val.minval # type: ignore
|
|
510
|
+
subschema["maximum"] = param_val.maxval # type: ignore
|
|
472
511
|
subschema["default"] = param_val
|
|
473
512
|
if isinstance(param_val, IntParam):
|
|
474
|
-
subschema = find_in_schema(
|
|
475
|
-
|
|
476
|
-
|
|
513
|
+
subschema = find_in_schema(
|
|
514
|
+
param_val.__schema_type_properties__(),
|
|
515
|
+
schema_to_override,
|
|
516
|
+
param_name,
|
|
517
|
+
"int",
|
|
518
|
+
)
|
|
519
|
+
subschema["minimum"] = param_val.minval # type: ignore
|
|
520
|
+
subschema["maximum"] = param_val.maxval # type: ignore
|
|
477
521
|
subschema["default"] = param_val
|
|
478
522
|
if (
|
|
479
523
|
isinstance(param_val, inspect.Parameter)
|
|
480
524
|
and param_val.annotation is DictInput
|
|
481
525
|
):
|
|
482
|
-
subschema = find_in_schema(
|
|
526
|
+
subschema = find_in_schema(
|
|
527
|
+
param_val.annotation.__schema_type_properties__(),
|
|
528
|
+
schema_to_override,
|
|
529
|
+
param_name,
|
|
530
|
+
"dict",
|
|
531
|
+
)
|
|
483
532
|
subschema["default"] = param_val.default["default_keys"]
|
|
484
533
|
if isinstance(param_val, TextParam):
|
|
485
|
-
subschema = find_in_schema(
|
|
534
|
+
subschema = find_in_schema(
|
|
535
|
+
param_val.__schema_type_properties__(),
|
|
536
|
+
schema_to_override,
|
|
537
|
+
param_name,
|
|
538
|
+
"text",
|
|
539
|
+
)
|
|
486
540
|
subschema["default"] = param_val
|
|
487
541
|
if (
|
|
488
542
|
isinstance(param_val, inspect.Parameter)
|
|
489
543
|
and param_val.annotation is MessagesInput
|
|
490
544
|
):
|
|
491
|
-
subschema = find_in_schema(
|
|
545
|
+
subschema = find_in_schema(
|
|
546
|
+
param_val.annotation.__schema_type_properties__(),
|
|
547
|
+
schema_to_override,
|
|
548
|
+
param_name,
|
|
549
|
+
"messages",
|
|
550
|
+
)
|
|
492
551
|
subschema["default"] = param_val.default
|
|
493
552
|
if (
|
|
494
553
|
isinstance(param_val, inspect.Parameter)
|
|
495
554
|
and param_val.annotation is FileInputURL
|
|
496
555
|
):
|
|
497
|
-
subschema = find_in_schema(
|
|
556
|
+
subschema = find_in_schema(
|
|
557
|
+
param_val.annotation.__schema_type_properties__(),
|
|
558
|
+
schema_to_override,
|
|
559
|
+
param_name,
|
|
560
|
+
"file_url",
|
|
561
|
+
)
|
|
498
562
|
subschema["default"] = "https://example.com"
|
|
499
563
|
if isinstance(param_val, BinaryParam):
|
|
500
|
-
subschema = find_in_schema(
|
|
501
|
-
|
|
564
|
+
subschema = find_in_schema(
|
|
565
|
+
param_val.__schema_type_properties__(),
|
|
566
|
+
schema_to_override,
|
|
567
|
+
param_name,
|
|
568
|
+
"bool",
|
|
569
|
+
)
|
|
570
|
+
subschema["default"] = param_val.default # type: ignore
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import json
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Dict, List, Optional
|
|
3
3
|
|
|
4
|
-
from pydantic import
|
|
4
|
+
from pydantic import ConfigDict, BaseModel, HttpUrl
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
class InFile:
|
|
@@ -24,87 +24,75 @@ class FuncResponse(BaseModel):
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
class DictInput(dict):
|
|
27
|
-
def __new__(cls, default_keys=None):
|
|
27
|
+
def __new__(cls, default_keys: Optional[List[str]] = None):
|
|
28
28
|
instance = super().__new__(cls, default_keys)
|
|
29
29
|
if default_keys is None:
|
|
30
30
|
default_keys = []
|
|
31
|
-
instance.data = [key for key in default_keys]
|
|
31
|
+
instance.data = [key for key in default_keys] # type: ignore
|
|
32
32
|
return instance
|
|
33
33
|
|
|
34
34
|
@classmethod
|
|
35
|
-
def
|
|
36
|
-
|
|
35
|
+
def __schema_type_properties__(cls) -> dict:
|
|
36
|
+
return {"x-parameter": "dict"}
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
class TextParam(str):
|
|
40
40
|
@classmethod
|
|
41
|
-
def
|
|
42
|
-
|
|
41
|
+
def __schema_type_properties__(cls) -> dict:
|
|
42
|
+
return {"x-parameter": "text", "type": "string"}
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
class BinaryParam(int):
|
|
46
46
|
def __new__(cls, value: bool = False):
|
|
47
47
|
instance = super().__new__(cls, int(value))
|
|
48
|
-
instance.default = value
|
|
48
|
+
instance.default = value # type: ignore
|
|
49
49
|
return instance
|
|
50
50
|
|
|
51
51
|
@classmethod
|
|
52
|
-
def
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
)
|
|
52
|
+
def __schema_type_properties__(cls) -> dict:
|
|
53
|
+
return {
|
|
54
|
+
"x-parameter": "bool",
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
}
|
|
59
57
|
|
|
60
58
|
|
|
61
59
|
class IntParam(int):
|
|
62
60
|
def __new__(cls, default: int = 6, minval: float = 1, maxval: float = 10):
|
|
63
61
|
instance = super().__new__(cls, default)
|
|
64
|
-
instance.minval = minval
|
|
65
|
-
instance.maxval = maxval
|
|
62
|
+
instance.minval = minval # type: ignore
|
|
63
|
+
instance.maxval = maxval # type: ignore
|
|
66
64
|
return instance
|
|
67
65
|
|
|
68
66
|
@classmethod
|
|
69
|
-
def
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
"x-parameter": "int",
|
|
73
|
-
"type": "integer",
|
|
74
|
-
"minimum": 1,
|
|
75
|
-
"maximum": 10,
|
|
76
|
-
}
|
|
77
|
-
)
|
|
67
|
+
def __schema_type_properties__(cls) -> dict:
|
|
68
|
+
return {"x-parameter": "int", "type": "integer"}
|
|
78
69
|
|
|
79
70
|
|
|
80
71
|
class FloatParam(float):
|
|
81
72
|
def __new__(cls, default: float = 0.5, minval: float = 0.0, maxval: float = 1.0):
|
|
82
73
|
instance = super().__new__(cls, default)
|
|
83
|
-
instance.
|
|
84
|
-
instance.
|
|
74
|
+
instance.default = default # type: ignore
|
|
75
|
+
instance.minval = minval # type: ignore
|
|
76
|
+
instance.maxval = maxval # type: ignore
|
|
85
77
|
return instance
|
|
86
78
|
|
|
87
79
|
@classmethod
|
|
88
|
-
def
|
|
89
|
-
|
|
90
|
-
{
|
|
91
|
-
"x-parameter": "float",
|
|
92
|
-
"type": "number",
|
|
93
|
-
"minimum": 0.0,
|
|
94
|
-
"maximum": 1.0,
|
|
95
|
-
}
|
|
96
|
-
)
|
|
80
|
+
def __schema_type_properties__(cls) -> dict:
|
|
81
|
+
return {"x-parameter": "float", "type": "number"}
|
|
97
82
|
|
|
98
83
|
|
|
99
84
|
class MultipleChoiceParam(str):
|
|
100
|
-
def __new__(
|
|
101
|
-
|
|
85
|
+
def __new__(
|
|
86
|
+
cls, default: Optional[str] = None, choices: Optional[List[str]] = None
|
|
87
|
+
):
|
|
88
|
+
if default is not None and type(default) is list:
|
|
102
89
|
raise ValueError(
|
|
103
90
|
"The order of the parameters for MultipleChoiceParam is wrong! It's MultipleChoiceParam(default, choices) and not the opposite"
|
|
104
91
|
)
|
|
105
|
-
|
|
92
|
+
|
|
93
|
+
if not default and choices is not None:
|
|
106
94
|
# if a default value is not provided,
|
|
107
|
-
#
|
|
95
|
+
# set the first value in the choices list
|
|
108
96
|
default = choices[0]
|
|
109
97
|
|
|
110
98
|
if default is None and not choices:
|
|
@@ -112,23 +100,21 @@ class MultipleChoiceParam(str):
|
|
|
112
100
|
raise ValueError("You must provide either a default value or choices")
|
|
113
101
|
|
|
114
102
|
instance = super().__new__(cls, default)
|
|
115
|
-
instance.choices = choices
|
|
116
|
-
instance.default = default
|
|
103
|
+
instance.choices = choices # type: ignore
|
|
104
|
+
instance.default = default # type: ignore
|
|
117
105
|
return instance
|
|
118
106
|
|
|
119
107
|
@classmethod
|
|
120
|
-
def
|
|
121
|
-
|
|
122
|
-
{
|
|
123
|
-
"x-parameter": "choice",
|
|
124
|
-
"type": "string",
|
|
125
|
-
"enum": [],
|
|
126
|
-
}
|
|
127
|
-
)
|
|
108
|
+
def __schema_type_properties__(cls) -> dict:
|
|
109
|
+
return {"x-parameter": "choice", "type": "string", "enum": []}
|
|
128
110
|
|
|
129
111
|
|
|
130
112
|
class GroupedMultipleChoiceParam(str):
|
|
131
|
-
def __new__(
|
|
113
|
+
def __new__(
|
|
114
|
+
cls,
|
|
115
|
+
default: Optional[str] = None,
|
|
116
|
+
choices: Optional[Dict[str, List[str]]] = None,
|
|
117
|
+
):
|
|
132
118
|
if choices is None:
|
|
133
119
|
choices = {}
|
|
134
120
|
|
|
@@ -143,31 +129,23 @@ class GroupedMultipleChoiceParam(str):
|
|
|
143
129
|
)
|
|
144
130
|
|
|
145
131
|
if not default:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
132
|
+
default_selected_choice = next(
|
|
133
|
+
(choices for choices in choices.values()), None
|
|
134
|
+
)
|
|
135
|
+
if default_selected_choice:
|
|
136
|
+
default = default_selected_choice[0]
|
|
150
137
|
|
|
151
138
|
instance = super().__new__(cls, default)
|
|
152
|
-
instance.choices = choices
|
|
153
|
-
instance.default = default
|
|
139
|
+
instance.choices = choices # type: ignore
|
|
140
|
+
instance.default = default # type: ignore
|
|
154
141
|
return instance
|
|
155
142
|
|
|
156
143
|
@classmethod
|
|
157
|
-
def
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"type": "string",
|
|
163
|
-
"choices": choices,
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
class Message(BaseModel):
|
|
169
|
-
role: str
|
|
170
|
-
content: str
|
|
144
|
+
def __schema_type_properties__(cls) -> dict:
|
|
145
|
+
return {
|
|
146
|
+
"x-parameter": "grouped_choice",
|
|
147
|
+
"type": "string",
|
|
148
|
+
}
|
|
171
149
|
|
|
172
150
|
|
|
173
151
|
class MessagesInput(list):
|
|
@@ -182,28 +160,32 @@ class MessagesInput(list):
|
|
|
182
160
|
|
|
183
161
|
"""
|
|
184
162
|
|
|
185
|
-
def __new__(cls, messages: List[Dict[str, str]] =
|
|
186
|
-
instance = super().__new__(cls
|
|
187
|
-
instance.default = messages
|
|
163
|
+
def __new__(cls, messages: List[Dict[str, str]] = []):
|
|
164
|
+
instance = super().__new__(cls)
|
|
165
|
+
instance.default = messages # type: ignore
|
|
188
166
|
return instance
|
|
189
167
|
|
|
190
168
|
@classmethod
|
|
191
|
-
def
|
|
192
|
-
|
|
169
|
+
def __schema_type_properties__(cls) -> dict:
|
|
170
|
+
return {"x-parameter": "messages", "type": "array"}
|
|
193
171
|
|
|
194
172
|
|
|
195
173
|
class FileInputURL(HttpUrl):
|
|
174
|
+
def __new__(cls, url: str):
|
|
175
|
+
instance = super().__new__(cls, url)
|
|
176
|
+
instance.default = url # type: ignore
|
|
177
|
+
return instance
|
|
178
|
+
|
|
196
179
|
@classmethod
|
|
197
|
-
def
|
|
198
|
-
|
|
180
|
+
def __schema_type_properties__(cls) -> dict:
|
|
181
|
+
return {"x-parameter": "file_url", "type": "string"}
|
|
199
182
|
|
|
200
183
|
|
|
201
184
|
class Context(BaseModel):
|
|
202
|
-
|
|
203
|
-
extra = Extra.allow
|
|
185
|
+
model_config = ConfigDict(extra="allow")
|
|
204
186
|
|
|
205
187
|
def to_json(self):
|
|
206
|
-
return self.
|
|
188
|
+
return self.model_dump()
|
|
207
189
|
|
|
208
190
|
@classmethod
|
|
209
191
|
def from_json(cls, json_str: str):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "agenta"
|
|
3
|
-
version = "0.14.
|
|
3
|
+
version = "0.14.14a1"
|
|
4
4
|
description = "The SDK for agenta is an open-source LLMOps platform."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = ["Mahmoud Mabrouk <mahmoud@agenta.ai>"]
|
|
@@ -19,7 +19,7 @@ keywords = ["LLMOps", "LLM", "evaluation", "prompt engineering"]
|
|
|
19
19
|
python = "^3.9"
|
|
20
20
|
docker = ">=6.1.1,<8.0.0"
|
|
21
21
|
click = "^8.1.3"
|
|
22
|
-
fastapi = "
|
|
22
|
+
fastapi = "^0.111.0"
|
|
23
23
|
toml = "^0.10.2"
|
|
24
24
|
questionary = ">=1.10,<3.0"
|
|
25
25
|
ipdb = ">=0.13"
|
|
@@ -27,7 +27,7 @@ python-dotenv = "^1.0.0"
|
|
|
27
27
|
python-multipart = ">=0.0.6,<0.0.10"
|
|
28
28
|
importlib-metadata = ">=6.7,<8.0"
|
|
29
29
|
posthog = "^3.1.0"
|
|
30
|
-
pydantic = "
|
|
30
|
+
pydantic = "^2.7.1"
|
|
31
31
|
httpx = ">=0.24, <0.28"
|
|
32
32
|
pymongo = "^4.6.3"
|
|
33
33
|
cachetools = "^5.3.3"
|
|
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
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/errors/unprocessable_entity_error.py
RENAMED
|
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
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/containers/types/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/environments/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/observability/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/resources/variants/types/__init__.py
RENAMED
|
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
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/environment_output_extended.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_input.py
RENAMED
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_output.py
RENAMED
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_result.py
RENAMED
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/evaluation_scenario_score_update.py
RENAMED
|
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
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario.py
RENAMED
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario_input.py
RENAMED
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario_output.py
RENAMED
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/human_evaluation_scenario_update.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/validation_error_loc_item.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{agenta-0.14.14 → agenta-0.14.14a1}/agenta/client/backend/types/workspace_member_response.py
RENAMED
|
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
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
FROM public.ecr.aws/s2t9a1r1/agentaai/lambda_templates_public:main
|
|
2
2
|
|
|
3
3
|
COPY requirements.txt ${LAMBDA_TASK_ROOT}
|
|
4
|
+
RUN pip install --no-cache-dir --disable-pip-version-check -U agenta
|
|
4
5
|
RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
|
|
5
6
|
RUN pip install --no-cache-dir --disable-pip-version-check mangum
|
|
6
|
-
RUN pip install --no-cache-dir --disable-pip-version-check -U agenta
|
|
7
7
|
COPY . ${LAMBDA_TASK_ROOT}
|
|
8
8
|
|
|
9
9
|
CMD [ "lambda_function.handler" ]
|
|
@@ -4,8 +4,8 @@ WORKDIR /app
|
|
|
4
4
|
|
|
5
5
|
COPY . .
|
|
6
6
|
|
|
7
|
-
RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
|
|
8
7
|
RUN pip install --no-cache-dir --disable-pip-version-check -U agenta
|
|
8
|
+
RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt
|
|
9
9
|
|
|
10
10
|
EXPOSE 80
|
|
11
11
|
|
|
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
|
|
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
|