agenta 0.30.0a1__tar.gz → 0.30.0a3__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.

Files changed (265) hide show
  1. {agenta-0.30.0a1 → agenta-0.30.0a3}/PKG-INFO +3 -2
  2. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/__init__.py +1 -0
  3. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/__init__.py +32 -3
  4. agenta-0.30.0a3/agenta/client/backend/access_control/client.py +167 -0
  5. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/apps/client.py +70 -10
  6. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/client.py +61 -45
  7. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/configs/client.py +6 -0
  8. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/containers/client.py +6 -0
  9. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/file.py +13 -8
  10. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/environments/client.py +6 -0
  11. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/evaluations/client.py +14 -1
  12. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/evaluators/client.py +24 -0
  13. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/observability/client.py +22 -16
  14. agenta-0.30.0a3/agenta/client/backend/observability_v_1/__init__.py +5 -0
  15. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/observability_v_1/client.py +203 -0
  16. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/observability_v_1/types/__init__.py +2 -1
  17. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/observability_v_1/types/format.py +1 -1
  18. agenta-0.30.0a3/agenta/client/backend/observability_v_1/types/query_analytics_response.py +7 -0
  19. agenta-0.30.0a3/agenta/client/backend/scopes/__init__.py +1 -0
  20. agenta-0.30.0a3/agenta/client/backend/scopes/client.py +114 -0
  21. agenta-0.30.0a3/agenta/client/backend/testsets/__init__.py +1 -0
  22. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/testsets/client.py +305 -121
  23. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/__init__.py +24 -2
  24. agenta-0.30.0a3/agenta/client/backend/types/analytics_response.py +24 -0
  25. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/app.py +2 -1
  26. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/body_import_testset.py +0 -1
  27. agenta-0.30.0a3/agenta/client/backend/types/bucket_dto.py +26 -0
  28. agenta-0.30.0a3/agenta/client/backend/types/header_dto.py +22 -0
  29. agenta-0.30.0a3/agenta/client/backend/types/legacy_analytics_response.py +29 -0
  30. agenta-0.30.0a3/agenta/client/backend/types/legacy_data_point.py +27 -0
  31. agenta-0.30.0a3/agenta/client/backend/types/metrics_dto.py +24 -0
  32. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/permission.py +1 -0
  33. agenta-0.30.0a3/agenta/client/backend/types/projects_response.py +28 -0
  34. agenta-0.30.0a3/agenta/client/backend/types/provider_key_dto.py +23 -0
  35. agenta-0.30.0a3/agenta/client/backend/types/provider_kind.py +21 -0
  36. agenta-0.30.0a3/agenta/client/backend/types/secret_dto.py +24 -0
  37. agenta-0.30.0a3/agenta/client/backend/types/secret_kind.py +5 -0
  38. agenta-0.30.0a3/agenta/client/backend/types/secret_response_dto.py +27 -0
  39. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/variants/client.py +66 -0
  40. agenta-0.30.0a3/agenta/client/backend/vault/__init__.py +1 -0
  41. agenta-0.30.0a3/agenta/client/backend/vault/client.py +685 -0
  42. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/client.py +1 -1
  43. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/__init__.py +1 -0
  44. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/agenta_init.py +47 -118
  45. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/assets.py +57 -46
  46. agenta-0.30.0a3/agenta/sdk/context/exporting.py +25 -0
  47. agenta-0.30.0a3/agenta/sdk/context/routing.py +26 -0
  48. agenta-0.30.0a3/agenta/sdk/context/tracing.py +28 -0
  49. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/decorators/routing.py +272 -267
  50. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/decorators/tracing.py +53 -31
  51. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/managers/config.py +8 -118
  52. agenta-0.30.0a3/agenta/sdk/managers/secrets.py +38 -0
  53. agenta-0.30.0a3/agenta/sdk/middleware/auth.py +180 -0
  54. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/middleware/cache.py +4 -0
  55. agenta-0.30.0a3/agenta/sdk/middleware/config.py +254 -0
  56. agenta-0.30.0a3/agenta/sdk/middleware/cors.py +27 -0
  57. agenta-0.30.0a3/agenta/sdk/middleware/otel.py +40 -0
  58. agenta-0.30.0a3/agenta/sdk/middleware/vault.py +158 -0
  59. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/exporters.py +40 -2
  60. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/inline.py +2 -2
  61. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/processors.py +11 -3
  62. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/tracing.py +14 -12
  63. agenta-0.30.0a3/agenta/sdk/utils/constants.py +1 -0
  64. agenta-0.30.0a3/agenta/sdk/utils/exceptions.py +59 -0
  65. agenta-0.30.0a3/agenta/sdk/utils/globals.py +10 -0
  66. agenta-0.30.0a3/agenta/sdk/utils/timing.py +58 -0
  67. {agenta-0.30.0a1 → agenta-0.30.0a3}/pyproject.toml +1 -1
  68. agenta-0.30.0a1/agenta/client/backend/observability_v_1/__init__.py +0 -5
  69. agenta-0.30.0a1/agenta/client/backend/types/lm_providers_enum.py +0 -21
  70. agenta-0.30.0a1/agenta/sdk/context/routing.py +0 -26
  71. agenta-0.30.0a1/agenta/sdk/context/tracing.py +0 -3
  72. agenta-0.30.0a1/agenta/sdk/middleware/auth.py +0 -145
  73. agenta-0.30.0a1/agenta/sdk/tracing/context.py +0 -24
  74. agenta-0.30.0a1/agenta/sdk/utils/exceptions.py +0 -58
  75. agenta-0.30.0a1/agenta/sdk/utils/globals.py +0 -14
  76. {agenta-0.30.0a1 → agenta-0.30.0a3}/README.md +0 -0
  77. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/cli/evaluation_commands.py +0 -0
  78. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/cli/helper.py +0 -0
  79. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/cli/main.py +0 -0
  80. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/cli/telemetry.py +0 -0
  81. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/cli/variant_commands.py +0 -0
  82. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/cli/variant_configs.py +0 -0
  83. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/Readme.md +0 -0
  84. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/__init__.py +0 -0
  85. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/api.py +0 -0
  86. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/api_models.py +0 -0
  87. {agenta-0.30.0a1/agenta/client/backend/apps → agenta-0.30.0a3/agenta/client/backend/access_control}/__init__.py +0 -0
  88. {agenta-0.30.0a1/agenta/client/backend/bases → agenta-0.30.0a3/agenta/client/backend/apps}/__init__.py +0 -0
  89. {agenta-0.30.0a1/agenta/client/backend/configs → agenta-0.30.0a3/agenta/client/backend/bases}/__init__.py +0 -0
  90. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/bases/client.py +0 -0
  91. {agenta-0.30.0a1/agenta/client/backend/environments → agenta-0.30.0a3/agenta/client/backend/configs}/__init__.py +0 -0
  92. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/containers/__init__.py +0 -0
  93. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/containers/types/__init__.py +0 -0
  94. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/containers/types/container_templates_response.py +0 -0
  95. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/__init__.py +0 -0
  96. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/api_error.py +0 -0
  97. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/client_wrapper.py +0 -0
  98. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/datetime_utils.py +0 -0
  99. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/http_client.py +0 -0
  100. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/jsonable_encoder.py +0 -0
  101. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/pydantic_utilities.py +0 -0
  102. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/query_encoder.py +0 -0
  103. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/remove_none_from_dict.py +0 -0
  104. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/request_options.py +0 -0
  105. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/core/serialization.py +0 -0
  106. {agenta-0.30.0a1/agenta/client/backend/evaluations → agenta-0.30.0a3/agenta/client/backend/environments}/__init__.py +0 -0
  107. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/errors/__init__.py +0 -0
  108. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/errors/unprocessable_entity_error.py +0 -0
  109. {agenta-0.30.0a1/agenta/client/backend/evaluators → agenta-0.30.0a3/agenta/client/backend/evaluations}/__init__.py +0 -0
  110. {agenta-0.30.0a1/agenta/client/backend/observability → agenta-0.30.0a3/agenta/client/backend/evaluators}/__init__.py +0 -0
  111. {agenta-0.30.0a1/agenta/client/backend/testsets → agenta-0.30.0a3/agenta/client/backend/observability}/__init__.py +0 -0
  112. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/observability_v_1/types/query_traces_response.py +0 -0
  113. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/agenta_node_dto.py +0 -0
  114. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/agenta_node_dto_nodes_value.py +0 -0
  115. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/agenta_nodes_response.py +0 -0
  116. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/agenta_root_dto.py +0 -0
  117. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/agenta_roots_response.py +0 -0
  118. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/agenta_tree_dto.py +0 -0
  119. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/agenta_trees_response.py +0 -0
  120. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/aggregated_result.py +0 -0
  121. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/aggregated_result_evaluator_config.py +0 -0
  122. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/app_variant_response.py +0 -0
  123. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/app_variant_revision.py +0 -0
  124. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/base_output.py +0 -0
  125. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/collect_status_response.py +0 -0
  126. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/config_db.py +0 -0
  127. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/config_dto.py +0 -0
  128. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/config_response_model.py +0 -0
  129. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/correct_answer.py +0 -0
  130. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/create_app_output.py +0 -0
  131. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/create_span.py +0 -0
  132. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/create_trace_response.py +0 -0
  133. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/docker_env_vars.py +0 -0
  134. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/environment_output.py +0 -0
  135. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/environment_output_extended.py +0 -0
  136. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/environment_revision.py +0 -0
  137. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/error.py +0 -0
  138. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation.py +0 -0
  139. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation_scenario.py +0 -0
  140. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation_scenario_input.py +0 -0
  141. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation_scenario_output.py +0 -0
  142. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation_scenario_result.py +0 -0
  143. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation_scenario_score_update.py +0 -0
  144. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation_status_enum.py +0 -0
  145. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluation_type.py +0 -0
  146. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluator.py +0 -0
  147. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluator_config.py +0 -0
  148. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluator_mapping_output_interface.py +0 -0
  149. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/evaluator_output_interface.py +0 -0
  150. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/exception_dto.py +0 -0
  151. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/get_config_response.py +0 -0
  152. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/http_validation_error.py +0 -0
  153. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/human_evaluation.py +0 -0
  154. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/human_evaluation_scenario.py +0 -0
  155. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/human_evaluation_scenario_input.py +0 -0
  156. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/human_evaluation_scenario_output.py +0 -0
  157. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/human_evaluation_scenario_update.py +0 -0
  158. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/human_evaluation_update.py +0 -0
  159. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/image.py +0 -0
  160. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/invite_request.py +0 -0
  161. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/lifecycle_dto.py +0 -0
  162. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/link_dto.py +0 -0
  163. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/list_api_keys_response.py +0 -0
  164. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/llm_run_rate_limit.py +0 -0
  165. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/llm_tokens.py +0 -0
  166. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/new_human_evaluation.py +0 -0
  167. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/new_testset.py +0 -0
  168. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/node_dto.py +0 -0
  169. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/node_type.py +0 -0
  170. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_context_dto.py +0 -0
  171. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_event_dto.py +0 -0
  172. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_extra_dto.py +0 -0
  173. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_link_dto.py +0 -0
  174. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_span_dto.py +0 -0
  175. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_span_kind.py +0 -0
  176. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_spans_response.py +0 -0
  177. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/o_tel_status_code.py +0 -0
  178. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/organization.py +0 -0
  179. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/organization_output.py +0 -0
  180. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/outputs.py +0 -0
  181. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/parent_dto.py +0 -0
  182. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/reference_dto.py +0 -0
  183. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/reference_request_model.py +0 -0
  184. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/result.py +0 -0
  185. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/root_dto.py +0 -0
  186. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/score.py +0 -0
  187. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/simple_evaluation_output.py +0 -0
  188. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/span.py +0 -0
  189. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/span_detail.py +0 -0
  190. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/span_dto.py +0 -0
  191. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/span_dto_nodes_value.py +0 -0
  192. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/span_status_code.py +0 -0
  193. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/span_variant.py +0 -0
  194. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/status_code.py +0 -0
  195. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/status_dto.py +0 -0
  196. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/template.py +0 -0
  197. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/template_image_info.py +0 -0
  198. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/test_set_output_response.py +0 -0
  199. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/test_set_simple_response.py +0 -0
  200. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/time_dto.py +0 -0
  201. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/trace_detail.py +0 -0
  202. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/tree_dto.py +0 -0
  203. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/tree_type.py +0 -0
  204. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/update_app_output.py +0 -0
  205. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/uri.py +0 -0
  206. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/validation_error.py +0 -0
  207. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/validation_error_loc_item.py +0 -0
  208. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/variant_action.py +0 -0
  209. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/variant_action_enum.py +0 -0
  210. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/with_pagination.py +0 -0
  211. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/workspace_member_response.py +0 -0
  212. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/workspace_permission.py +0 -0
  213. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/workspace_response.py +0 -0
  214. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/workspace_role.py +0 -0
  215. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/types/workspace_role_response.py +0 -0
  216. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/variants/__init__.py +0 -0
  217. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/variants/types/__init__.py +0 -0
  218. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/backend/variants/types/add_variant_from_base_and_config_response.py +0 -0
  219. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/client/exceptions.py +0 -0
  220. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/config.py +0 -0
  221. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/config.toml +0 -0
  222. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/docker/docker-assets/Dockerfile.cloud.template +0 -0
  223. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/docker/docker-assets/Dockerfile.template +0 -0
  224. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/docker/docker-assets/README.md +0 -0
  225. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/docker/docker-assets/entrypoint.sh +0 -0
  226. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/docker/docker-assets/lambda_function.py +0 -0
  227. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/docker/docker-assets/main.py +0 -0
  228. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/docker/docker_utils.py +0 -0
  229. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/client.py +0 -0
  230. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/context/__init__.py +0 -0
  231. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/decorators/__init__.py +0 -0
  232. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/litellm/__init__.py +0 -0
  233. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/litellm/litellm.py +0 -0
  234. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/managers/__init__.py +0 -0
  235. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/managers/deployment.py +0 -0
  236. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/managers/shared.py +0 -0
  237. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/managers/variant.py +0 -0
  238. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/middleware/__init__.py +0 -0
  239. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/router.py +0 -0
  240. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/__init__.py +0 -0
  241. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/attributes.py +0 -0
  242. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/conventions.py +0 -0
  243. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/tracing/spans.py +0 -0
  244. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/types.py +0 -0
  245. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/utils/__init__.py +0 -0
  246. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/utils/costs.py +0 -0
  247. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/utils/helpers.py +0 -0
  248. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/utils/logging.py +0 -0
  249. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/utils/preinit.py +0 -0
  250. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/sdk/utils/singleton.py +0 -0
  251. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/compose_email/README.md +0 -0
  252. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/compose_email/app.py +0 -0
  253. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/compose_email/env.example +0 -0
  254. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/compose_email/requirements.txt +0 -0
  255. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/compose_email/template.toml +0 -0
  256. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/extract_data_to_json/README.md +0 -0
  257. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/extract_data_to_json/app.py +0 -0
  258. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/extract_data_to_json/env.example +0 -0
  259. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/extract_data_to_json/requirements.txt +0 -0
  260. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/extract_data_to_json/template.toml +0 -0
  261. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/simple_prompt/README.md +0 -0
  262. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/simple_prompt/app.py +0 -0
  263. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/simple_prompt/env.example +0 -0
  264. {agenta-0.30.0a1 → agenta-0.30.0a3}/agenta/templates/simple_prompt/requirements.txt +0 -0
  265. {agenta-0.30.0a1 → agenta-0.30.0a3}/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.30.0a1
3
+ Version: 0.30.0a3
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
@@ -13,7 +13,8 @@ Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3.9
14
14
  Classifier: Programming Language :: Python :: 3.10
15
15
  Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
17
18
  Classifier: Topic :: Software Development :: Libraries
18
19
  Requires-Dist: cachetools (>=5.3.3,<6.0.0)
19
20
  Requires-Dist: click (>=8.1.3,<9.0.0)
@@ -28,6 +28,7 @@ from .sdk.agenta_init import Config, AgentaSingleton, init as _init
28
28
  from .sdk.utils.costs import calculate_token_usage
29
29
  from .sdk.client import Agenta
30
30
  from .sdk.litellm import litellm as callbacks
31
+ from .sdk.managers.secrets import SecretsManager
31
32
  from .sdk.managers.config import ConfigManager
32
33
  from .sdk.managers.variant import VariantManager
33
34
  from .sdk.managers.deployment import DeploymentManager
@@ -10,11 +10,13 @@ from .types import (
10
10
  AgentaTreesResponse,
11
11
  AggregatedResult,
12
12
  AggregatedResultEvaluatorConfig,
13
+ AnalyticsResponse,
13
14
  App,
14
15
  AppVariantResponse,
15
16
  AppVariantRevision,
16
17
  BaseOutput,
17
18
  BodyImportTestset,
19
+ BucketDto,
18
20
  CollectStatusResponse,
19
21
  ConfigDb,
20
22
  ConfigDto,
@@ -42,6 +44,7 @@ from .types import (
42
44
  EvaluatorOutputInterface,
43
45
  ExceptionDto,
44
46
  GetConfigResponse,
47
+ HeaderDto,
45
48
  HttpValidationError,
46
49
  HumanEvaluation,
47
50
  HumanEvaluationScenario,
@@ -51,12 +54,14 @@ from .types import (
51
54
  HumanEvaluationUpdate,
52
55
  Image,
53
56
  InviteRequest,
57
+ LegacyAnalyticsResponse,
58
+ LegacyDataPoint,
54
59
  LifecycleDto,
55
60
  LinkDto,
56
61
  ListApiKeysResponse,
57
62
  LlmRunRateLimit,
58
63
  LlmTokens,
59
- LmProvidersEnum,
64
+ MetricsDto,
60
65
  NewHumanEvaluation,
61
66
  NewTestset,
62
67
  NodeDto,
@@ -74,11 +79,17 @@ from .types import (
74
79
  Outputs,
75
80
  ParentDto,
76
81
  Permission,
82
+ ProjectsResponse,
83
+ ProviderKeyDto,
84
+ ProviderKind,
77
85
  ReferenceDto,
78
86
  ReferenceRequestModel,
79
87
  Result,
80
88
  RootDto,
81
89
  Score,
90
+ SecretDto,
91
+ SecretKind,
92
+ SecretResponseDto,
82
93
  SimpleEvaluationOutput,
83
94
  Span,
84
95
  SpanDetail,
@@ -111,6 +122,7 @@ from .types import (
111
122
  )
112
123
  from .errors import UnprocessableEntityError
113
124
  from . import (
125
+ access_control,
114
126
  apps,
115
127
  bases,
116
128
  configs,
@@ -120,12 +132,14 @@ from . import (
120
132
  evaluators,
121
133
  observability,
122
134
  observability_v_1,
135
+ scopes,
123
136
  testsets,
124
137
  variants,
138
+ vault,
125
139
  )
126
140
  from .client import AgentaApi, AsyncAgentaApi
127
141
  from .containers import ContainerTemplatesResponse
128
- from .observability_v_1 import Format, QueryTracesResponse
142
+ from .observability_v_1 import Format, QueryAnalyticsResponse, QueryTracesResponse
129
143
  from .variants import AddVariantFromBaseAndConfigResponse
130
144
 
131
145
  __all__ = [
@@ -140,12 +154,14 @@ __all__ = [
140
154
  "AgentaTreesResponse",
141
155
  "AggregatedResult",
142
156
  "AggregatedResultEvaluatorConfig",
157
+ "AnalyticsResponse",
143
158
  "App",
144
159
  "AppVariantResponse",
145
160
  "AppVariantRevision",
146
161
  "AsyncAgentaApi",
147
162
  "BaseOutput",
148
163
  "BodyImportTestset",
164
+ "BucketDto",
149
165
  "CollectStatusResponse",
150
166
  "ConfigDb",
151
167
  "ConfigDto",
@@ -175,6 +191,7 @@ __all__ = [
175
191
  "ExceptionDto",
176
192
  "Format",
177
193
  "GetConfigResponse",
194
+ "HeaderDto",
178
195
  "HttpValidationError",
179
196
  "HumanEvaluation",
180
197
  "HumanEvaluationScenario",
@@ -184,12 +201,14 @@ __all__ = [
184
201
  "HumanEvaluationUpdate",
185
202
  "Image",
186
203
  "InviteRequest",
204
+ "LegacyAnalyticsResponse",
205
+ "LegacyDataPoint",
187
206
  "LifecycleDto",
188
207
  "LinkDto",
189
208
  "ListApiKeysResponse",
190
209
  "LlmRunRateLimit",
191
210
  "LlmTokens",
192
- "LmProvidersEnum",
211
+ "MetricsDto",
193
212
  "NewHumanEvaluation",
194
213
  "NewTestset",
195
214
  "NodeDto",
@@ -207,12 +226,19 @@ __all__ = [
207
226
  "Outputs",
208
227
  "ParentDto",
209
228
  "Permission",
229
+ "ProjectsResponse",
230
+ "ProviderKeyDto",
231
+ "ProviderKind",
232
+ "QueryAnalyticsResponse",
210
233
  "QueryTracesResponse",
211
234
  "ReferenceDto",
212
235
  "ReferenceRequestModel",
213
236
  "Result",
214
237
  "RootDto",
215
238
  "Score",
239
+ "SecretDto",
240
+ "SecretKind",
241
+ "SecretResponseDto",
216
242
  "SimpleEvaluationOutput",
217
243
  "Span",
218
244
  "SpanDetail",
@@ -243,6 +269,7 @@ __all__ = [
243
269
  "WorkspaceResponse",
244
270
  "WorkspaceRole",
245
271
  "WorkspaceRoleResponse",
272
+ "access_control",
246
273
  "apps",
247
274
  "bases",
248
275
  "configs",
@@ -252,6 +279,8 @@ __all__ = [
252
279
  "evaluators",
253
280
  "observability",
254
281
  "observability_v_1",
282
+ "scopes",
255
283
  "testsets",
256
284
  "variants",
285
+ "vault",
257
286
  ]
@@ -0,0 +1,167 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ from ..core.client_wrapper import SyncClientWrapper
4
+ import typing
5
+ from ..core.request_options import RequestOptions
6
+ from ..core.pydantic_utilities import parse_obj_as
7
+ from ..errors.unprocessable_entity_error import UnprocessableEntityError
8
+ from ..types.http_validation_error import HttpValidationError
9
+ from json.decoder import JSONDecodeError
10
+ from ..core.api_error import ApiError
11
+ from ..core.client_wrapper import AsyncClientWrapper
12
+
13
+
14
+ class AccessControlClient:
15
+ def __init__(self, *, client_wrapper: SyncClientWrapper):
16
+ self._client_wrapper = client_wrapper
17
+
18
+ def verify_permissions(
19
+ self,
20
+ *,
21
+ action: typing.Optional[str] = None,
22
+ resource_type: typing.Optional[str] = None,
23
+ resource_id: typing.Optional[str] = None,
24
+ request_options: typing.Optional[RequestOptions] = None,
25
+ ) -> typing.Optional[typing.Any]:
26
+ """
27
+ Parameters
28
+ ----------
29
+ action : typing.Optional[str]
30
+
31
+ resource_type : typing.Optional[str]
32
+
33
+ resource_id : typing.Optional[str]
34
+
35
+ request_options : typing.Optional[RequestOptions]
36
+ Request-specific configuration.
37
+
38
+ Returns
39
+ -------
40
+ typing.Optional[typing.Any]
41
+ Successful Response
42
+
43
+ Examples
44
+ --------
45
+ from agenta import AgentaApi
46
+
47
+ client = AgentaApi(
48
+ api_key="YOUR_API_KEY",
49
+ base_url="https://yourhost.com/path/to/api",
50
+ )
51
+ client.access_control.verify_permissions()
52
+ """
53
+ _response = self._client_wrapper.httpx_client.request(
54
+ "permissions/verify",
55
+ method="GET",
56
+ params={
57
+ "action": action,
58
+ "resource_type": resource_type,
59
+ "resource_id": resource_id,
60
+ },
61
+ request_options=request_options,
62
+ )
63
+ try:
64
+ if 200 <= _response.status_code < 300:
65
+ return typing.cast(
66
+ typing.Optional[typing.Any],
67
+ parse_obj_as(
68
+ type_=typing.Optional[typing.Any], # type: ignore
69
+ object_=_response.json(),
70
+ ),
71
+ )
72
+ if _response.status_code == 422:
73
+ raise UnprocessableEntityError(
74
+ typing.cast(
75
+ HttpValidationError,
76
+ parse_obj_as(
77
+ type_=HttpValidationError, # type: ignore
78
+ object_=_response.json(),
79
+ ),
80
+ )
81
+ )
82
+ _response_json = _response.json()
83
+ except JSONDecodeError:
84
+ raise ApiError(status_code=_response.status_code, body=_response.text)
85
+ raise ApiError(status_code=_response.status_code, body=_response_json)
86
+
87
+
88
+ class AsyncAccessControlClient:
89
+ def __init__(self, *, client_wrapper: AsyncClientWrapper):
90
+ self._client_wrapper = client_wrapper
91
+
92
+ async def verify_permissions(
93
+ self,
94
+ *,
95
+ action: typing.Optional[str] = None,
96
+ resource_type: typing.Optional[str] = None,
97
+ resource_id: typing.Optional[str] = None,
98
+ request_options: typing.Optional[RequestOptions] = None,
99
+ ) -> typing.Optional[typing.Any]:
100
+ """
101
+ Parameters
102
+ ----------
103
+ action : typing.Optional[str]
104
+
105
+ resource_type : typing.Optional[str]
106
+
107
+ resource_id : typing.Optional[str]
108
+
109
+ request_options : typing.Optional[RequestOptions]
110
+ Request-specific configuration.
111
+
112
+ Returns
113
+ -------
114
+ typing.Optional[typing.Any]
115
+ Successful Response
116
+
117
+ Examples
118
+ --------
119
+ import asyncio
120
+
121
+ from agenta import AsyncAgentaApi
122
+
123
+ client = AsyncAgentaApi(
124
+ api_key="YOUR_API_KEY",
125
+ base_url="https://yourhost.com/path/to/api",
126
+ )
127
+
128
+
129
+ async def main() -> None:
130
+ await client.access_control.verify_permissions()
131
+
132
+
133
+ asyncio.run(main())
134
+ """
135
+ _response = await self._client_wrapper.httpx_client.request(
136
+ "permissions/verify",
137
+ method="GET",
138
+ params={
139
+ "action": action,
140
+ "resource_type": resource_type,
141
+ "resource_id": resource_id,
142
+ },
143
+ request_options=request_options,
144
+ )
145
+ try:
146
+ if 200 <= _response.status_code < 300:
147
+ return typing.cast(
148
+ typing.Optional[typing.Any],
149
+ parse_obj_as(
150
+ type_=typing.Optional[typing.Any], # type: ignore
151
+ object_=_response.json(),
152
+ ),
153
+ )
154
+ if _response.status_code == 422:
155
+ raise UnprocessableEntityError(
156
+ typing.cast(
157
+ HttpValidationError,
158
+ parse_obj_as(
159
+ type_=HttpValidationError, # type: ignore
160
+ object_=_response.json(),
161
+ ),
162
+ )
163
+ )
164
+ _response_json = _response.json()
165
+ except JSONDecodeError:
166
+ raise ApiError(status_code=_response.status_code, body=_response.text)
167
+ raise ApiError(status_code=_response.status_code, body=_response_json)
@@ -216,7 +216,9 @@ class AppsClient:
216
216
  _response = self._client_wrapper.httpx_client.request(
217
217
  "apps",
218
218
  method="GET",
219
- params={"app_name": app_name},
219
+ params={
220
+ "app_name": app_name,
221
+ },
220
222
  request_options=request_options,
221
223
  )
222
224
  try:
@@ -248,13 +250,15 @@ class AppsClient:
248
250
  *,
249
251
  app_name: str,
250
252
  project_id: typing.Optional[str] = OMIT,
253
+ workspace_id: typing.Optional[str] = OMIT,
254
+ organization_id: typing.Optional[str] = OMIT,
251
255
  request_options: typing.Optional[RequestOptions] = None,
252
256
  ) -> CreateAppOutput:
253
257
  """
254
- Create a new app for a user.
258
+ Create a new app for a user or organization.
255
259
 
256
260
  Args:
257
- payload (CreateApp): The payload containing the app name.
261
+ payload (CreateApp): The payload containing the app name and organization ID (optional).
258
262
  stoken_session (SessionContainer): The session container containing the user's session token.
259
263
 
260
264
  Returns:
@@ -269,6 +273,10 @@ class AppsClient:
269
273
 
270
274
  project_id : typing.Optional[str]
271
275
 
276
+ workspace_id : typing.Optional[str]
277
+
278
+ organization_id : typing.Optional[str]
279
+
272
280
  request_options : typing.Optional[RequestOptions]
273
281
  Request-specific configuration.
274
282
 
@@ -295,6 +303,11 @@ class AppsClient:
295
303
  json={
296
304
  "app_name": app_name,
297
305
  "project_id": project_id,
306
+ "workspace_id": workspace_id,
307
+ "organization_id": organization_id,
308
+ },
309
+ headers={
310
+ "content-type": "application/json",
298
311
  },
299
312
  request_options=request_options,
300
313
  omit=OMIT,
@@ -393,7 +406,7 @@ class AppsClient:
393
406
  request_options: typing.Optional[RequestOptions] = None,
394
407
  ) -> UpdateAppOutput:
395
408
  """
396
- Update an app for a user.
409
+ Update an app for a user or organization.
397
410
 
398
411
  Args:
399
412
  app_id (str): The ID of the app.
@@ -439,6 +452,9 @@ class AppsClient:
439
452
  json={
440
453
  "app_name": app_name,
441
454
  },
455
+ headers={
456
+ "content-type": "application/json",
457
+ },
442
458
  request_options=request_options,
443
459
  omit=OMIT,
444
460
  )
@@ -538,6 +554,9 @@ class AppsClient:
538
554
  "base_name": base_name,
539
555
  "config_name": config_name,
540
556
  },
557
+ headers={
558
+ "content-type": "application/json",
559
+ },
541
560
  request_options=request_options,
542
561
  omit=OMIT,
543
562
  )
@@ -572,6 +591,8 @@ class AppsClient:
572
591
  template_id: str,
573
592
  env_vars: typing.Dict[str, str],
574
593
  project_id: typing.Optional[str] = OMIT,
594
+ workspace_id: typing.Optional[str] = OMIT,
595
+ organization_id: typing.Optional[str] = OMIT,
575
596
  request_options: typing.Optional[RequestOptions] = None,
576
597
  ) -> AppVariantResponse:
577
598
  """
@@ -597,6 +618,10 @@ class AppsClient:
597
618
 
598
619
  project_id : typing.Optional[str]
599
620
 
621
+ workspace_id : typing.Optional[str]
622
+
623
+ organization_id : typing.Optional[str]
624
+
600
625
  request_options : typing.Optional[RequestOptions]
601
626
  Request-specific configuration.
602
627
 
@@ -626,7 +651,12 @@ class AppsClient:
626
651
  "app_name": app_name,
627
652
  "template_id": template_id,
628
653
  "project_id": project_id,
654
+ "workspace_id": workspace_id,
629
655
  "env_vars": env_vars,
656
+ "organization_id": organization_id,
657
+ },
658
+ headers={
659
+ "content-type": "application/json",
630
660
  },
631
661
  request_options=request_options,
632
662
  omit=OMIT,
@@ -752,7 +782,7 @@ class AppsClient:
752
782
  base_url="https://yourhost.com/path/to/api",
753
783
  )
754
784
  client.apps.environment_revisions(
755
- app_id="string",
785
+ app_id="app_id",
756
786
  environment_name={"key": "value"},
757
787
  )
758
788
  """
@@ -1005,7 +1035,9 @@ class AsyncAppsClient:
1005
1035
  _response = await self._client_wrapper.httpx_client.request(
1006
1036
  "apps",
1007
1037
  method="GET",
1008
- params={"app_name": app_name},
1038
+ params={
1039
+ "app_name": app_name,
1040
+ },
1009
1041
  request_options=request_options,
1010
1042
  )
1011
1043
  try:
@@ -1037,13 +1069,15 @@ class AsyncAppsClient:
1037
1069
  *,
1038
1070
  app_name: str,
1039
1071
  project_id: typing.Optional[str] = OMIT,
1072
+ workspace_id: typing.Optional[str] = OMIT,
1073
+ organization_id: typing.Optional[str] = OMIT,
1040
1074
  request_options: typing.Optional[RequestOptions] = None,
1041
1075
  ) -> CreateAppOutput:
1042
1076
  """
1043
- Create a new app for a user.
1077
+ Create a new app for a user or organization.
1044
1078
 
1045
1079
  Args:
1046
- payload (CreateApp): The payload containing the app name.
1080
+ payload (CreateApp): The payload containing the app name and organization ID (optional).
1047
1081
  stoken_session (SessionContainer): The session container containing the user's session token.
1048
1082
 
1049
1083
  Returns:
@@ -1058,6 +1092,10 @@ class AsyncAppsClient:
1058
1092
 
1059
1093
  project_id : typing.Optional[str]
1060
1094
 
1095
+ workspace_id : typing.Optional[str]
1096
+
1097
+ organization_id : typing.Optional[str]
1098
+
1061
1099
  request_options : typing.Optional[RequestOptions]
1062
1100
  Request-specific configuration.
1063
1101
 
@@ -1092,6 +1130,11 @@ class AsyncAppsClient:
1092
1130
  json={
1093
1131
  "app_name": app_name,
1094
1132
  "project_id": project_id,
1133
+ "workspace_id": workspace_id,
1134
+ "organization_id": organization_id,
1135
+ },
1136
+ headers={
1137
+ "content-type": "application/json",
1095
1138
  },
1096
1139
  request_options=request_options,
1097
1140
  omit=OMIT,
@@ -1198,7 +1241,7 @@ class AsyncAppsClient:
1198
1241
  request_options: typing.Optional[RequestOptions] = None,
1199
1242
  ) -> UpdateAppOutput:
1200
1243
  """
1201
- Update an app for a user.
1244
+ Update an app for a user or organization.
1202
1245
 
1203
1246
  Args:
1204
1247
  app_id (str): The ID of the app.
@@ -1252,6 +1295,9 @@ class AsyncAppsClient:
1252
1295
  json={
1253
1296
  "app_name": app_name,
1254
1297
  },
1298
+ headers={
1299
+ "content-type": "application/json",
1300
+ },
1255
1301
  request_options=request_options,
1256
1302
  omit=OMIT,
1257
1303
  )
@@ -1359,6 +1405,9 @@ class AsyncAppsClient:
1359
1405
  "base_name": base_name,
1360
1406
  "config_name": config_name,
1361
1407
  },
1408
+ headers={
1409
+ "content-type": "application/json",
1410
+ },
1362
1411
  request_options=request_options,
1363
1412
  omit=OMIT,
1364
1413
  )
@@ -1393,6 +1442,8 @@ class AsyncAppsClient:
1393
1442
  template_id: str,
1394
1443
  env_vars: typing.Dict[str, str],
1395
1444
  project_id: typing.Optional[str] = OMIT,
1445
+ workspace_id: typing.Optional[str] = OMIT,
1446
+ organization_id: typing.Optional[str] = OMIT,
1396
1447
  request_options: typing.Optional[RequestOptions] = None,
1397
1448
  ) -> AppVariantResponse:
1398
1449
  """
@@ -1418,6 +1469,10 @@ class AsyncAppsClient:
1418
1469
 
1419
1470
  project_id : typing.Optional[str]
1420
1471
 
1472
+ workspace_id : typing.Optional[str]
1473
+
1474
+ organization_id : typing.Optional[str]
1475
+
1421
1476
  request_options : typing.Optional[RequestOptions]
1422
1477
  Request-specific configuration.
1423
1478
 
@@ -1455,7 +1510,12 @@ class AsyncAppsClient:
1455
1510
  "app_name": app_name,
1456
1511
  "template_id": template_id,
1457
1512
  "project_id": project_id,
1513
+ "workspace_id": workspace_id,
1458
1514
  "env_vars": env_vars,
1515
+ "organization_id": organization_id,
1516
+ },
1517
+ headers={
1518
+ "content-type": "application/json",
1459
1519
  },
1460
1520
  request_options=request_options,
1461
1521
  omit=OMIT,
@@ -1594,7 +1654,7 @@ class AsyncAppsClient:
1594
1654
 
1595
1655
  async def main() -> None:
1596
1656
  await client.apps.environment_revisions(
1597
- app_id="string",
1657
+ app_id="app_id",
1598
1658
  environment_name={"key": "value"},
1599
1659
  )
1600
1660