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.
Files changed (352) hide show
  1. mutagent/__init__.py +231 -0
  2. mutagent/_funcs/__init__.py +125 -0
  3. mutagent/_funcs/add_experiment_result.py +42 -0
  4. mutagent/_funcs/add_organization_member.py +42 -0
  5. mutagent/_funcs/add_workspace_member.py +42 -0
  6. mutagent/_funcs/bulk_create_prompt_dataset_items.py +42 -0
  7. mutagent/_funcs/cancel_optimization.py +40 -0
  8. mutagent/_funcs/change_password.py +38 -0
  9. mutagent/_funcs/check_organization_slug.py +40 -0
  10. mutagent/_funcs/clone_prompt_dataset.py +42 -0
  11. mutagent/_funcs/complete_experiment.py +42 -0
  12. mutagent/_funcs/create_agent.py +38 -0
  13. mutagent/_funcs/create_batch_prompt_execution.py +38 -0
  14. mutagent/_funcs/create_evaluation.py +38 -0
  15. mutagent/_funcs/create_evaluation_version.py +40 -0
  16. mutagent/_funcs/create_experiment.py +38 -0
  17. mutagent/_funcs/create_invitation.py +42 -0
  18. mutagent/_funcs/create_organization.py +38 -0
  19. mutagent/_funcs/create_prompt.py +38 -0
  20. mutagent/_funcs/create_prompt_dataset.py +42 -0
  21. mutagent/_funcs/create_prompt_dataset_item.py +42 -0
  22. mutagent/_funcs/create_prompt_execution.py +38 -0
  23. mutagent/_funcs/create_prompt_version.py +42 -0
  24. mutagent/_funcs/create_provider.py +38 -0
  25. mutagent/_funcs/create_workspace.py +38 -0
  26. mutagent/_funcs/delete_account.py +38 -0
  27. mutagent/_funcs/delete_agent.py +40 -0
  28. mutagent/_funcs/delete_evaluation.py +40 -0
  29. mutagent/_funcs/delete_experiment.py +40 -0
  30. mutagent/_funcs/delete_invitation.py +42 -0
  31. mutagent/_funcs/delete_organization.py +40 -0
  32. mutagent/_funcs/delete_playground_run.py +40 -0
  33. mutagent/_funcs/delete_prompt.py +44 -0
  34. mutagent/_funcs/delete_prompt_dataset.py +44 -0
  35. mutagent/_funcs/delete_prompt_dataset_item.py +40 -0
  36. mutagent/_funcs/delete_prompt_execution.py +40 -0
  37. mutagent/_funcs/delete_provider.py +40 -0
  38. mutagent/_funcs/delete_session.py +40 -0
  39. mutagent/_funcs/delete_trace.py +40 -0
  40. mutagent/_funcs/delete_workspace.py +40 -0
  41. mutagent/_funcs/execute_experiment.py +40 -0
  42. mutagent/_funcs/export_prompt_dataset.py +40 -0
  43. mutagent/_funcs/export_prompt_executions.py +48 -0
  44. mutagent/_funcs/get_agent.py +40 -0
  45. mutagent/_funcs/get_agent_by_slug.py +40 -0
  46. mutagent/_funcs/get_analytics_summary.py +46 -0
  47. mutagent/_funcs/get_evaluation.py +40 -0
  48. mutagent/_funcs/get_evaluation_history.py +40 -0
  49. mutagent/_funcs/get_evaluation_result.py +40 -0
  50. mutagent/_funcs/get_evaluation_results_aggregated.py +44 -0
  51. mutagent/_funcs/get_experiment.py +40 -0
  52. mutagent/_funcs/get_invitation.py +42 -0
  53. mutagent/_funcs/get_models_catalog.py +36 -0
  54. mutagent/_funcs/get_optimization.py +40 -0
  55. mutagent/_funcs/get_optimization_progress.py +40 -0
  56. mutagent/_funcs/get_optimization_results.py +40 -0
  57. mutagent/_funcs/get_optimization_states.py +40 -0
  58. mutagent/_funcs/get_organization.py +40 -0
  59. mutagent/_funcs/get_organization_by_slug.py +40 -0
  60. mutagent/_funcs/get_organization_member_count.py +40 -0
  61. mutagent/_funcs/get_playground_run.py +40 -0
  62. mutagent/_funcs/get_profile.py +36 -0
  63. mutagent/_funcs/get_prompt.py +40 -0
  64. mutagent/_funcs/get_prompt_analytics.py +40 -0
  65. mutagent/_funcs/get_prompt_dataset.py +40 -0
  66. mutagent/_funcs/get_prompt_dataset_item.py +40 -0
  67. mutagent/_funcs/get_prompt_execution.py +40 -0
  68. mutagent/_funcs/get_prompt_model_comparisons.py +40 -0
  69. mutagent/_funcs/get_prompt_readiness.py +40 -0
  70. mutagent/_funcs/get_provider.py +40 -0
  71. mutagent/_funcs/get_trace.py +44 -0
  72. mutagent/_funcs/get_trace_stats.py +46 -0
  73. mutagent/_funcs/get_workspace.py +40 -0
  74. mutagent/_funcs/ingest_otlp.py +38 -0
  75. mutagent/_funcs/ingest_trace.py +38 -0
  76. mutagent/_funcs/ingest_trace_batch.py +38 -0
  77. mutagent/_funcs/list_agents.py +50 -0
  78. mutagent/_funcs/list_available_models.py +36 -0
  79. mutagent/_funcs/list_datasets_for_prompt.py +40 -0
  80. mutagent/_funcs/list_evaluations.py +54 -0
  81. mutagent/_funcs/list_experiments.py +50 -0
  82. mutagent/_funcs/list_invitations.py +40 -0
  83. mutagent/_funcs/list_optimizations.py +46 -0
  84. mutagent/_funcs/list_organization_members.py +40 -0
  85. mutagent/_funcs/list_organizations.py +48 -0
  86. mutagent/_funcs/list_playground_runs.py +50 -0
  87. mutagent/_funcs/list_prompt_dataset_items.py +40 -0
  88. mutagent/_funcs/list_prompt_datasets.py +50 -0
  89. mutagent/_funcs/list_prompt_executions.py +52 -0
  90. mutagent/_funcs/list_prompt_tags.py +36 -0
  91. mutagent/_funcs/list_prompt_versions.py +40 -0
  92. mutagent/_funcs/list_prompts.py +50 -0
  93. mutagent/_funcs/list_providers.py +48 -0
  94. mutagent/_funcs/list_sessions.py +36 -0
  95. mutagent/_funcs/list_traces.py +56 -0
  96. mutagent/_funcs/list_workspace_members.py +40 -0
  97. mutagent/_funcs/list_workspaces.py +40 -0
  98. mutagent/_funcs/optimize_prompt.py +42 -0
  99. mutagent/_funcs/pause_optimization.py +40 -0
  100. mutagent/_funcs/playground_call.py +42 -0
  101. mutagent/_funcs/playground_eval.py +42 -0
  102. mutagent/_funcs/remove_organization_member.py +42 -0
  103. mutagent/_funcs/remove_workspace_member.py +42 -0
  104. mutagent/_funcs/resend_invitation.py +44 -0
  105. mutagent/_funcs/resume_optimization.py +40 -0
  106. mutagent/_funcs/run_evaluation.py +40 -0
  107. mutagent/_funcs/set_default_workspace.py +40 -0
  108. mutagent/_funcs/test_provider.py +40 -0
  109. mutagent/_funcs/update_agent.py +42 -0
  110. mutagent/_funcs/update_evaluation.py +42 -0
  111. mutagent/_funcs/update_experiment_name.py +42 -0
  112. mutagent/_funcs/update_organization.py +42 -0
  113. mutagent/_funcs/update_organization_member.py +44 -0
  114. mutagent/_funcs/update_profile.py +38 -0
  115. mutagent/_funcs/update_prompt.py +42 -0
  116. mutagent/_funcs/update_prompt_dataset.py +42 -0
  117. mutagent/_funcs/update_prompt_dataset_item.py +42 -0
  118. mutagent/_funcs/update_provider.py +42 -0
  119. mutagent/_funcs/update_workspace.py +42 -0
  120. mutagent/_funcs/update_workspace_member.py +44 -0
  121. mutagent/agents.py +217 -0
  122. mutagent/async_client.py +95 -0
  123. mutagent/client.py +107 -0
  124. mutagent/errors/__init__.py +89 -0
  125. mutagent/experiments.py +281 -0
  126. mutagent/invitations.py +187 -0
  127. mutagent/lib/__init__.py +8 -0
  128. mutagent/lib/batch.py +144 -0
  129. mutagent/lib/hooks.py +165 -0
  130. mutagent/lib/http.py +180 -0
  131. mutagent/lib/pagination.py +134 -0
  132. mutagent/lib/retries.py +141 -0
  133. mutagent/lib/security.py +59 -0
  134. mutagent/lib/sse.py +190 -0
  135. mutagent/models/__init__.py +576 -0
  136. mutagent/models/agent.py +54 -0
  137. mutagent/models/agent_list.py +25 -0
  138. mutagent/models/agent_success_response.py +21 -0
  139. mutagent/models/analytics_summary.py +39 -0
  140. mutagent/models/array_of_id_criteria_evaluation_parameter.py +18 -0
  141. mutagent/models/array_of_id_display_name_family.py +18 -0
  142. mutagent/models/array_of_id_model_temperature.py +18 -0
  143. mutagent/models/array_of_id_prompt_id_workspace_id.py +18 -0
  144. mutagent/models/array_of_inputs_model_actual_output.py +18 -0
  145. mutagent/models/array_of_key_value.py +18 -0
  146. mutagent/models/array_of_name_score_passed.py +18 -0
  147. mutagent/models/array_of_name_time_unix_nano_attributes.py +18 -0
  148. mutagent/models/array_of_name_timestamp_attributes.py +18 -0
  149. mutagent/models/array_of_resource_scope_spans.py +18 -0
  150. mutagent/models/array_of_role_content.py +18 -0
  151. mutagent/models/array_of_span_id_parent_span_id_name.py +18 -0
  152. mutagent/models/array_of_spans.py +18 -0
  153. mutagent/models/array_of_trace_id_span_id_parent_span_id.py +18 -0
  154. mutagent/models/batch_ingestion_response.py +23 -0
  155. mutagent/models/code_message.py +21 -0
  156. mutagent/models/criteria_threshold_model.py +23 -0
  157. mutagent/models/current_password_new_password.py +20 -0
  158. mutagent/models/dataset_id_evaluation_id_config.py +25 -0
  159. mutagent/models/dataset_item_id_dataset_item_index_model_column_id.py +37 -0
  160. mutagent/models/detailed_error_response.py +25 -0
  161. mutagent/models/email_role_expires_in_days.py +23 -0
  162. mutagent/models/error_message.py +20 -0
  163. mutagent/models/error_message_status_code.py +22 -0
  164. mutagent/models/error_response.py +20 -0
  165. mutagent/models/error_with_status_response.py +23 -0
  166. mutagent/models/evaluation.py +50 -0
  167. mutagent/models/evaluation_aggregation_results.py +21 -0
  168. mutagent/models/evaluation_history.py +18 -0
  169. mutagent/models/evaluation_list.py +29 -0
  170. mutagent/models/evaluation_result.py +34 -0
  171. mutagent/models/evaluation_result_list.py +29 -0
  172. mutagent/models/evaluation_run.py +22 -0
  173. mutagent/models/id_criteria_evaluation_parameter.py +27 -0
  174. mutagent/models/id_display_name_family.py +27 -0
  175. mutagent/models/id_model_temperature.py +22 -0
  176. mutagent/models/id_name_email.py +24 -0
  177. mutagent/models/id_organization_id_email.py +44 -0
  178. mutagent/models/id_prompt_id_workspace_id.py +51 -0
  179. mutagent/models/id_user_id_role.py +31 -0
  180. mutagent/models/id_user_id_role2.py +28 -0
  181. mutagent/models/input_evaluation_id_llm_config.py +23 -0
  182. mutagent/models/input_llm_config.py +21 -0
  183. mutagent/models/input_output.py +20 -0
  184. mutagent/models/input_output_total.py +22 -0
  185. mutagent/models/inputs_model_actual_output.py +37 -0
  186. mutagent/models/key_value.py +20 -0
  187. mutagent/models/max_iterations_target_score_patience.py +41 -0
  188. mutagent/models/model_temperature_max_tokens.py +23 -0
  189. mutagent/models/models_list.py +21 -0
  190. mutagent/models/name_api_key_base_url.py +37 -0
  191. mutagent/models/name_description_eval_config.py +29 -0
  192. mutagent/models/name_description_is_latest.py +39 -0
  193. mutagent/models/name_description_metadata.py +25 -0
  194. mutagent/models/name_description_metadata2.py +27 -0
  195. mutagent/models/name_description_system_prompt.py +41 -0
  196. mutagent/models/name_description_version.py +43 -0
  197. mutagent/models/name_email_avatar_url.py +23 -0
  198. mutagent/models/name_input_expected_output.py +31 -0
  199. mutagent/models/name_input_expected_output2.py +31 -0
  200. mutagent/models/name_provider_api_key.py +39 -0
  201. mutagent/models/name_score_passed.py +27 -0
  202. mutagent/models/name_slug_description.py +45 -0
  203. mutagent/models/name_slug_description2.py +29 -0
  204. mutagent/models/name_slug_description3.py +33 -0
  205. mutagent/models/name_slug_description4.py +29 -0
  206. mutagent/models/name_slug_description5.py +31 -0
  207. mutagent/models/name_time_unix_nano_attributes.py +23 -0
  208. mutagent/models/name_timestamp_attributes.py +23 -0
  209. mutagent/models/new_version_changes.py +21 -0
  210. mutagent/models/optimization_error.py +21 -0
  211. mutagent/models/optimization_job.py +57 -0
  212. mutagent/models/optimization_job_list.py +27 -0
  213. mutagent/models/optimization_job_status.py +61 -0
  214. mutagent/models/optimization_results.py +20 -0
  215. mutagent/models/optimization_score_progression.py +21 -0
  216. mutagent/models/optimization_states.py +19 -0
  217. mutagent/models/org_member_count_or_error.py +18 -0
  218. mutagent/models/org_success_or_error.py +18 -0
  219. mutagent/models/organization.py +43 -0
  220. mutagent/models/organization_id_workspace_id_user_id.py +23 -0
  221. mutagent/models/organization_list.py +29 -0
  222. mutagent/models/organization_list_or_error.py +18 -0
  223. mutagent/models/organization_or_error.py +18 -0
  224. mutagent/models/organization_with_role.py +39 -0
  225. mutagent/models/paginated_trace_list.py +25 -0
  226. mutagent/models/prompt.py +53 -0
  227. mutagent/models/prompt_dataset.py +38 -0
  228. mutagent/models/prompt_dataset_export.py +26 -0
  229. mutagent/models/prompt_dataset_item.py +40 -0
  230. mutagent/models/prompt_dataset_item_list.py +29 -0
  231. mutagent/models/prompt_dataset_list.py +29 -0
  232. mutagent/models/prompt_id_dataset_id_name.py +35 -0
  233. mutagent/models/prompt_id_executions.py +21 -0
  234. mutagent/models/prompt_id_inputs_model.py +39 -0
  235. mutagent/models/prompt_id_prompt_group_id_evaluation_id.py +31 -0
  236. mutagent/models/prompt_list.py +29 -0
  237. mutagent/models/prompt_success_response.py +21 -0
  238. mutagent/models/provider_config.py +54 -0
  239. mutagent/models/provider_configs_list.py +21 -0
  240. mutagent/models/provider_error.py +23 -0
  241. mutagent/models/provider_success.py +21 -0
  242. mutagent/models/resource_scope_spans.py +21 -0
  243. mutagent/models/role_content.py +20 -0
  244. mutagent/models/schemaany_of.py +18 -0
  245. mutagent/models/schemaany_of2.py +18 -0
  246. mutagent/models/schemadefaul.py +18 -0
  247. mutagent/models/schemadefaul10.py +18 -0
  248. mutagent/models/schemadefaul11.py +18 -0
  249. mutagent/models/schemadefaul12.py +18 -0
  250. mutagent/models/schemadefaul13.py +18 -0
  251. mutagent/models/schemadefaul14.py +18 -0
  252. mutagent/models/schemadefaul2.py +18 -0
  253. mutagent/models/schemadefaul3.py +18 -0
  254. mutagent/models/schemadefaul4.py +18 -0
  255. mutagent/models/schemadefaul5.py +18 -0
  256. mutagent/models/schemadefaul6.py +18 -0
  257. mutagent/models/schemadefaul7.py +18 -0
  258. mutagent/models/schemadefaul8.py +18 -0
  259. mutagent/models/schemadefaul9.py +18 -0
  260. mutagent/models/schemaenum.py +18 -0
  261. mutagent/models/schemaenum2.py +18 -0
  262. mutagent/models/schemaformat.py +18 -0
  263. mutagent/models/schemaformat2.py +18 -0
  264. mutagent/models/schemaformat3.py +18 -0
  265. mutagent/models/schemaformat4.py +18 -0
  266. mutagent/models/schemaformat5.py +18 -0
  267. mutagent/models/schemaformat6.py +18 -0
  268. mutagent/models/schemaformat7.py +18 -0
  269. mutagent/models/schemaitems.py +18 -0
  270. mutagent/models/schemaitems2.py +18 -0
  271. mutagent/models/schemaitems3.py +18 -0
  272. mutagent/models/schemaitems4.py +18 -0
  273. mutagent/models/schemaitems5.py +18 -0
  274. mutagent/models/schemamax_len.py +18 -0
  275. mutagent/models/schemamax_len10.py +18 -0
  276. mutagent/models/schemamax_len11.py +18 -0
  277. mutagent/models/schemamax_len12.py +18 -0
  278. mutagent/models/schemamax_len13.py +18 -0
  279. mutagent/models/schemamax_len2.py +18 -0
  280. mutagent/models/schemamax_len3.py +18 -0
  281. mutagent/models/schemamax_len4.py +18 -0
  282. mutagent/models/schemamax_len5.py +18 -0
  283. mutagent/models/schemamax_len6.py +18 -0
  284. mutagent/models/schemamax_len7.py +18 -0
  285. mutagent/models/schemamax_len8.py +18 -0
  286. mutagent/models/schemamax_len9.py +18 -0
  287. mutagent/models/schemamaximu.py +18 -0
  288. mutagent/models/schemamaximu2.py +18 -0
  289. mutagent/models/schemamaximu3.py +18 -0
  290. mutagent/models/schemamaximu4.py +18 -0
  291. mutagent/models/schemamaximu5.py +18 -0
  292. mutagent/models/schemamaximu6.py +18 -0
  293. mutagent/models/schemamin_len.py +18 -0
  294. mutagent/models/schemaminimu.py +18 -0
  295. mutagent/models/schemaminimu2.py +18 -0
  296. mutagent/models/schemaminimu3.py +18 -0
  297. mutagent/models/schemaminimu4.py +18 -0
  298. mutagent/models/schemanullab.py +18 -0
  299. mutagent/models/schemanullab2.py +18 -0
  300. mutagent/models/schemanullab3.py +18 -0
  301. mutagent/models/schemanullab4.py +18 -0
  302. mutagent/models/schemapatter.py +18 -0
  303. mutagent/models/schemapatter2.py +18 -0
  304. mutagent/models/span_id_parent_span_id_name.py +55 -0
  305. mutagent/models/status_summary_completed_at.py +23 -0
  306. mutagent/models/string_value_int_value_double_value.py +25 -0
  307. mutagent/models/success_message.py +21 -0
  308. mutagent/models/success_response.py +21 -0
  309. mutagent/models/target_prompt_id_target_prompt_group_id_new_name.py +23 -0
  310. mutagent/models/test_connection_result.py +27 -0
  311. mutagent/models/total_evaluations_completed_evaluations_per_model_stats.py +22 -0
  312. mutagent/models/trace_error.py +20 -0
  313. mutagent/models/trace_id_session_id_name.py +37 -0
  314. mutagent/models/trace_id_span_id_parent_span_id.py +37 -0
  315. mutagent/models/trace_ingestion_response.py +22 -0
  316. mutagent/models/trace_stats.py +18 -0
  317. mutagent/models/trace_with_spans.py +58 -0
  318. mutagent/models/user_id_role.py +21 -0
  319. mutagent/models/user_id_role_status.py +23 -0
  320. mutagent/models/workspace.py +42 -0
  321. mutagent/models/workspace_with_role.py +44 -0
  322. mutagent/models/workspaces_list.py +21 -0
  323. mutagent/models/ws_error.py +23 -0
  324. mutagent/models/ws_success.py +21 -0
  325. mutagent/optimization.py +305 -0
  326. mutagent/organization_members.py +155 -0
  327. mutagent/organizations.py +275 -0
  328. mutagent/playground.py +91 -0
  329. mutagent/prompt.py +339 -0
  330. mutagent/prompt_dataset_items.py +213 -0
  331. mutagent/prompt_datasets.py +287 -0
  332. mutagent/prompt_evaluations.py +345 -0
  333. mutagent/prompt_executions.py +323 -0
  334. mutagent/prompt_readiness.py +57 -0
  335. mutagent/provider_configs.py +267 -0
  336. mutagent/traces.py +293 -0
  337. mutagent/tracing/__init__.py +72 -0
  338. mutagent/tracing/api.py +71 -0
  339. mutagent/tracing/batch_collector.py +213 -0
  340. mutagent/tracing/decorators.py +135 -0
  341. mutagent/tracing/http_client.py +59 -0
  342. mutagent/tracing/init.py +184 -0
  343. mutagent/tracing/span_manager.py +207 -0
  344. mutagent/tracing/types.py +356 -0
  345. mutagent/tracing/wrappers.py +187 -0
  346. mutagent/user_profile.py +193 -0
  347. mutagent/workspace_members.py +155 -0
  348. mutagent/workspaces.py +207 -0
  349. mutagent_sdk-0.1.0.dist-info/METADATA +223 -0
  350. mutagent_sdk-0.1.0.dist-info/RECORD +352 -0
  351. mutagent_sdk-0.1.0.dist-info/WHEEL +4 -0
  352. 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()