beamlit 0.0.20rc2__tar.gz → 0.0.20rc4__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (286) hide show
  1. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/PKG-INFO +1 -1
  2. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/pyproject.toml +1 -1
  3. beamlit-0.0.20rc4/src/beamlit/api/agents/delete_agent_history.py +155 -0
  4. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/get_agent_deployment.py +1 -22
  5. beamlit-0.0.20rc4/src/beamlit/api/agents/get_agent_environment_logs.py +151 -0
  6. beamlit-0.0.20rc4/src/beamlit/api/agents/get_agent_history.py +155 -0
  7. beamlit-0.0.20rc4/src/beamlit/api/agents/list_agent_history.py +151 -0
  8. beamlit-0.0.20rc4/src/beamlit/api/agents/put_agent_history.py +181 -0
  9. beamlit-0.0.20rc4/src/beamlit/api/functions/get_function_environment_logs.py +151 -0
  10. beamlit-0.0.20rc4/src/beamlit/api/models/get_model_environment_logs.py +155 -0
  11. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/common/generate.py +8 -3
  12. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/common/settings.py +1 -6
  13. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/__init__.py +28 -30
  14. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/acl.py +2 -0
  15. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent.py +2 -0
  16. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_chain.py +2 -0
  17. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_configuration.py +2 -0
  18. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_deployment.py +44 -99
  19. beamlit-0.0.20rc4/src/beamlit/models/agent_deployment_configuration.py +45 -0
  20. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_deployment_history.py +15 -46
  21. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_deployment_history_event.py +24 -78
  22. beamlit-0.0.20rc4/src/beamlit/models/agent_deployment_pod_template.py +45 -0
  23. beamlit-0.0.20rc4/src/beamlit/models/agent_history.py +165 -0
  24. beamlit-0.0.20rc4/src/beamlit/models/agent_history_event.py +131 -0
  25. beamlit-0.0.20rc4/src/beamlit/models/agent_metadata.py +144 -0
  26. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_release.py +2 -0
  27. beamlit-0.0.20rc4/src/beamlit/models/agent_spec.py +238 -0
  28. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_with_deployments.py +2 -0
  29. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/api_key.py +2 -0
  30. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/authentication_provider_model.py +2 -0
  31. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/authentication_provider_organization.py +2 -0
  32. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/configuration.py +2 -0
  33. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/continent.py +2 -0
  34. beamlit-0.0.20rc4/src/beamlit/models/core_spec.py +179 -0
  35. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/country.py +2 -0
  36. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/create_api_key_for_service_account_body.py +2 -0
  37. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/create_workspace_service_account_body.py +2 -0
  38. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/create_workspace_service_account_response_200.py +2 -0
  39. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/delete_workspace_service_account_response_200.py +2 -0
  40. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/deployment_configuration.py +2 -0
  41. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/deployment_configurations.py +2 -0
  42. beamlit-0.0.20rc4/src/beamlit/models/deployment_serverless_config.py +131 -0
  43. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/environment.py +2 -0
  44. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/environment_metrics.py +2 -0
  45. beamlit-0.0.20rc4/src/beamlit/models/environment_spec.py +61 -0
  46. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/flavor.py +2 -0
  47. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function.py +2 -0
  48. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_configuration.py +2 -0
  49. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_deployment.py +44 -99
  50. beamlit-0.0.20rc4/src/beamlit/models/function_deployment_configuration.py +45 -0
  51. beamlit-0.0.20rc4/src/beamlit/models/function_deployment_pod_template.py +45 -0
  52. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_kit.py +2 -0
  53. beamlit-0.0.20rc4/src/beamlit/models/function_metadata.py +144 -0
  54. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_provider_ref.py +2 -0
  55. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_release.py +2 -0
  56. beamlit-0.0.20rc4/src/beamlit/models/function_spec.py +240 -0
  57. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_with_deployments.py +2 -0
  58. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/get_workspace_service_accounts_response_200_item.py +2 -0
  59. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/increase_and_rate_metric.py +2 -0
  60. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/integration.py +2 -0
  61. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/integration_config.py +2 -0
  62. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/integration_connection.py +2 -0
  63. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/integration_connection_config.py +2 -0
  64. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/integration_connection_secret.py +2 -0
  65. beamlit-0.0.20rc4/src/beamlit/models/integration_connection_spec.py +99 -0
  66. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/integration_model.py +2 -0
  67. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/integration_secret.py +2 -0
  68. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/invite_workspace_user_body.py +2 -0
  69. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/labels_type_0.py +2 -0
  70. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/location.py +2 -0
  71. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/location_response.py +2 -0
  72. beamlit-0.0.20rc4/src/beamlit/models/metadata.py +135 -0
  73. beamlit-0.0.20rc4/src/beamlit/models/metadata_labels.py +43 -0
  74. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/metric.py +2 -0
  75. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/metrics.py +2 -0
  76. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model.py +2 -0
  77. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_deployment.py +66 -85
  78. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_deployment_log.py +2 -0
  79. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_deployment_metrics.py +2 -0
  80. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_deployment_metrics_inference_per_second_per_region.py +2 -0
  81. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_deployment_metrics_query_per_second_per_region_per_code.py +2 -0
  82. beamlit-0.0.20rc4/src/beamlit/models/model_deployment_pod_template.py +45 -0
  83. beamlit-0.0.20rc4/src/beamlit/models/model_metadata.py +144 -0
  84. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_metrics.py +2 -0
  85. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_provider.py +2 -0
  86. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_provider_ref.py +2 -0
  87. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_release.py +2 -0
  88. beamlit-0.0.20rc4/src/beamlit/models/model_spec.py +188 -0
  89. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_with_deployments.py +2 -0
  90. beamlit-0.0.20rc4/src/beamlit/models/owner_fields.py +68 -0
  91. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/pending_invitation.py +2 -0
  92. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/pending_invitation_accept.py +2 -0
  93. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/pending_invitation_render.py +2 -0
  94. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/pending_invitation_render_invited_by.py +2 -0
  95. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/pending_invitation_render_workspace.py +2 -0
  96. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/pending_invitation_workspace_details.py +2 -0
  97. beamlit-0.0.20rc4/src/beamlit/models/pod_template_spec.py +43 -0
  98. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/policy.py +36 -8
  99. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/policy_location.py +2 -0
  100. beamlit-0.0.20rc4/src/beamlit/models/policy_spec.py +119 -0
  101. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/provider_config.py +2 -0
  102. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/qps.py +2 -0
  103. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/resource_deployment_log.py +2 -0
  104. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/resource_deployment_metrics.py +70 -155
  105. beamlit-0.0.20rc4/src/beamlit/models/resource_deployment_metrics_inference_per_region.py +77 -0
  106. beamlit-0.0.20rc4/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region.py +77 -0
  107. beamlit-0.0.20rc4/src/beamlit/models/resource_deployment_metrics_query_per_region_per_code.py +75 -0
  108. beamlit-0.0.20rc4/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code.py +75 -0
  109. beamlit-0.0.20rc4/src/beamlit/models/resource_environment_metrics.py +172 -0
  110. beamlit-0.0.20rc4/src/beamlit/models/resource_environment_metrics_inference_per_second_per_region.py +75 -0
  111. beamlit-0.0.20rc4/src/beamlit/models/resource_environment_metrics_query_per_second_per_region_per_code.py +73 -0
  112. beamlit-0.0.20rc4/src/beamlit/models/resource_log.py +68 -0
  113. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/resource_metrics.py +2 -0
  114. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/runtime.py +14 -29
  115. beamlit-0.0.20rc4/src/beamlit/models/runtime_readiness_probe.py +45 -0
  116. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/runtime_resources.py +2 -0
  117. beamlit-0.0.20rc4/src/beamlit/models/runtime_type_0.py +111 -0
  118. beamlit-0.0.20rc4/src/beamlit/models/runtime_type_0_readiness_probe.py +43 -0
  119. beamlit-0.0.20rc4/src/beamlit/models/runtime_type_0_readiness_probe_type_0.py +43 -0
  120. beamlit-0.0.20rc4/src/beamlit/models/runtime_type_0_resources.py +59 -0
  121. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/serverless_config.py +2 -0
  122. beamlit-0.0.20rc4/src/beamlit/models/spec_configuration.py +68 -0
  123. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/standard_fields_dynamo_db.py +2 -0
  124. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_agent.py +15 -29
  125. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_agent_configuration.py +2 -0
  126. beamlit-0.0.20rc4/src/beamlit/models/store_agent_labels.py +45 -0
  127. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_configuration.py +6 -15
  128. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_configuration_option.py +7 -18
  129. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_function.py +15 -29
  130. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_function_configuration.py +2 -0
  131. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_function_kit.py +2 -0
  132. beamlit-0.0.20rc4/src/beamlit/models/store_function_labels.py +45 -0
  133. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_function_parameter.py +2 -0
  134. beamlit-0.0.20rc4/src/beamlit/models/time_fields.py +68 -0
  135. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/update_workspace_service_account_body.py +2 -0
  136. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/update_workspace_service_account_response_200.py +2 -0
  137. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/update_workspace_user_role_body.py +2 -0
  138. beamlit-0.0.20rc4/src/beamlit/models/websocket_channel.py +86 -0
  139. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/workspace.py +2 -0
  140. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/workspace_labels.py +2 -0
  141. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/workspace_user.py +2 -0
  142. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/main.py +3 -4
  143. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/.gitignore +0 -0
  144. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/README.md +0 -0
  145. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/beamlit.yaml +0 -0
  146. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/__init__.py +0 -0
  147. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/__init__.py +0 -0
  148. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/__init__.py +0 -0
  149. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/create_agent.py +0 -0
  150. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/create_agent_release.py +0 -0
  151. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/delete_agent.py +0 -0
  152. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/delete_agent_deployment.py +0 -0
  153. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/delete_agent_deployment_history.py +0 -0
  154. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/get_agent.py +0 -0
  155. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/get_agent_deployment_history.py +0 -0
  156. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/get_agent_deployment_logs.py +0 -0
  157. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/get_agent_deployment_metrics.py +0 -0
  158. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/get_agent_metrics.py +0 -0
  159. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/list_agent_deployment_history.py +0 -0
  160. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/list_agent_deployments.py +0 -0
  161. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/list_agents.py +0 -0
  162. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/put_agent_deployment.py +0 -0
  163. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/put_agent_deployment_history.py +0 -0
  164. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/agents/update_agent.py +0 -0
  165. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/configurations/__init__.py +0 -0
  166. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/configurations/get_configuration.py +0 -0
  167. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/environments/__init__.py +0 -0
  168. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/environments/create_environment.py +0 -0
  169. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/environments/delete_environment.py +0 -0
  170. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/environments/get_environment.py +0 -0
  171. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/environments/get_environment_metrics.py +0 -0
  172. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/environments/list_environments.py +0 -0
  173. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/environments/update_environment.py +0 -0
  174. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/__init__.py +0 -0
  175. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/create_function.py +0 -0
  176. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/create_function_release.py +0 -0
  177. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/delete_function.py +0 -0
  178. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/delete_function_deployment.py +0 -0
  179. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/get_function.py +0 -0
  180. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/get_function_deployment.py +0 -0
  181. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/get_function_deployment_logs.py +0 -0
  182. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/get_function_deployment_metrics.py +0 -0
  183. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/get_function_metrics.py +0 -0
  184. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/list_function_deployments.py +0 -0
  185. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/list_functions.py +0 -0
  186. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/put_function_deployment.py +0 -0
  187. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/functions/update_function.py +0 -0
  188. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/history/__init__.py +0 -0
  189. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/history/get_agents_history.py +0 -0
  190. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/history/list_agents_history.py +0 -0
  191. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/__init__.py +0 -0
  192. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/create_integration_connection.py +0 -0
  193. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/delete_integration_connection.py +0 -0
  194. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/get_integration.py +0 -0
  195. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/get_integration_connection.py +0 -0
  196. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/get_integration_connection_model.py +0 -0
  197. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/get_integration_model.py +0 -0
  198. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/list_integration_connection_models.py +0 -0
  199. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/list_integration_connections.py +0 -0
  200. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/list_integration_models.py +0 -0
  201. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/integrations/update_integration_connection.py +0 -0
  202. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/invitations/__init__.py +0 -0
  203. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/invitations/list_all_pending_invitations.py +0 -0
  204. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/locations/__init__.py +0 -0
  205. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/locations/list_locations.py +0 -0
  206. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/metrics/__init__.py +0 -0
  207. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/metrics/get_metrics.py +0 -0
  208. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/model_providers/__init__.py +0 -0
  209. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/model_providers/create_model_provider.py +0 -0
  210. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/model_providers/delete_model_provider.py +0 -0
  211. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/model_providers/get_model_provider.py +0 -0
  212. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/model_providers/list_model_providers.py +0 -0
  213. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/model_providers/update_model_provider.py +0 -0
  214. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/__init__.py +0 -0
  215. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/create_model.py +0 -0
  216. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/delete_model.py +0 -0
  217. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/delete_model_deployment.py +0 -0
  218. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/get_model.py +0 -0
  219. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/get_model_deployment.py +0 -0
  220. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/get_model_deployment_logs.py +0 -0
  221. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/get_model_deployment_metrics.py +0 -0
  222. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/get_model_metrics.py +0 -0
  223. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/list_model_deployments.py +0 -0
  224. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/list_models.py +0 -0
  225. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/put_model_deployment.py +0 -0
  226. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/release_model.py +0 -0
  227. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/models/update_model.py +0 -0
  228. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/policies/__init__.py +0 -0
  229. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/policies/create_policy.py +0 -0
  230. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/policies/delete_policy.py +0 -0
  231. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/policies/get_policy.py +0 -0
  232. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/policies/list_policies.py +0 -0
  233. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/policies/update_policy.py +0 -0
  234. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/__init__.py +0 -0
  235. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/create_api_key_for_service_account.py +0 -0
  236. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/create_workspace_service_account.py +0 -0
  237. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/delete_api_key_for_service_account.py +0 -0
  238. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/delete_workspace_service_account.py +0 -0
  239. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/get_workspace_service_accounts.py +0 -0
  240. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/list_api_keys_for_service_account.py +0 -0
  241. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/service_accounts/update_workspace_service_account.py +0 -0
  242. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/store/__init__.py +0 -0
  243. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/store/get_store_agent.py +0 -0
  244. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/store/get_store_function.py +0 -0
  245. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/store/list_store_agents.py +0 -0
  246. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/store/list_store_functions.py +0 -0
  247. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/__init__.py +0 -0
  248. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/accept_workspace_invitation.py +0 -0
  249. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/create_worspace.py +0 -0
  250. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/decline_workspace_invitation.py +0 -0
  251. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/delete_workspace.py +0 -0
  252. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/get_workspace.py +0 -0
  253. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/invite_workspace_user.py +0 -0
  254. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/leave_workspace.py +0 -0
  255. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/list_workspace_users.py +0 -0
  256. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/list_workspaces.py +0 -0
  257. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/remove_workspace_user.py +0 -0
  258. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/update_workspace.py +0 -0
  259. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/api/workspaces/update_workspace_user_role.py +0 -0
  260. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/authentication/__init__.py +0 -0
  261. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/authentication/apikey.py +0 -0
  262. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/authentication/authentication.py +0 -0
  263. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/authentication/clientcredentials.py +0 -0
  264. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/authentication/credentials.py +0 -0
  265. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/authentication/device_mode.py +0 -0
  266. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/client.py +0 -0
  267. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/common/logger.py +0 -0
  268. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/common/utils.py +0 -0
  269. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/errors.py +0 -0
  270. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_deployment_configuration_type_0.py +0 -0
  271. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/agent_deployment_pod_template_type_0.py +0 -0
  272. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/deployment_serverless_config_type_0.py +0 -0
  273. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_deployment_configuration_type_0.py +0 -0
  274. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/function_deployment_pod_template_type_0.py +0 -0
  275. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/model_deployment_pod_template_type_0.py +0 -0
  276. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/resource_deployment_metrics_inference_per_region_type_0.py +0 -0
  277. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/resource_deployment_metrics_inference_per_second_per_region_type_0.py +0 -0
  278. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/resource_deployment_metrics_query_per_region_per_code_type_0.py +0 -0
  279. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/resource_deployment_metrics_query_per_second_per_region_per_code_type_0.py +0 -0
  280. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/runtime_readiness_probe_type_0.py +0 -0
  281. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_agent_labels_type_0.py +0 -0
  282. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/models/store_function_labels_type_0.py +0 -0
  283. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/py.typed +0 -0
  284. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/run.py +0 -0
  285. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/src/beamlit/types.py +0 -0
  286. {beamlit-0.0.20rc2 → beamlit-0.0.20rc4}/uv.lock +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: beamlit
3
- Version: 0.0.20rc2
3
+ Version: 0.0.20rc4
4
4
  Summary: Add your description here
5
5
  Author-email: cploujoux <ch.ploujoux@gmail.com>
6
6
  Requires-Python: >=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "beamlit"
3
- version = "0.0.20.pre-2"
3
+ version = "0.0.20.pre-4"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -0,0 +1,155 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.agent_history import AgentHistory
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ agent_name: str,
14
+ request_id: str,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "delete",
18
+ "url": f"/agents/{agent_name}/history/{request_id}",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[AgentHistory]:
25
+ if response.status_code == 200:
26
+ response_200 = AgentHistory.from_dict(response.json())
27
+
28
+ return response_200
29
+ if client.raise_on_unexpected_status:
30
+ raise errors.UnexpectedStatus(response.status_code, response.content)
31
+ else:
32
+ return None
33
+
34
+
35
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[AgentHistory]:
36
+ return Response(
37
+ status_code=HTTPStatus(response.status_code),
38
+ content=response.content,
39
+ headers=response.headers,
40
+ parsed=_parse_response(client=client, response=response),
41
+ )
42
+
43
+
44
+ def sync_detailed(
45
+ agent_name: str,
46
+ request_id: str,
47
+ *,
48
+ client: AuthenticatedClient,
49
+ ) -> Response[AgentHistory]:
50
+ """
51
+ Args:
52
+ agent_name (str):
53
+ request_id (str):
54
+
55
+ Raises:
56
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
57
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
58
+
59
+ Returns:
60
+ Response[AgentHistory]
61
+ """
62
+
63
+ kwargs = _get_kwargs(
64
+ agent_name=agent_name,
65
+ request_id=request_id,
66
+ )
67
+
68
+ response = client.get_httpx_client().request(
69
+ **kwargs,
70
+ )
71
+
72
+ return _build_response(client=client, response=response)
73
+
74
+
75
+ def sync(
76
+ agent_name: str,
77
+ request_id: str,
78
+ *,
79
+ client: AuthenticatedClient,
80
+ ) -> Optional[AgentHistory]:
81
+ """
82
+ Args:
83
+ agent_name (str):
84
+ request_id (str):
85
+
86
+ Raises:
87
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
88
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
89
+
90
+ Returns:
91
+ AgentHistory
92
+ """
93
+
94
+ return sync_detailed(
95
+ agent_name=agent_name,
96
+ request_id=request_id,
97
+ client=client,
98
+ ).parsed
99
+
100
+
101
+ async def asyncio_detailed(
102
+ agent_name: str,
103
+ request_id: str,
104
+ *,
105
+ client: AuthenticatedClient,
106
+ ) -> Response[AgentHistory]:
107
+ """
108
+ Args:
109
+ agent_name (str):
110
+ request_id (str):
111
+
112
+ Raises:
113
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
115
+
116
+ Returns:
117
+ Response[AgentHistory]
118
+ """
119
+
120
+ kwargs = _get_kwargs(
121
+ agent_name=agent_name,
122
+ request_id=request_id,
123
+ )
124
+
125
+ response = await client.get_async_httpx_client().request(**kwargs)
126
+
127
+ return _build_response(client=client, response=response)
128
+
129
+
130
+ async def asyncio(
131
+ agent_name: str,
132
+ request_id: str,
133
+ *,
134
+ client: AuthenticatedClient,
135
+ ) -> Optional[AgentHistory]:
136
+ """
137
+ Args:
138
+ agent_name (str):
139
+ request_id (str):
140
+
141
+ Raises:
142
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
143
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
144
+
145
+ Returns:
146
+ AgentHistory
147
+ """
148
+
149
+ return (
150
+ await asyncio_detailed(
151
+ agent_name=agent_name,
152
+ request_id=request_id,
153
+ client=client,
154
+ )
155
+ ).parsed
@@ -6,25 +6,16 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.agent_deployment import AgentDeployment
9
- from ...types import UNSET, Response, Unset
9
+ from ...types import Response
10
10
 
11
11
 
12
12
  def _get_kwargs(
13
13
  agent_name: str,
14
14
  environment_name: str,
15
- *,
16
- configuration: Union[Unset, bool] = UNSET,
17
15
  ) -> dict[str, Any]:
18
- params: dict[str, Any] = {}
19
-
20
- params["configuration"] = configuration
21
-
22
- params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
23
-
24
16
  _kwargs: dict[str, Any] = {
25
17
  "method": "get",
26
18
  "url": f"/agents/{agent_name}/deployments/{environment_name}",
27
- "params": params,
28
19
  }
29
20
 
30
21
  return _kwargs
@@ -59,14 +50,12 @@ def sync_detailed(
59
50
  environment_name: str,
60
51
  *,
61
52
  client: AuthenticatedClient,
62
- configuration: Union[Unset, bool] = UNSET,
63
53
  ) -> Response[AgentDeployment]:
64
54
  """Get agent deployment by environment name
65
55
 
66
56
  Args:
67
57
  agent_name (str):
68
58
  environment_name (str):
69
- configuration (Union[Unset, bool]):
70
59
 
71
60
  Raises:
72
61
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -79,7 +68,6 @@ def sync_detailed(
79
68
  kwargs = _get_kwargs(
80
69
  agent_name=agent_name,
81
70
  environment_name=environment_name,
82
- configuration=configuration,
83
71
  )
84
72
 
85
73
  response = client.get_httpx_client().request(
@@ -94,14 +82,12 @@ def sync(
94
82
  environment_name: str,
95
83
  *,
96
84
  client: AuthenticatedClient,
97
- configuration: Union[Unset, bool] = UNSET,
98
85
  ) -> Optional[AgentDeployment]:
99
86
  """Get agent deployment by environment name
100
87
 
101
88
  Args:
102
89
  agent_name (str):
103
90
  environment_name (str):
104
- configuration (Union[Unset, bool]):
105
91
 
106
92
  Raises:
107
93
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -115,7 +101,6 @@ def sync(
115
101
  agent_name=agent_name,
116
102
  environment_name=environment_name,
117
103
  client=client,
118
- configuration=configuration,
119
104
  ).parsed
120
105
 
121
106
 
@@ -124,14 +109,12 @@ async def asyncio_detailed(
124
109
  environment_name: str,
125
110
  *,
126
111
  client: AuthenticatedClient,
127
- configuration: Union[Unset, bool] = UNSET,
128
112
  ) -> Response[AgentDeployment]:
129
113
  """Get agent deployment by environment name
130
114
 
131
115
  Args:
132
116
  agent_name (str):
133
117
  environment_name (str):
134
- configuration (Union[Unset, bool]):
135
118
 
136
119
  Raises:
137
120
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -144,7 +127,6 @@ async def asyncio_detailed(
144
127
  kwargs = _get_kwargs(
145
128
  agent_name=agent_name,
146
129
  environment_name=environment_name,
147
- configuration=configuration,
148
130
  )
149
131
 
150
132
  response = await client.get_async_httpx_client().request(**kwargs)
@@ -157,14 +139,12 @@ async def asyncio(
157
139
  environment_name: str,
158
140
  *,
159
141
  client: AuthenticatedClient,
160
- configuration: Union[Unset, bool] = UNSET,
161
142
  ) -> Optional[AgentDeployment]:
162
143
  """Get agent deployment by environment name
163
144
 
164
145
  Args:
165
146
  agent_name (str):
166
147
  environment_name (str):
167
- configuration (Union[Unset, bool]):
168
148
 
169
149
  Raises:
170
150
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -179,6 +159,5 @@ async def asyncio(
179
159
  agent_name=agent_name,
180
160
  environment_name=environment_name,
181
161
  client=client,
182
- configuration=configuration,
183
162
  )
184
163
  ).parsed
@@ -0,0 +1,151 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, List, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.resource_log import ResourceLog
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ agent_name: str,
14
+ ) -> dict[str, Any]:
15
+ _kwargs: dict[str, Any] = {
16
+ "method": "get",
17
+ "url": f"/agents/{agent_name}/logs",
18
+ }
19
+
20
+ return _kwargs
21
+
22
+
23
+ def _parse_response(
24
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
25
+ ) -> Optional[List["ResourceLog"]]:
26
+ if response.status_code == 200:
27
+ response_200 = []
28
+ _response_200 = response.json()
29
+ for response_200_item_data in _response_200:
30
+ response_200_item = ResourceLog.from_dict(response_200_item_data)
31
+
32
+ response_200.append(response_200_item)
33
+
34
+ return response_200
35
+ if client.raise_on_unexpected_status:
36
+ raise errors.UnexpectedStatus(response.status_code, response.content)
37
+ else:
38
+ return None
39
+
40
+
41
+ def _build_response(
42
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
43
+ ) -> Response[List["ResourceLog"]]:
44
+ return Response(
45
+ status_code=HTTPStatus(response.status_code),
46
+ content=response.content,
47
+ headers=response.headers,
48
+ parsed=_parse_response(client=client, response=response),
49
+ )
50
+
51
+
52
+ def sync_detailed(
53
+ agent_name: str,
54
+ *,
55
+ client: AuthenticatedClient,
56
+ ) -> Response[List["ResourceLog"]]:
57
+ """
58
+ Args:
59
+ agent_name (str):
60
+
61
+ Raises:
62
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
63
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
64
+
65
+ Returns:
66
+ Response[List['ResourceLog']]
67
+ """
68
+
69
+ kwargs = _get_kwargs(
70
+ agent_name=agent_name,
71
+ )
72
+
73
+ response = client.get_httpx_client().request(
74
+ **kwargs,
75
+ )
76
+
77
+ return _build_response(client=client, response=response)
78
+
79
+
80
+ def sync(
81
+ agent_name: str,
82
+ *,
83
+ client: AuthenticatedClient,
84
+ ) -> Optional[List["ResourceLog"]]:
85
+ """
86
+ Args:
87
+ agent_name (str):
88
+
89
+ Raises:
90
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
91
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
92
+
93
+ Returns:
94
+ List['ResourceLog']
95
+ """
96
+
97
+ return sync_detailed(
98
+ agent_name=agent_name,
99
+ client=client,
100
+ ).parsed
101
+
102
+
103
+ async def asyncio_detailed(
104
+ agent_name: str,
105
+ *,
106
+ client: AuthenticatedClient,
107
+ ) -> Response[List["ResourceLog"]]:
108
+ """
109
+ Args:
110
+ agent_name (str):
111
+
112
+ Raises:
113
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
115
+
116
+ Returns:
117
+ Response[List['ResourceLog']]
118
+ """
119
+
120
+ kwargs = _get_kwargs(
121
+ agent_name=agent_name,
122
+ )
123
+
124
+ response = await client.get_async_httpx_client().request(**kwargs)
125
+
126
+ return _build_response(client=client, response=response)
127
+
128
+
129
+ async def asyncio(
130
+ agent_name: str,
131
+ *,
132
+ client: AuthenticatedClient,
133
+ ) -> Optional[List["ResourceLog"]]:
134
+ """
135
+ Args:
136
+ agent_name (str):
137
+
138
+ Raises:
139
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
140
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
141
+
142
+ Returns:
143
+ List['ResourceLog']
144
+ """
145
+
146
+ return (
147
+ await asyncio_detailed(
148
+ agent_name=agent_name,
149
+ client=client,
150
+ )
151
+ ).parsed
@@ -0,0 +1,155 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.agent_history import AgentHistory
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ agent_name: str,
14
+ request_id: str,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "get",
18
+ "url": f"/agents/{agent_name}/history/{request_id}",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[AgentHistory]:
25
+ if response.status_code == 200:
26
+ response_200 = AgentHistory.from_dict(response.json())
27
+
28
+ return response_200
29
+ if client.raise_on_unexpected_status:
30
+ raise errors.UnexpectedStatus(response.status_code, response.content)
31
+ else:
32
+ return None
33
+
34
+
35
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[AgentHistory]:
36
+ return Response(
37
+ status_code=HTTPStatus(response.status_code),
38
+ content=response.content,
39
+ headers=response.headers,
40
+ parsed=_parse_response(client=client, response=response),
41
+ )
42
+
43
+
44
+ def sync_detailed(
45
+ agent_name: str,
46
+ request_id: str,
47
+ *,
48
+ client: AuthenticatedClient,
49
+ ) -> Response[AgentHistory]:
50
+ """
51
+ Args:
52
+ agent_name (str):
53
+ request_id (str):
54
+
55
+ Raises:
56
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
57
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
58
+
59
+ Returns:
60
+ Response[AgentHistory]
61
+ """
62
+
63
+ kwargs = _get_kwargs(
64
+ agent_name=agent_name,
65
+ request_id=request_id,
66
+ )
67
+
68
+ response = client.get_httpx_client().request(
69
+ **kwargs,
70
+ )
71
+
72
+ return _build_response(client=client, response=response)
73
+
74
+
75
+ def sync(
76
+ agent_name: str,
77
+ request_id: str,
78
+ *,
79
+ client: AuthenticatedClient,
80
+ ) -> Optional[AgentHistory]:
81
+ """
82
+ Args:
83
+ agent_name (str):
84
+ request_id (str):
85
+
86
+ Raises:
87
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
88
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
89
+
90
+ Returns:
91
+ AgentHistory
92
+ """
93
+
94
+ return sync_detailed(
95
+ agent_name=agent_name,
96
+ request_id=request_id,
97
+ client=client,
98
+ ).parsed
99
+
100
+
101
+ async def asyncio_detailed(
102
+ agent_name: str,
103
+ request_id: str,
104
+ *,
105
+ client: AuthenticatedClient,
106
+ ) -> Response[AgentHistory]:
107
+ """
108
+ Args:
109
+ agent_name (str):
110
+ request_id (str):
111
+
112
+ Raises:
113
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
115
+
116
+ Returns:
117
+ Response[AgentHistory]
118
+ """
119
+
120
+ kwargs = _get_kwargs(
121
+ agent_name=agent_name,
122
+ request_id=request_id,
123
+ )
124
+
125
+ response = await client.get_async_httpx_client().request(**kwargs)
126
+
127
+ return _build_response(client=client, response=response)
128
+
129
+
130
+ async def asyncio(
131
+ agent_name: str,
132
+ request_id: str,
133
+ *,
134
+ client: AuthenticatedClient,
135
+ ) -> Optional[AgentHistory]:
136
+ """
137
+ Args:
138
+ agent_name (str):
139
+ request_id (str):
140
+
141
+ Raises:
142
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
143
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
144
+
145
+ Returns:
146
+ AgentHistory
147
+ """
148
+
149
+ return (
150
+ await asyncio_detailed(
151
+ agent_name=agent_name,
152
+ request_id=request_id,
153
+ client=client,
154
+ )
155
+ ).parsed