mutagent-sdk 0.1.0__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.
- mutagent/__init__.py +231 -0
- mutagent/_funcs/__init__.py +125 -0
- mutagent/_funcs/add_experiment_result.py +42 -0
- mutagent/_funcs/add_organization_member.py +42 -0
- mutagent/_funcs/add_workspace_member.py +42 -0
- mutagent/_funcs/bulk_create_prompt_dataset_items.py +42 -0
- mutagent/_funcs/cancel_optimization.py +40 -0
- mutagent/_funcs/change_password.py +38 -0
- mutagent/_funcs/check_organization_slug.py +40 -0
- mutagent/_funcs/clone_prompt_dataset.py +42 -0
- mutagent/_funcs/complete_experiment.py +42 -0
- mutagent/_funcs/create_agent.py +38 -0
- mutagent/_funcs/create_batch_prompt_execution.py +38 -0
- mutagent/_funcs/create_evaluation.py +38 -0
- mutagent/_funcs/create_evaluation_version.py +40 -0
- mutagent/_funcs/create_experiment.py +38 -0
- mutagent/_funcs/create_invitation.py +42 -0
- mutagent/_funcs/create_organization.py +38 -0
- mutagent/_funcs/create_prompt.py +38 -0
- mutagent/_funcs/create_prompt_dataset.py +42 -0
- mutagent/_funcs/create_prompt_dataset_item.py +42 -0
- mutagent/_funcs/create_prompt_execution.py +38 -0
- mutagent/_funcs/create_prompt_version.py +42 -0
- mutagent/_funcs/create_provider.py +38 -0
- mutagent/_funcs/create_workspace.py +38 -0
- mutagent/_funcs/delete_account.py +38 -0
- mutagent/_funcs/delete_agent.py +40 -0
- mutagent/_funcs/delete_evaluation.py +40 -0
- mutagent/_funcs/delete_experiment.py +40 -0
- mutagent/_funcs/delete_invitation.py +42 -0
- mutagent/_funcs/delete_organization.py +40 -0
- mutagent/_funcs/delete_playground_run.py +40 -0
- mutagent/_funcs/delete_prompt.py +44 -0
- mutagent/_funcs/delete_prompt_dataset.py +44 -0
- mutagent/_funcs/delete_prompt_dataset_item.py +40 -0
- mutagent/_funcs/delete_prompt_execution.py +40 -0
- mutagent/_funcs/delete_provider.py +40 -0
- mutagent/_funcs/delete_session.py +40 -0
- mutagent/_funcs/delete_trace.py +40 -0
- mutagent/_funcs/delete_workspace.py +40 -0
- mutagent/_funcs/execute_experiment.py +40 -0
- mutagent/_funcs/export_prompt_dataset.py +40 -0
- mutagent/_funcs/export_prompt_executions.py +48 -0
- mutagent/_funcs/get_agent.py +40 -0
- mutagent/_funcs/get_agent_by_slug.py +40 -0
- mutagent/_funcs/get_analytics_summary.py +46 -0
- mutagent/_funcs/get_evaluation.py +40 -0
- mutagent/_funcs/get_evaluation_history.py +40 -0
- mutagent/_funcs/get_evaluation_result.py +40 -0
- mutagent/_funcs/get_evaluation_results_aggregated.py +44 -0
- mutagent/_funcs/get_experiment.py +40 -0
- mutagent/_funcs/get_invitation.py +42 -0
- mutagent/_funcs/get_models_catalog.py +36 -0
- mutagent/_funcs/get_optimization.py +40 -0
- mutagent/_funcs/get_optimization_progress.py +40 -0
- mutagent/_funcs/get_optimization_results.py +40 -0
- mutagent/_funcs/get_optimization_states.py +40 -0
- mutagent/_funcs/get_organization.py +40 -0
- mutagent/_funcs/get_organization_by_slug.py +40 -0
- mutagent/_funcs/get_organization_member_count.py +40 -0
- mutagent/_funcs/get_playground_run.py +40 -0
- mutagent/_funcs/get_profile.py +36 -0
- mutagent/_funcs/get_prompt.py +40 -0
- mutagent/_funcs/get_prompt_analytics.py +40 -0
- mutagent/_funcs/get_prompt_dataset.py +40 -0
- mutagent/_funcs/get_prompt_dataset_item.py +40 -0
- mutagent/_funcs/get_prompt_execution.py +40 -0
- mutagent/_funcs/get_prompt_model_comparisons.py +40 -0
- mutagent/_funcs/get_prompt_readiness.py +40 -0
- mutagent/_funcs/get_provider.py +40 -0
- mutagent/_funcs/get_trace.py +44 -0
- mutagent/_funcs/get_trace_stats.py +46 -0
- mutagent/_funcs/get_workspace.py +40 -0
- mutagent/_funcs/ingest_otlp.py +38 -0
- mutagent/_funcs/ingest_trace.py +38 -0
- mutagent/_funcs/ingest_trace_batch.py +38 -0
- mutagent/_funcs/list_agents.py +50 -0
- mutagent/_funcs/list_available_models.py +36 -0
- mutagent/_funcs/list_datasets_for_prompt.py +40 -0
- mutagent/_funcs/list_evaluations.py +54 -0
- mutagent/_funcs/list_experiments.py +50 -0
- mutagent/_funcs/list_invitations.py +40 -0
- mutagent/_funcs/list_optimizations.py +46 -0
- mutagent/_funcs/list_organization_members.py +40 -0
- mutagent/_funcs/list_organizations.py +48 -0
- mutagent/_funcs/list_playground_runs.py +50 -0
- mutagent/_funcs/list_prompt_dataset_items.py +40 -0
- mutagent/_funcs/list_prompt_datasets.py +50 -0
- mutagent/_funcs/list_prompt_executions.py +52 -0
- mutagent/_funcs/list_prompt_tags.py +36 -0
- mutagent/_funcs/list_prompt_versions.py +40 -0
- mutagent/_funcs/list_prompts.py +50 -0
- mutagent/_funcs/list_providers.py +48 -0
- mutagent/_funcs/list_sessions.py +36 -0
- mutagent/_funcs/list_traces.py +56 -0
- mutagent/_funcs/list_workspace_members.py +40 -0
- mutagent/_funcs/list_workspaces.py +40 -0
- mutagent/_funcs/optimize_prompt.py +42 -0
- mutagent/_funcs/pause_optimization.py +40 -0
- mutagent/_funcs/playground_call.py +42 -0
- mutagent/_funcs/playground_eval.py +42 -0
- mutagent/_funcs/remove_organization_member.py +42 -0
- mutagent/_funcs/remove_workspace_member.py +42 -0
- mutagent/_funcs/resend_invitation.py +44 -0
- mutagent/_funcs/resume_optimization.py +40 -0
- mutagent/_funcs/run_evaluation.py +40 -0
- mutagent/_funcs/set_default_workspace.py +40 -0
- mutagent/_funcs/test_provider.py +40 -0
- mutagent/_funcs/update_agent.py +42 -0
- mutagent/_funcs/update_evaluation.py +42 -0
- mutagent/_funcs/update_experiment_name.py +42 -0
- mutagent/_funcs/update_organization.py +42 -0
- mutagent/_funcs/update_organization_member.py +44 -0
- mutagent/_funcs/update_profile.py +38 -0
- mutagent/_funcs/update_prompt.py +42 -0
- mutagent/_funcs/update_prompt_dataset.py +42 -0
- mutagent/_funcs/update_prompt_dataset_item.py +42 -0
- mutagent/_funcs/update_provider.py +42 -0
- mutagent/_funcs/update_workspace.py +42 -0
- mutagent/_funcs/update_workspace_member.py +44 -0
- mutagent/agents.py +217 -0
- mutagent/async_client.py +95 -0
- mutagent/client.py +107 -0
- mutagent/errors/__init__.py +89 -0
- mutagent/experiments.py +281 -0
- mutagent/invitations.py +187 -0
- mutagent/lib/__init__.py +8 -0
- mutagent/lib/batch.py +144 -0
- mutagent/lib/hooks.py +165 -0
- mutagent/lib/http.py +180 -0
- mutagent/lib/pagination.py +134 -0
- mutagent/lib/retries.py +141 -0
- mutagent/lib/security.py +59 -0
- mutagent/lib/sse.py +190 -0
- mutagent/models/__init__.py +576 -0
- mutagent/models/agent.py +54 -0
- mutagent/models/agent_list.py +25 -0
- mutagent/models/agent_success_response.py +21 -0
- mutagent/models/analytics_summary.py +39 -0
- mutagent/models/array_of_id_criteria_evaluation_parameter.py +18 -0
- mutagent/models/array_of_id_display_name_family.py +18 -0
- mutagent/models/array_of_id_model_temperature.py +18 -0
- mutagent/models/array_of_id_prompt_id_workspace_id.py +18 -0
- mutagent/models/array_of_inputs_model_actual_output.py +18 -0
- mutagent/models/array_of_key_value.py +18 -0
- mutagent/models/array_of_name_score_passed.py +18 -0
- mutagent/models/array_of_name_time_unix_nano_attributes.py +18 -0
- mutagent/models/array_of_name_timestamp_attributes.py +18 -0
- mutagent/models/array_of_resource_scope_spans.py +18 -0
- mutagent/models/array_of_role_content.py +18 -0
- mutagent/models/array_of_span_id_parent_span_id_name.py +18 -0
- mutagent/models/array_of_spans.py +18 -0
- mutagent/models/array_of_trace_id_span_id_parent_span_id.py +18 -0
- mutagent/models/batch_ingestion_response.py +23 -0
- mutagent/models/code_message.py +21 -0
- mutagent/models/criteria_threshold_model.py +23 -0
- mutagent/models/current_password_new_password.py +20 -0
- mutagent/models/dataset_id_evaluation_id_config.py +25 -0
- mutagent/models/dataset_item_id_dataset_item_index_model_column_id.py +37 -0
- mutagent/models/detailed_error_response.py +25 -0
- mutagent/models/email_role_expires_in_days.py +23 -0
- mutagent/models/error_message.py +20 -0
- mutagent/models/error_message_status_code.py +22 -0
- mutagent/models/error_response.py +20 -0
- mutagent/models/error_with_status_response.py +23 -0
- mutagent/models/evaluation.py +50 -0
- mutagent/models/evaluation_aggregation_results.py +21 -0
- mutagent/models/evaluation_history.py +18 -0
- mutagent/models/evaluation_list.py +29 -0
- mutagent/models/evaluation_result.py +34 -0
- mutagent/models/evaluation_result_list.py +29 -0
- mutagent/models/evaluation_run.py +22 -0
- mutagent/models/id_criteria_evaluation_parameter.py +27 -0
- mutagent/models/id_display_name_family.py +27 -0
- mutagent/models/id_model_temperature.py +22 -0
- mutagent/models/id_name_email.py +24 -0
- mutagent/models/id_organization_id_email.py +44 -0
- mutagent/models/id_prompt_id_workspace_id.py +51 -0
- mutagent/models/id_user_id_role.py +31 -0
- mutagent/models/id_user_id_role2.py +28 -0
- mutagent/models/input_evaluation_id_llm_config.py +23 -0
- mutagent/models/input_llm_config.py +21 -0
- mutagent/models/input_output.py +20 -0
- mutagent/models/input_output_total.py +22 -0
- mutagent/models/inputs_model_actual_output.py +37 -0
- mutagent/models/key_value.py +20 -0
- mutagent/models/max_iterations_target_score_patience.py +41 -0
- mutagent/models/model_temperature_max_tokens.py +23 -0
- mutagent/models/models_list.py +21 -0
- mutagent/models/name_api_key_base_url.py +37 -0
- mutagent/models/name_description_eval_config.py +29 -0
- mutagent/models/name_description_is_latest.py +39 -0
- mutagent/models/name_description_metadata.py +25 -0
- mutagent/models/name_description_metadata2.py +27 -0
- mutagent/models/name_description_system_prompt.py +41 -0
- mutagent/models/name_description_version.py +43 -0
- mutagent/models/name_email_avatar_url.py +23 -0
- mutagent/models/name_input_expected_output.py +31 -0
- mutagent/models/name_input_expected_output2.py +31 -0
- mutagent/models/name_provider_api_key.py +39 -0
- mutagent/models/name_score_passed.py +27 -0
- mutagent/models/name_slug_description.py +45 -0
- mutagent/models/name_slug_description2.py +29 -0
- mutagent/models/name_slug_description3.py +33 -0
- mutagent/models/name_slug_description4.py +29 -0
- mutagent/models/name_slug_description5.py +31 -0
- mutagent/models/name_time_unix_nano_attributes.py +23 -0
- mutagent/models/name_timestamp_attributes.py +23 -0
- mutagent/models/new_version_changes.py +21 -0
- mutagent/models/optimization_error.py +21 -0
- mutagent/models/optimization_job.py +57 -0
- mutagent/models/optimization_job_list.py +27 -0
- mutagent/models/optimization_job_status.py +61 -0
- mutagent/models/optimization_results.py +20 -0
- mutagent/models/optimization_score_progression.py +21 -0
- mutagent/models/optimization_states.py +19 -0
- mutagent/models/org_member_count_or_error.py +18 -0
- mutagent/models/org_success_or_error.py +18 -0
- mutagent/models/organization.py +43 -0
- mutagent/models/organization_id_workspace_id_user_id.py +23 -0
- mutagent/models/organization_list.py +29 -0
- mutagent/models/organization_list_or_error.py +18 -0
- mutagent/models/organization_or_error.py +18 -0
- mutagent/models/organization_with_role.py +39 -0
- mutagent/models/paginated_trace_list.py +25 -0
- mutagent/models/prompt.py +53 -0
- mutagent/models/prompt_dataset.py +38 -0
- mutagent/models/prompt_dataset_export.py +26 -0
- mutagent/models/prompt_dataset_item.py +40 -0
- mutagent/models/prompt_dataset_item_list.py +29 -0
- mutagent/models/prompt_dataset_list.py +29 -0
- mutagent/models/prompt_id_dataset_id_name.py +35 -0
- mutagent/models/prompt_id_executions.py +21 -0
- mutagent/models/prompt_id_inputs_model.py +39 -0
- mutagent/models/prompt_id_prompt_group_id_evaluation_id.py +31 -0
- mutagent/models/prompt_list.py +29 -0
- mutagent/models/prompt_success_response.py +21 -0
- mutagent/models/provider_config.py +54 -0
- mutagent/models/provider_configs_list.py +21 -0
- mutagent/models/provider_error.py +23 -0
- mutagent/models/provider_success.py +21 -0
- mutagent/models/resource_scope_spans.py +21 -0
- mutagent/models/role_content.py +20 -0
- mutagent/models/schemaany_of.py +18 -0
- mutagent/models/schemaany_of2.py +18 -0
- mutagent/models/schemadefaul.py +18 -0
- mutagent/models/schemadefaul10.py +18 -0
- mutagent/models/schemadefaul11.py +18 -0
- mutagent/models/schemadefaul12.py +18 -0
- mutagent/models/schemadefaul13.py +18 -0
- mutagent/models/schemadefaul14.py +18 -0
- mutagent/models/schemadefaul2.py +18 -0
- mutagent/models/schemadefaul3.py +18 -0
- mutagent/models/schemadefaul4.py +18 -0
- mutagent/models/schemadefaul5.py +18 -0
- mutagent/models/schemadefaul6.py +18 -0
- mutagent/models/schemadefaul7.py +18 -0
- mutagent/models/schemadefaul8.py +18 -0
- mutagent/models/schemadefaul9.py +18 -0
- mutagent/models/schemaenum.py +18 -0
- mutagent/models/schemaenum2.py +18 -0
- mutagent/models/schemaformat.py +18 -0
- mutagent/models/schemaformat2.py +18 -0
- mutagent/models/schemaformat3.py +18 -0
- mutagent/models/schemaformat4.py +18 -0
- mutagent/models/schemaformat5.py +18 -0
- mutagent/models/schemaformat6.py +18 -0
- mutagent/models/schemaformat7.py +18 -0
- mutagent/models/schemaitems.py +18 -0
- mutagent/models/schemaitems2.py +18 -0
- mutagent/models/schemaitems3.py +18 -0
- mutagent/models/schemaitems4.py +18 -0
- mutagent/models/schemaitems5.py +18 -0
- mutagent/models/schemamax_len.py +18 -0
- mutagent/models/schemamax_len10.py +18 -0
- mutagent/models/schemamax_len11.py +18 -0
- mutagent/models/schemamax_len12.py +18 -0
- mutagent/models/schemamax_len13.py +18 -0
- mutagent/models/schemamax_len2.py +18 -0
- mutagent/models/schemamax_len3.py +18 -0
- mutagent/models/schemamax_len4.py +18 -0
- mutagent/models/schemamax_len5.py +18 -0
- mutagent/models/schemamax_len6.py +18 -0
- mutagent/models/schemamax_len7.py +18 -0
- mutagent/models/schemamax_len8.py +18 -0
- mutagent/models/schemamax_len9.py +18 -0
- mutagent/models/schemamaximu.py +18 -0
- mutagent/models/schemamaximu2.py +18 -0
- mutagent/models/schemamaximu3.py +18 -0
- mutagent/models/schemamaximu4.py +18 -0
- mutagent/models/schemamaximu5.py +18 -0
- mutagent/models/schemamaximu6.py +18 -0
- mutagent/models/schemamin_len.py +18 -0
- mutagent/models/schemaminimu.py +18 -0
- mutagent/models/schemaminimu2.py +18 -0
- mutagent/models/schemaminimu3.py +18 -0
- mutagent/models/schemaminimu4.py +18 -0
- mutagent/models/schemanullab.py +18 -0
- mutagent/models/schemanullab2.py +18 -0
- mutagent/models/schemanullab3.py +18 -0
- mutagent/models/schemanullab4.py +18 -0
- mutagent/models/schemapatter.py +18 -0
- mutagent/models/schemapatter2.py +18 -0
- mutagent/models/span_id_parent_span_id_name.py +55 -0
- mutagent/models/status_summary_completed_at.py +23 -0
- mutagent/models/string_value_int_value_double_value.py +25 -0
- mutagent/models/success_message.py +21 -0
- mutagent/models/success_response.py +21 -0
- mutagent/models/target_prompt_id_target_prompt_group_id_new_name.py +23 -0
- mutagent/models/test_connection_result.py +27 -0
- mutagent/models/total_evaluations_completed_evaluations_per_model_stats.py +22 -0
- mutagent/models/trace_error.py +20 -0
- mutagent/models/trace_id_session_id_name.py +37 -0
- mutagent/models/trace_id_span_id_parent_span_id.py +37 -0
- mutagent/models/trace_ingestion_response.py +22 -0
- mutagent/models/trace_stats.py +18 -0
- mutagent/models/trace_with_spans.py +58 -0
- mutagent/models/user_id_role.py +21 -0
- mutagent/models/user_id_role_status.py +23 -0
- mutagent/models/workspace.py +42 -0
- mutagent/models/workspace_with_role.py +44 -0
- mutagent/models/workspaces_list.py +21 -0
- mutagent/models/ws_error.py +23 -0
- mutagent/models/ws_success.py +21 -0
- mutagent/optimization.py +305 -0
- mutagent/organization_members.py +155 -0
- mutagent/organizations.py +275 -0
- mutagent/playground.py +91 -0
- mutagent/prompt.py +339 -0
- mutagent/prompt_dataset_items.py +213 -0
- mutagent/prompt_datasets.py +287 -0
- mutagent/prompt_evaluations.py +345 -0
- mutagent/prompt_executions.py +323 -0
- mutagent/prompt_readiness.py +57 -0
- mutagent/provider_configs.py +267 -0
- mutagent/traces.py +293 -0
- mutagent/tracing/__init__.py +72 -0
- mutagent/tracing/api.py +71 -0
- mutagent/tracing/batch_collector.py +213 -0
- mutagent/tracing/decorators.py +135 -0
- mutagent/tracing/http_client.py +59 -0
- mutagent/tracing/init.py +184 -0
- mutagent/tracing/span_manager.py +207 -0
- mutagent/tracing/types.py +356 -0
- mutagent/tracing/wrappers.py +187 -0
- mutagent/user_profile.py +193 -0
- mutagent/workspace_members.py +155 -0
- mutagent/workspaces.py +207 -0
- mutagent_sdk-0.1.0.dist-info/METADATA +223 -0
- mutagent_sdk-0.1.0.dist-info/RECORD +352 -0
- mutagent_sdk-0.1.0.dist-info/WHEEL +4 -0
- mutagent_sdk-0.1.0.dist-info/licenses/LICENSE +201 -0
mutagent/__init__.py
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
"""
|
|
2
|
+
mutagent SDK -- public API surface.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
from mutagent import AsyncMutagent, Mutagent
|
|
9
|
+
from mutagent.models import *
|
|
10
|
+
"""
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
# region: module-top
|
|
14
|
+
# endregion: module-top
|
|
15
|
+
|
|
16
|
+
from .client import Mutagent
|
|
17
|
+
from .async_client import AsyncMutagent
|
|
18
|
+
from .errors import MutagentError, SDKError, ResponseValidationError, SDKValidationError
|
|
19
|
+
|
|
20
|
+
__all__ = [
|
|
21
|
+
"Mutagent",
|
|
22
|
+
"AsyncMutagent",
|
|
23
|
+
"MutagentError",
|
|
24
|
+
"SDKError",
|
|
25
|
+
"ResponseValidationError",
|
|
26
|
+
"SDKValidationError",
|
|
27
|
+
"Prompt",
|
|
28
|
+
"PromptList",
|
|
29
|
+
"PromptDataset",
|
|
30
|
+
"PromptDatasetList",
|
|
31
|
+
"PromptDatasetItem",
|
|
32
|
+
"PromptDatasetItemList",
|
|
33
|
+
"PromptDatasetExport",
|
|
34
|
+
"Evaluation",
|
|
35
|
+
"EvaluationList",
|
|
36
|
+
"EvaluationResult",
|
|
37
|
+
"EvaluationResultList",
|
|
38
|
+
"EvaluationHistory",
|
|
39
|
+
"EvaluationRun",
|
|
40
|
+
"EvaluationAggregationResults",
|
|
41
|
+
"PromptSuccessResponse",
|
|
42
|
+
"ErrorResponse",
|
|
43
|
+
"ErrorWithStatusResponse",
|
|
44
|
+
"SuccessResponse",
|
|
45
|
+
"DetailedErrorResponse",
|
|
46
|
+
"OptimizationJob",
|
|
47
|
+
"OptimizationJobStatus",
|
|
48
|
+
"OptimizationJobList",
|
|
49
|
+
"OptimizationScoreProgression",
|
|
50
|
+
"OptimizationStates",
|
|
51
|
+
"OptimizationResults",
|
|
52
|
+
"OptimizationError",
|
|
53
|
+
"Agent",
|
|
54
|
+
"AgentList",
|
|
55
|
+
"AgentSuccessResponse",
|
|
56
|
+
"Organization",
|
|
57
|
+
"OrganizationWithRole",
|
|
58
|
+
"OrganizationList",
|
|
59
|
+
"OrganizationOrError",
|
|
60
|
+
"OrganizationListOrError",
|
|
61
|
+
"OrgSuccessOrError",
|
|
62
|
+
"OrgMemberCountOrError",
|
|
63
|
+
"Workspace",
|
|
64
|
+
"WorkspaceWithRole",
|
|
65
|
+
"WorkspacesList",
|
|
66
|
+
"WsSuccess",
|
|
67
|
+
"WsError",
|
|
68
|
+
"ProviderConfig",
|
|
69
|
+
"ProviderConfigsList",
|
|
70
|
+
"TestConnectionResult",
|
|
71
|
+
"ModelsList",
|
|
72
|
+
"ProviderSuccess",
|
|
73
|
+
"ProviderError",
|
|
74
|
+
"TraceIngestionResponse",
|
|
75
|
+
"BatchIngestionResponse",
|
|
76
|
+
"TraceWithSpans",
|
|
77
|
+
"PaginatedTraceList",
|
|
78
|
+
"TraceStats",
|
|
79
|
+
"AnalyticsSummary",
|
|
80
|
+
"TraceError",
|
|
81
|
+
"Schemanullab",
|
|
82
|
+
"Schemaformat",
|
|
83
|
+
"Schemaformat2",
|
|
84
|
+
"ErrorMessage",
|
|
85
|
+
"ErrorMessageStatusCode",
|
|
86
|
+
"NameEmailAvatarUrl",
|
|
87
|
+
"SchemamaxLen",
|
|
88
|
+
"Schemaformat3",
|
|
89
|
+
"Schemaformat4",
|
|
90
|
+
"Schemapatter",
|
|
91
|
+
"CurrentPasswordNewPassword",
|
|
92
|
+
"SchemamaxLen2",
|
|
93
|
+
"Schemamaximu",
|
|
94
|
+
"Schemaminimu",
|
|
95
|
+
"Schemaminimu2",
|
|
96
|
+
"NameDescriptionMetadata",
|
|
97
|
+
"SchemamaxLen3",
|
|
98
|
+
"Schemaitems",
|
|
99
|
+
"TargetPromptIdTargetPromptGroupIdNewName",
|
|
100
|
+
"SchemamaxLen4",
|
|
101
|
+
"Schemaitems2",
|
|
102
|
+
"NameInputExpectedOutput",
|
|
103
|
+
"Schemaitems3",
|
|
104
|
+
"NameInputExpectedOutput2",
|
|
105
|
+
"PromptIdDatasetIdName",
|
|
106
|
+
"CriteriaThresholdModel",
|
|
107
|
+
"ArrayOfIdCriteriaEvaluationParameter",
|
|
108
|
+
"IdCriteriaEvaluationParameter",
|
|
109
|
+
"SchemaminLen",
|
|
110
|
+
"Schemamaximu2",
|
|
111
|
+
"NameDescriptionEvalConfig",
|
|
112
|
+
"PromptIdPromptGroupIdEvaluationId",
|
|
113
|
+
"SchemaanyOf",
|
|
114
|
+
"Schemadefaul",
|
|
115
|
+
"Schemaminimu3",
|
|
116
|
+
"ArrayOfIdModelTemperature",
|
|
117
|
+
"IdModelTemperature",
|
|
118
|
+
"Schemamaximu3",
|
|
119
|
+
"SchemaanyOf2",
|
|
120
|
+
"Schemaminimu4",
|
|
121
|
+
"StatusSummaryCompletedAt",
|
|
122
|
+
"Schemaenum",
|
|
123
|
+
"TotalEvaluationsCompletedEvaluationsPerModelStats",
|
|
124
|
+
"DatasetItemIdDatasetItemIndexModelColumnId",
|
|
125
|
+
"Schemamaximu4",
|
|
126
|
+
"Schemanullab2",
|
|
127
|
+
"ArrayOfNameScorePassed",
|
|
128
|
+
"NameScorePassed",
|
|
129
|
+
"Schemanullab3",
|
|
130
|
+
"ArrayOfIdPromptIdWorkspaceId",
|
|
131
|
+
"IdPromptIdWorkspaceId",
|
|
132
|
+
"PromptIdInputsModel",
|
|
133
|
+
"Schemaenum2",
|
|
134
|
+
"InputOutputTotal",
|
|
135
|
+
"PromptIdExecutions",
|
|
136
|
+
"ArrayOfInputsModelActualOutput",
|
|
137
|
+
"InputsModelActualOutput",
|
|
138
|
+
"InputLlmConfig",
|
|
139
|
+
"ModelTemperatureMaxTokens",
|
|
140
|
+
"Schemadefaul2",
|
|
141
|
+
"Schemadefaul3",
|
|
142
|
+
"Schemadefaul4",
|
|
143
|
+
"InputEvaluationIdLlmConfig",
|
|
144
|
+
"NameDescriptionVersion",
|
|
145
|
+
"Schemapatter2",
|
|
146
|
+
"ArrayOfRoleContent",
|
|
147
|
+
"RoleContent",
|
|
148
|
+
"NameDescriptionIsLatest",
|
|
149
|
+
"NewVersionChanges",
|
|
150
|
+
"NameDescriptionMetadata2",
|
|
151
|
+
"DatasetIdEvaluationIdConfig",
|
|
152
|
+
"MaxIterationsTargetScorePatience",
|
|
153
|
+
"Schemadefaul5",
|
|
154
|
+
"Schemamaximu5",
|
|
155
|
+
"SchemamaxLen5",
|
|
156
|
+
"SchemamaxLen6",
|
|
157
|
+
"NameSlugDescription",
|
|
158
|
+
"SchemamaxLen7",
|
|
159
|
+
"NameDescriptionSystemPrompt",
|
|
160
|
+
"NameSlugDescription2",
|
|
161
|
+
"SchemamaxLen8",
|
|
162
|
+
"NameSlugDescription3",
|
|
163
|
+
"SchemamaxLen9",
|
|
164
|
+
"Schemaformat5",
|
|
165
|
+
"Schemanullab4",
|
|
166
|
+
"NameSlugDescription4",
|
|
167
|
+
"SchemamaxLen10",
|
|
168
|
+
"NameSlugDescription5",
|
|
169
|
+
"SchemamaxLen11",
|
|
170
|
+
"IdUserIdRole",
|
|
171
|
+
"IdNameEmail",
|
|
172
|
+
"UserIdRoleStatus",
|
|
173
|
+
"Schemadefaul6",
|
|
174
|
+
"Schemadefaul7",
|
|
175
|
+
"SuccessMessage",
|
|
176
|
+
"IdUserIdRole2",
|
|
177
|
+
"UserIdRole",
|
|
178
|
+
"Schemadefaul8",
|
|
179
|
+
"NameProviderApiKey",
|
|
180
|
+
"Schemadefaul9",
|
|
181
|
+
"OrganizationIdWorkspaceIdUserId",
|
|
182
|
+
"Schemaformat6",
|
|
183
|
+
"Schemadefaul10",
|
|
184
|
+
"ArrayOfIdDisplayNameFamily",
|
|
185
|
+
"IdDisplayNameFamily",
|
|
186
|
+
"Schemaformat7",
|
|
187
|
+
"NameApiKeyBaseUrl",
|
|
188
|
+
"Schemaitems4",
|
|
189
|
+
"IdOrganizationIdEmail",
|
|
190
|
+
"EmailRoleExpiresInDays",
|
|
191
|
+
"Schemadefaul11",
|
|
192
|
+
"Schemamaximu6",
|
|
193
|
+
"TraceIdSessionIdName",
|
|
194
|
+
"SchemamaxLen12",
|
|
195
|
+
"Schemadefaul12",
|
|
196
|
+
"Schemadefaul13",
|
|
197
|
+
"ArrayOfSpanIdParentSpanIdName",
|
|
198
|
+
"SpanIdParentSpanIdName",
|
|
199
|
+
"SchemamaxLen13",
|
|
200
|
+
"Schemadefaul14",
|
|
201
|
+
"InputOutput",
|
|
202
|
+
"ArrayOfNameTimestampAttributes",
|
|
203
|
+
"NameTimestampAttributes",
|
|
204
|
+
"Schemaitems5",
|
|
205
|
+
"ArrayOfResourceScopeSpans",
|
|
206
|
+
"ResourceScopeSpans",
|
|
207
|
+
"ArrayOfKeyValue",
|
|
208
|
+
"KeyValue",
|
|
209
|
+
"StringValueIntValueDoubleValue",
|
|
210
|
+
"ArrayOfSpans",
|
|
211
|
+
"ArrayOfTraceIdSpanIdParentSpanId",
|
|
212
|
+
"TraceIdSpanIdParentSpanId",
|
|
213
|
+
"CodeMessage",
|
|
214
|
+
"ArrayOfNameTimeUnixNanoAttributes",
|
|
215
|
+
"NameTimeUnixNanoAttributes",
|
|
216
|
+
]
|
|
217
|
+
|
|
218
|
+
# region: exports-extra
|
|
219
|
+
from .tracing import (
|
|
220
|
+
init_tracing,
|
|
221
|
+
shutdown_tracing,
|
|
222
|
+
is_tracing_initialized,
|
|
223
|
+
trace,
|
|
224
|
+
with_trace,
|
|
225
|
+
start_span,
|
|
226
|
+
end_span,
|
|
227
|
+
get_current_span,
|
|
228
|
+
get_current_trace_id,
|
|
229
|
+
run_in_span_context,
|
|
230
|
+
)
|
|
231
|
+
# endregion: exports-extra
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Auto-generated module index.
|
|
3
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
4
|
+
"""
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"getProfile",
|
|
9
|
+
"updateProfile",
|
|
10
|
+
"deleteAccount",
|
|
11
|
+
"changePassword",
|
|
12
|
+
"listSessions",
|
|
13
|
+
"deleteSession",
|
|
14
|
+
"listPromptDatasets",
|
|
15
|
+
"getPromptDataset",
|
|
16
|
+
"updatePromptDataset",
|
|
17
|
+
"deletePromptDataset",
|
|
18
|
+
"clonePromptDataset",
|
|
19
|
+
"exportPromptDataset",
|
|
20
|
+
"listDatasetsForPrompt",
|
|
21
|
+
"createPromptDataset",
|
|
22
|
+
"listPromptDatasetItems",
|
|
23
|
+
"createPromptDatasetItem",
|
|
24
|
+
"bulkCreatePromptDatasetItems",
|
|
25
|
+
"getPromptDatasetItem",
|
|
26
|
+
"updatePromptDatasetItem",
|
|
27
|
+
"deletePromptDatasetItem",
|
|
28
|
+
"listEvaluations",
|
|
29
|
+
"createEvaluation",
|
|
30
|
+
"getEvaluationResultsAggregated",
|
|
31
|
+
"getEvaluation",
|
|
32
|
+
"updateEvaluation",
|
|
33
|
+
"deleteEvaluation",
|
|
34
|
+
"runEvaluation",
|
|
35
|
+
"getEvaluationResult",
|
|
36
|
+
"getEvaluationHistory",
|
|
37
|
+
"createEvaluationVersion",
|
|
38
|
+
"listExperiments",
|
|
39
|
+
"createExperiment",
|
|
40
|
+
"getExperiment",
|
|
41
|
+
"completeExperiment",
|
|
42
|
+
"deleteExperiment",
|
|
43
|
+
"addExperimentResult",
|
|
44
|
+
"updateExperimentName",
|
|
45
|
+
"executeExperiment",
|
|
46
|
+
"getPromptReadiness",
|
|
47
|
+
"listPlaygroundRuns",
|
|
48
|
+
"getPlaygroundRun",
|
|
49
|
+
"deletePlaygroundRun",
|
|
50
|
+
"listPromptExecutions",
|
|
51
|
+
"createPromptExecution",
|
|
52
|
+
"exportPromptExecutions",
|
|
53
|
+
"getPromptExecution",
|
|
54
|
+
"deletePromptExecution",
|
|
55
|
+
"createBatchPromptExecution",
|
|
56
|
+
"playgroundCall",
|
|
57
|
+
"playgroundEval",
|
|
58
|
+
"listPrompts",
|
|
59
|
+
"createPrompt",
|
|
60
|
+
"listPromptTags",
|
|
61
|
+
"getPrompt",
|
|
62
|
+
"updatePrompt",
|
|
63
|
+
"deletePrompt",
|
|
64
|
+
"listPromptVersions",
|
|
65
|
+
"createPromptVersion",
|
|
66
|
+
"getPromptAnalytics",
|
|
67
|
+
"getPromptModelComparisons",
|
|
68
|
+
"optimizePrompt",
|
|
69
|
+
"getOptimization",
|
|
70
|
+
"listOptimizations",
|
|
71
|
+
"getOptimizationProgress",
|
|
72
|
+
"getOptimizationStates",
|
|
73
|
+
"getOptimizationResults",
|
|
74
|
+
"pauseOptimization",
|
|
75
|
+
"resumeOptimization",
|
|
76
|
+
"cancelOptimization",
|
|
77
|
+
"listAgents",
|
|
78
|
+
"createAgent",
|
|
79
|
+
"getAgent",
|
|
80
|
+
"updateAgent",
|
|
81
|
+
"deleteAgent",
|
|
82
|
+
"getAgentBySlug",
|
|
83
|
+
"listOrganizations",
|
|
84
|
+
"createOrganization",
|
|
85
|
+
"getOrganization",
|
|
86
|
+
"updateOrganization",
|
|
87
|
+
"deleteOrganization",
|
|
88
|
+
"getOrganizationBySlug",
|
|
89
|
+
"checkOrganizationSlug",
|
|
90
|
+
"getOrganizationMemberCount",
|
|
91
|
+
"listWorkspaces",
|
|
92
|
+
"createWorkspace",
|
|
93
|
+
"getWorkspace",
|
|
94
|
+
"updateWorkspace",
|
|
95
|
+
"deleteWorkspace",
|
|
96
|
+
"setDefaultWorkspace",
|
|
97
|
+
"listOrganizationMembers",
|
|
98
|
+
"addOrganizationMember",
|
|
99
|
+
"updateOrganizationMember",
|
|
100
|
+
"removeOrganizationMember",
|
|
101
|
+
"listWorkspaceMembers",
|
|
102
|
+
"addWorkspaceMember",
|
|
103
|
+
"updateWorkspaceMember",
|
|
104
|
+
"removeWorkspaceMember",
|
|
105
|
+
"listProviders",
|
|
106
|
+
"createProvider",
|
|
107
|
+
"listAvailableModels",
|
|
108
|
+
"getProvider",
|
|
109
|
+
"updateProvider",
|
|
110
|
+
"deleteProvider",
|
|
111
|
+
"getModelsCatalog",
|
|
112
|
+
"testProvider",
|
|
113
|
+
"listInvitations",
|
|
114
|
+
"createInvitation",
|
|
115
|
+
"getInvitation",
|
|
116
|
+
"deleteInvitation",
|
|
117
|
+
"resendInvitation",
|
|
118
|
+
"listTraces",
|
|
119
|
+
"ingestTrace",
|
|
120
|
+
"ingestTraceBatch",
|
|
121
|
+
"ingestOtlp",
|
|
122
|
+
"getTraceStats",
|
|
123
|
+
"getAnalyticsSummary",
|
|
124
|
+
"getTrace",
|
|
125
|
+
"deleteTrace",]
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: addExperimentResult.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def add_experiment_result(client: Any, id_: str, body: DatasetItemIdDatasetItemIndexModelColumnId) -> Dict[str, Any]:
|
|
12
|
+
"""Add experiment result"""
|
|
13
|
+
path_params = {
|
|
14
|
+
"id": id_,
|
|
15
|
+
}
|
|
16
|
+
query_params = {}
|
|
17
|
+
response = client._http.request(
|
|
18
|
+
"POST",
|
|
19
|
+
"/api/prompts/experiments/{id}/results",
|
|
20
|
+
path_params=path_params or None,
|
|
21
|
+
query_params=query_params or None,
|
|
22
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
23
|
+
)
|
|
24
|
+
response.raise_for_status()
|
|
25
|
+
return response.json()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def a_add_experiment_result(client: Any, id_: str, body: DatasetItemIdDatasetItemIndexModelColumnId) -> Dict[str, Any]:
|
|
29
|
+
"""Async variant of add_experiment_result. Add experiment result"""
|
|
30
|
+
path_params = {
|
|
31
|
+
"id": id_,
|
|
32
|
+
}
|
|
33
|
+
query_params = {}
|
|
34
|
+
response = await client._async_http.request(
|
|
35
|
+
"POST",
|
|
36
|
+
"/api/prompts/experiments/{id}/results",
|
|
37
|
+
path_params=path_params or None,
|
|
38
|
+
query_params=query_params or None,
|
|
39
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
40
|
+
)
|
|
41
|
+
response.raise_for_status()
|
|
42
|
+
return response.json()
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: addOrganizationMember.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def add_organization_member(client: Any, org_id: str, body: UserIdRoleStatus) -> IdUserIdRole:
|
|
12
|
+
"""Add organization member"""
|
|
13
|
+
path_params = {
|
|
14
|
+
"orgId": org_id,
|
|
15
|
+
}
|
|
16
|
+
query_params = {}
|
|
17
|
+
response = client._http.request(
|
|
18
|
+
"POST",
|
|
19
|
+
"/api/organizations/{orgId}/members/",
|
|
20
|
+
path_params=path_params or None,
|
|
21
|
+
query_params=query_params or None,
|
|
22
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
23
|
+
)
|
|
24
|
+
response.raise_for_status()
|
|
25
|
+
return response.json()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def a_add_organization_member(client: Any, org_id: str, body: UserIdRoleStatus) -> IdUserIdRole:
|
|
29
|
+
"""Async variant of add_organization_member. Add organization member"""
|
|
30
|
+
path_params = {
|
|
31
|
+
"orgId": org_id,
|
|
32
|
+
}
|
|
33
|
+
query_params = {}
|
|
34
|
+
response = await client._async_http.request(
|
|
35
|
+
"POST",
|
|
36
|
+
"/api/organizations/{orgId}/members/",
|
|
37
|
+
path_params=path_params or None,
|
|
38
|
+
query_params=query_params or None,
|
|
39
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
40
|
+
)
|
|
41
|
+
response.raise_for_status()
|
|
42
|
+
return response.json()
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: addWorkspaceMember.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def add_workspace_member(client: Any, ws_id: str, body: UserIdRole) -> IdUserIdRole2:
|
|
12
|
+
"""Add workspace member"""
|
|
13
|
+
path_params = {
|
|
14
|
+
"wsId": ws_id,
|
|
15
|
+
}
|
|
16
|
+
query_params = {}
|
|
17
|
+
response = client._http.request(
|
|
18
|
+
"POST",
|
|
19
|
+
"/api/workspaces/{wsId}/members/",
|
|
20
|
+
path_params=path_params or None,
|
|
21
|
+
query_params=query_params or None,
|
|
22
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
23
|
+
)
|
|
24
|
+
response.raise_for_status()
|
|
25
|
+
return response.json()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def a_add_workspace_member(client: Any, ws_id: str, body: UserIdRole) -> IdUserIdRole2:
|
|
29
|
+
"""Async variant of add_workspace_member. Add workspace member"""
|
|
30
|
+
path_params = {
|
|
31
|
+
"wsId": ws_id,
|
|
32
|
+
}
|
|
33
|
+
query_params = {}
|
|
34
|
+
response = await client._async_http.request(
|
|
35
|
+
"POST",
|
|
36
|
+
"/api/workspaces/{wsId}/members/",
|
|
37
|
+
path_params=path_params or None,
|
|
38
|
+
query_params=query_params or None,
|
|
39
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
40
|
+
)
|
|
41
|
+
response.raise_for_status()
|
|
42
|
+
return response.json()
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: bulkCreatePromptDatasetItems.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def bulk_create_prompt_dataset_items(client: Any, id_: Schemaminimu2, body: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
12
|
+
"""Bulk add items"""
|
|
13
|
+
path_params = {
|
|
14
|
+
"id": id_,
|
|
15
|
+
}
|
|
16
|
+
query_params = {}
|
|
17
|
+
response = client._http.request(
|
|
18
|
+
"POST",
|
|
19
|
+
"/api/prompts/datasets/{id}/items/bulk",
|
|
20
|
+
path_params=path_params or None,
|
|
21
|
+
query_params=query_params or None,
|
|
22
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
23
|
+
)
|
|
24
|
+
response.raise_for_status()
|
|
25
|
+
return response.json()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def a_bulk_create_prompt_dataset_items(client: Any, id_: Schemaminimu2, body: Dict[str, Any]) -> List[Dict[str, Any]]:
|
|
29
|
+
"""Async variant of bulk_create_prompt_dataset_items. Bulk add items"""
|
|
30
|
+
path_params = {
|
|
31
|
+
"id": id_,
|
|
32
|
+
}
|
|
33
|
+
query_params = {}
|
|
34
|
+
response = await client._async_http.request(
|
|
35
|
+
"POST",
|
|
36
|
+
"/api/prompts/datasets/{id}/items/bulk",
|
|
37
|
+
path_params=path_params or None,
|
|
38
|
+
query_params=query_params or None,
|
|
39
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
40
|
+
)
|
|
41
|
+
response.raise_for_status()
|
|
42
|
+
return response.json()
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: cancelOptimization.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def cancel_optimization(client: Any, id_: SchemamaxLen4) -> OptimizationJob:
|
|
12
|
+
"""Cancel job"""
|
|
13
|
+
path_params = {
|
|
14
|
+
"id": id_,
|
|
15
|
+
}
|
|
16
|
+
query_params = {}
|
|
17
|
+
response = client._http.request(
|
|
18
|
+
"POST",
|
|
19
|
+
"/api/optimization/{id}/cancel",
|
|
20
|
+
path_params=path_params or None,
|
|
21
|
+
query_params=query_params or None,
|
|
22
|
+
)
|
|
23
|
+
response.raise_for_status()
|
|
24
|
+
return response.json()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
async def a_cancel_optimization(client: Any, id_: SchemamaxLen4) -> OptimizationJob:
|
|
28
|
+
"""Async variant of cancel_optimization. Cancel job"""
|
|
29
|
+
path_params = {
|
|
30
|
+
"id": id_,
|
|
31
|
+
}
|
|
32
|
+
query_params = {}
|
|
33
|
+
response = await client._async_http.request(
|
|
34
|
+
"POST",
|
|
35
|
+
"/api/optimization/{id}/cancel",
|
|
36
|
+
path_params=path_params or None,
|
|
37
|
+
query_params=query_params or None,
|
|
38
|
+
)
|
|
39
|
+
response.raise_for_status()
|
|
40
|
+
return response.json()
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: changePassword.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def change_password(client: Any, body: CurrentPasswordNewPassword) -> Dict[str, Any]:
|
|
12
|
+
"""Change password"""
|
|
13
|
+
path_params = {}
|
|
14
|
+
query_params = {}
|
|
15
|
+
response = client._http.request(
|
|
16
|
+
"POST",
|
|
17
|
+
"/api/users/me/password",
|
|
18
|
+
path_params=path_params or None,
|
|
19
|
+
query_params=query_params or None,
|
|
20
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
21
|
+
)
|
|
22
|
+
response.raise_for_status()
|
|
23
|
+
return response.json()
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
async def a_change_password(client: Any, body: CurrentPasswordNewPassword) -> Dict[str, Any]:
|
|
27
|
+
"""Async variant of change_password. Change password"""
|
|
28
|
+
path_params = {}
|
|
29
|
+
query_params = {}
|
|
30
|
+
response = await client._async_http.request(
|
|
31
|
+
"POST",
|
|
32
|
+
"/api/users/me/password",
|
|
33
|
+
path_params=path_params or None,
|
|
34
|
+
query_params=query_params or None,
|
|
35
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
36
|
+
)
|
|
37
|
+
response.raise_for_status()
|
|
38
|
+
return response.json()
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: checkOrganizationSlug.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def check_organization_slug(client: Any, slug: str) -> Dict[str, Any]:
|
|
12
|
+
"""Check slug availability"""
|
|
13
|
+
path_params = {
|
|
14
|
+
"slug": slug,
|
|
15
|
+
}
|
|
16
|
+
query_params = {}
|
|
17
|
+
response = client._http.request(
|
|
18
|
+
"GET",
|
|
19
|
+
"/api/organizations/check-slug/{slug}",
|
|
20
|
+
path_params=path_params or None,
|
|
21
|
+
query_params=query_params or None,
|
|
22
|
+
)
|
|
23
|
+
response.raise_for_status()
|
|
24
|
+
return response.json()
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
async def a_check_organization_slug(client: Any, slug: str) -> Dict[str, Any]:
|
|
28
|
+
"""Async variant of check_organization_slug. Check slug availability"""
|
|
29
|
+
path_params = {
|
|
30
|
+
"slug": slug,
|
|
31
|
+
}
|
|
32
|
+
query_params = {}
|
|
33
|
+
response = await client._async_http.request(
|
|
34
|
+
"GET",
|
|
35
|
+
"/api/organizations/check-slug/{slug}",
|
|
36
|
+
path_params=path_params or None,
|
|
37
|
+
query_params=query_params or None,
|
|
38
|
+
)
|
|
39
|
+
response.raise_for_status()
|
|
40
|
+
return response.json()
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Standalone function: clonePromptDataset.
|
|
3
|
+
|
|
4
|
+
This file is GENERATED by mutagent-xgen. Do not edit manually.
|
|
5
|
+
"""
|
|
6
|
+
from __future__ import annotations
|
|
7
|
+
|
|
8
|
+
from typing import Any, AsyncIterator, Optional
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def clone_prompt_dataset(client: Any, id_: Schemaminimu2, body: TargetPromptIdTargetPromptGroupIdNewName) -> PromptDataset:
|
|
12
|
+
"""Clone dataset"""
|
|
13
|
+
path_params = {
|
|
14
|
+
"id": id_,
|
|
15
|
+
}
|
|
16
|
+
query_params = {}
|
|
17
|
+
response = client._http.request(
|
|
18
|
+
"POST",
|
|
19
|
+
"/api/prompts/datasets/{id}/clone",
|
|
20
|
+
path_params=path_params or None,
|
|
21
|
+
query_params=query_params or None,
|
|
22
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
23
|
+
)
|
|
24
|
+
response.raise_for_status()
|
|
25
|
+
return response.json()
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
async def a_clone_prompt_dataset(client: Any, id_: Schemaminimu2, body: TargetPromptIdTargetPromptGroupIdNewName) -> PromptDataset:
|
|
29
|
+
"""Async variant of clone_prompt_dataset. Clone dataset"""
|
|
30
|
+
path_params = {
|
|
31
|
+
"id": id_,
|
|
32
|
+
}
|
|
33
|
+
query_params = {}
|
|
34
|
+
response = await client._async_http.request(
|
|
35
|
+
"POST",
|
|
36
|
+
"/api/prompts/datasets/{id}/clone",
|
|
37
|
+
path_params=path_params or None,
|
|
38
|
+
query_params=query_params or None,
|
|
39
|
+
json=body.model_dump(exclude_none=True) if hasattr(body, "model_dump") else body,
|
|
40
|
+
)
|
|
41
|
+
response.raise_for_status()
|
|
42
|
+
return response.json()
|