phenoml 0.0.2__tar.gz → 0.0.5__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 phenoml might be problematic. Click here for more details.

Files changed (199) hide show
  1. phenoml-0.0.5/LICENSE +21 -0
  2. {phenoml-0.0.2 → phenoml-0.0.5}/PKG-INFO +1 -1
  3. {phenoml-0.0.2 → phenoml-0.0.5}/pyproject.toml +1 -1
  4. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/__init__.py +6 -8
  5. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/client.py +45 -75
  6. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/raw_client.py +37 -77
  7. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/__init__.py +6 -8
  8. phenoml-0.0.5/src/phenoml/agent/types/agent_create_request.py +53 -0
  9. phenoml-0.0.5/src/phenoml/agent/types/agent_create_request_provider.py +5 -0
  10. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_template.py +3 -6
  11. phenoml-0.0.5/src/phenoml/agent/types/agent_template_provider.py +5 -0
  12. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/client.py +6 -0
  13. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/client_wrapper.py +2 -2
  14. phenoml-0.0.5/src/phenoml/fhir/__init__.py +36 -0
  15. phenoml-0.0.5/src/phenoml/fhir/client.py +970 -0
  16. phenoml-0.0.5/src/phenoml/fhir/errors/__init__.py +10 -0
  17. phenoml-0.0.5/src/phenoml/fhir/errors/not_found_error.py +10 -0
  18. phenoml-0.0.5/src/phenoml/fhir/raw_client.py +1385 -0
  19. phenoml-0.0.5/src/phenoml/fhir/types/__init__.py +29 -0
  20. phenoml-0.0.2/src/phenoml/agent/types/chat_fhir_client_config.py → phenoml-0.0.5/src/phenoml/fhir/types/error_response.py +11 -6
  21. phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle.py +43 -0
  22. phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item.py +34 -0
  23. phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item_request.py +25 -0
  24. phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item_request_method.py +5 -0
  25. phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item_response.py +24 -0
  26. phenoml-0.0.5/src/phenoml/fhir/types/fhir_patch_request_body_item.py +36 -0
  27. phenoml-0.0.5/src/phenoml/fhir/types/fhir_patch_request_body_item_op.py +7 -0
  28. phenoml-0.0.5/src/phenoml/fhir/types/fhir_resource.py +40 -0
  29. phenoml-0.0.2/src/phenoml/agent/types/agent_fhir_config.py → phenoml-0.0.5/src/phenoml/fhir/types/fhir_resource_meta.py +8 -11
  30. phenoml-0.0.5/src/phenoml/fhir/types/fhir_search_response.py +8 -0
  31. phenoml-0.0.5/src/phenoml/fhir_provider/__init__.py +43 -0
  32. phenoml-0.0.5/src/phenoml/fhir_provider/client.py +731 -0
  33. phenoml-0.0.5/src/phenoml/fhir_provider/errors/__init__.py +11 -0
  34. phenoml-0.0.5/src/phenoml/fhir_provider/errors/not_found_error.py +10 -0
  35. phenoml-0.0.5/src/phenoml/fhir_provider/raw_client.py +1445 -0
  36. phenoml-0.0.5/src/phenoml/fhir_provider/types/__init__.py +35 -0
  37. phenoml-0.0.5/src/phenoml/fhir_provider/types/auth_method.py +7 -0
  38. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_auth_config.py +53 -0
  39. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_delete_response.py +20 -0
  40. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_list_response.py +22 -0
  41. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_remove_auth_config_response.py +22 -0
  42. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_response.py +22 -0
  43. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_set_active_auth_config_response.py +22 -0
  44. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_template.py +66 -0
  45. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_query_response.py +27 -0
  46. phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_query_response_data.py +5 -0
  47. phenoml-0.0.5/src/phenoml/fhir_provider/types/json_web_key.py +51 -0
  48. phenoml-0.0.5/src/phenoml/fhir_provider/types/provider.py +8 -0
  49. phenoml-0.0.5/src/phenoml/fhir_provider/types/service_account_key.py +35 -0
  50. phenoml-0.0.5/src/phenoml/fhir_provider/types/smart_configuration.py +46 -0
  51. phenoml-0.0.5/src/phenoml/lang2fhir/errors/bad_request_error.py +10 -0
  52. phenoml-0.0.5/src/phenoml/lang2fhir/errors/internal_server_error.py +10 -0
  53. phenoml-0.0.5/src/phenoml/lang2fhir/errors/unauthorized_error.py +10 -0
  54. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/__init__.py +0 -8
  55. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/client.py +24 -60
  56. phenoml-0.0.5/src/phenoml/tools/errors/bad_request_error.py +10 -0
  57. phenoml-0.0.5/src/phenoml/tools/errors/forbidden_error.py +10 -0
  58. phenoml-0.0.5/src/phenoml/tools/errors/internal_server_error.py +10 -0
  59. phenoml-0.0.5/src/phenoml/tools/errors/unauthorized_error.py +10 -0
  60. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/raw_client.py +18 -67
  61. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/__init__.py +0 -8
  62. phenoml-0.0.2/src/phenoml/agent/types/agent_provider.py +0 -7
  63. phenoml-0.0.2/src/phenoml/agent/types/provider_type.py +0 -5
  64. phenoml-0.0.2/src/phenoml/tools/types/cohort_request_provider.py +0 -5
  65. phenoml-0.0.2/src/phenoml/tools/types/fhir_client_config.py +0 -31
  66. phenoml-0.0.2/src/phenoml/tools/types/lang2fhir_and_create_request_provider.py +0 -7
  67. phenoml-0.0.2/src/phenoml/tools/types/lang2fhir_and_search_request_provider.py +0 -7
  68. {phenoml-0.0.2 → phenoml-0.0.5}/README.md +0 -0
  69. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/__init__.py +0 -0
  70. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/errors/__init__.py +0 -0
  71. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/errors/bad_request_error.py +0 -0
  72. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/errors/forbidden_error.py +0 -0
  73. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/errors/internal_server_error.py +0 -0
  74. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/errors/not_found_error.py +0 -0
  75. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/errors/unauthorized_error.py +0 -0
  76. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/prompts/__init__.py +0 -0
  77. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/prompts/client.py +0 -0
  78. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/prompts/raw_client.py +0 -0
  79. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/prompts/types/__init__.py +0 -0
  80. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/prompts/types/prompts_delete_response.py +0 -0
  81. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/prompts/types/prompts_list_response.py +0 -0
  82. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_chat_response.py +0 -0
  83. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_delete_response.py +0 -0
  84. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_get_chat_messages_request_order.py +0 -0
  85. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_get_chat_messages_response.py +0 -0
  86. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_list_response.py +0 -0
  87. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_prompts_response.py +0 -0
  88. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/agent_response.py +0 -0
  89. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/chat_message_template.py +0 -0
  90. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/chat_session_template.py +0 -0
  91. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/json_patch.py +0 -0
  92. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/json_patch_operation.py +0 -0
  93. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/json_patch_operation_op.py +0 -0
  94. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/prompt_template.py +0 -0
  95. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/agent/types/success_response.py +0 -0
  96. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/__init__.py +0 -0
  97. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/auth/__init__.py +0 -0
  98. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/auth/client.py +0 -0
  99. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/auth/raw_client.py +0 -0
  100. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/auth/types/__init__.py +0 -0
  101. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/auth/types/auth_generate_token_response.py +0 -0
  102. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/client.py +0 -0
  103. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/errors/__init__.py +0 -0
  104. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/errors/bad_request_error.py +0 -0
  105. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/errors/unauthorized_error.py +0 -0
  106. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/raw_client.py +0 -0
  107. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/types/__init__.py +0 -0
  108. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/types/bad_request_error_body.py +0 -0
  109. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/authtoken/types/unauthorized_error_body.py +0 -0
  110. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/__init__.py +0 -0
  111. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/client.py +0 -0
  112. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/errors/__init__.py +0 -0
  113. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/errors/bad_request_error.py +0 -0
  114. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/errors/internal_server_error.py +0 -0
  115. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/errors/unauthorized_error.py +0 -0
  116. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/raw_client.py +0 -0
  117. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/types/__init__.py +0 -0
  118. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/types/cohort_response.py +0 -0
  119. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/cohort/types/search_concept.py +0 -0
  120. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/__init__.py +0 -0
  121. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/client.py +0 -0
  122. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/errors/__init__.py +0 -0
  123. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/errors/bad_request_error.py +0 -0
  124. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/errors/conflict_error.py +0 -0
  125. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/errors/failed_dependency_error.py +0 -0
  126. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/errors/internal_server_error.py +0 -0
  127. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/errors/unauthorized_error.py +0 -0
  128. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/raw_client.py +0 -0
  129. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/__init__.py +0 -0
  130. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/bad_request_error_body.py +0 -0
  131. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_request_config.py +0 -0
  132. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response.py +0 -0
  133. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response_queries_item.py +0 -0
  134. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response_queries_item_code_extract_results_item.py +0 -0
  135. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response_queries_item_code_extract_results_item_codes_item.py +0 -0
  136. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/construe_upload_code_system_response.py +0 -0
  137. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/extract_codes_result.py +0 -0
  138. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/extract_request_config.py +0 -0
  139. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/extract_request_config_chunking_method.py +0 -0
  140. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/extract_request_system.py +0 -0
  141. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/extracted_code_result.py +0 -0
  142. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/internal_server_error_body.py +0 -0
  143. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/unauthorized_error_body.py +0 -0
  144. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/construe/types/upload_request_format.py +0 -0
  145. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/__init__.py +0 -0
  146. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/api_error.py +0 -0
  147. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/datetime_utils.py +0 -0
  148. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/file.py +0 -0
  149. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/force_multipart.py +0 -0
  150. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/http_client.py +0 -0
  151. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/http_response.py +0 -0
  152. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/jsonable_encoder.py +0 -0
  153. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/pydantic_utilities.py +0 -0
  154. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/query_encoder.py +0 -0
  155. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/remove_none_from_dict.py +0 -0
  156. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/request_options.py +0 -0
  157. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/core/serialization.py +0 -0
  158. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/environment.py +0 -0
  159. {phenoml-0.0.2/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir}/errors/bad_request_error.py +0 -0
  160. {phenoml-0.0.2/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir}/errors/internal_server_error.py +0 -0
  161. {phenoml-0.0.2/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir}/errors/unauthorized_error.py +0 -0
  162. {phenoml-0.0.2/src/phenoml/tools → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/bad_request_error.py +0 -0
  163. {phenoml-0.0.2/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/forbidden_error.py +0 -0
  164. {phenoml-0.0.2/src/phenoml/tools → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/internal_server_error.py +0 -0
  165. {phenoml-0.0.2/src/phenoml/tools → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/unauthorized_error.py +0 -0
  166. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/__init__.py +0 -0
  167. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/client.py +0 -0
  168. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/errors/__init__.py +0 -0
  169. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/errors/failed_dependency_error.py +0 -0
  170. {phenoml-0.0.2/src/phenoml/tools → phenoml-0.0.5/src/phenoml/lang2fhir}/errors/forbidden_error.py +0 -0
  171. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/raw_client.py +0 -0
  172. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/__init__.py +0 -0
  173. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/create_request_resource.py +0 -0
  174. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/document_request_file_type.py +0 -0
  175. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/document_request_resource.py +0 -0
  176. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/fhir_resource.py +0 -0
  177. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/lang2fhir_upload_profile_response.py +0 -0
  178. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/search_response.py +0 -0
  179. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/py.typed +0 -0
  180. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/errors/__init__.py +0 -0
  181. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/errors/failed_dependency_error.py +0 -0
  182. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/mcp_server/__init__.py +0 -0
  183. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/mcp_server/client.py +0 -0
  184. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/mcp_server/raw_client.py +0 -0
  185. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/mcp_server/tools/__init__.py +0 -0
  186. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/mcp_server/tools/client.py +0 -0
  187. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/mcp_server/tools/raw_client.py +0 -0
  188. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/cohort_response.py +0 -0
  189. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/lang2fhir_and_create_request_resource.py +0 -0
  190. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/lang2fhir_and_create_response.py +0 -0
  191. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/lang2fhir_and_search_response.py +0 -0
  192. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/mcp_server_response.py +0 -0
  193. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/mcp_server_response_data.py +0 -0
  194. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/mcp_server_tool_call_response.py +0 -0
  195. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/mcp_server_tool_response.py +0 -0
  196. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/mcp_server_tool_response_data.py +0 -0
  197. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/tools/types/search_concept.py +0 -0
  198. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/version.py +0 -0
  199. {phenoml-0.0.2 → phenoml-0.0.5}/src/phenoml/wrapper_client.py +0 -0
phenoml-0.0.5/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 PhenoML
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phenoml
3
- Version: 0.0.2
3
+ Version: 0.0.5
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Intended Audience :: Developers
@@ -3,7 +3,7 @@ name = "phenoml"
3
3
 
4
4
  [tool.poetry]
5
5
  name = "phenoml"
6
- version = "0.0.2"
6
+ version = "0.0.5"
7
7
  description = ""
8
8
  readme = "README.md"
9
9
  authors = []
@@ -4,23 +4,22 @@
4
4
 
5
5
  from .types import (
6
6
  AgentChatResponse,
7
+ AgentCreateRequest,
8
+ AgentCreateRequestProvider,
7
9
  AgentDeleteResponse,
8
- AgentFhirConfig,
9
10
  AgentGetChatMessagesRequestOrder,
10
11
  AgentGetChatMessagesResponse,
11
12
  AgentListResponse,
12
13
  AgentPromptsResponse,
13
- AgentProvider,
14
14
  AgentResponse,
15
15
  AgentTemplate,
16
- ChatFhirClientConfig,
16
+ AgentTemplateProvider,
17
17
  ChatMessageTemplate,
18
18
  ChatSessionTemplate,
19
19
  JsonPatch,
20
20
  JsonPatchOperation,
21
21
  JsonPatchOperationOp,
22
22
  PromptTemplate,
23
- ProviderType,
24
23
  SuccessResponse,
25
24
  )
26
25
  from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError, UnauthorizedError
@@ -29,17 +28,17 @@ from .prompts import PromptsDeleteResponse, PromptsListResponse
29
28
 
30
29
  __all__ = [
31
30
  "AgentChatResponse",
31
+ "AgentCreateRequest",
32
+ "AgentCreateRequestProvider",
32
33
  "AgentDeleteResponse",
33
- "AgentFhirConfig",
34
34
  "AgentGetChatMessagesRequestOrder",
35
35
  "AgentGetChatMessagesResponse",
36
36
  "AgentListResponse",
37
37
  "AgentPromptsResponse",
38
- "AgentProvider",
39
38
  "AgentResponse",
40
39
  "AgentTemplate",
40
+ "AgentTemplateProvider",
41
41
  "BadRequestError",
42
- "ChatFhirClientConfig",
43
42
  "ChatMessageTemplate",
44
43
  "ChatSessionTemplate",
45
44
  "ForbiddenError",
@@ -51,7 +50,6 @@ __all__ = [
51
50
  "PromptTemplate",
52
51
  "PromptsDeleteResponse",
53
52
  "PromptsListResponse",
54
- "ProviderType",
55
53
  "SuccessResponse",
56
54
  "UnauthorizedError",
57
55
  "prompts",
@@ -7,14 +7,12 @@ from ..core.request_options import RequestOptions
7
7
  from .prompts.client import AsyncPromptsClient, PromptsClient
8
8
  from .raw_client import AsyncRawAgentClient, RawAgentClient
9
9
  from .types.agent_chat_response import AgentChatResponse
10
+ from .types.agent_create_request_provider import AgentCreateRequestProvider
10
11
  from .types.agent_delete_response import AgentDeleteResponse
11
- from .types.agent_fhir_config import AgentFhirConfig
12
12
  from .types.agent_get_chat_messages_request_order import AgentGetChatMessagesRequestOrder
13
13
  from .types.agent_get_chat_messages_response import AgentGetChatMessagesResponse
14
14
  from .types.agent_list_response import AgentListResponse
15
- from .types.agent_provider import AgentProvider
16
15
  from .types.agent_response import AgentResponse
17
- from .types.chat_fhir_client_config import ChatFhirClientConfig
18
16
  from .types.json_patch import JsonPatch
19
17
 
20
18
  # this is used as the default value for optional parameters
@@ -46,8 +44,7 @@ class AgentClient:
46
44
  description: typing.Optional[str] = OMIT,
47
45
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
48
46
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
49
- provider: typing.Optional[AgentProvider] = OMIT,
50
- meta: typing.Optional[AgentFhirConfig] = OMIT,
47
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
51
48
  request_options: typing.Optional[RequestOptions] = None,
52
49
  ) -> AgentResponse:
53
50
  """
@@ -73,10 +70,8 @@ class AgentClient:
73
70
  tags : typing.Optional[typing.Sequence[str]]
74
71
  Tags for categorizing the agent
75
72
 
76
- provider : typing.Optional[AgentProvider]
77
- FHIR provider type - can be a single provider or array of providers
78
-
79
- meta : typing.Optional[AgentFhirConfig]
73
+ provider : typing.Optional[AgentCreateRequestProvider]
74
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
80
75
 
81
76
  request_options : typing.Optional[RequestOptions]
82
77
  Request-specific configuration.
@@ -107,7 +102,6 @@ class AgentClient:
107
102
  tools=tools,
108
103
  tags=tags,
109
104
  provider=provider,
110
- meta=meta,
111
105
  request_options=request_options,
112
106
  )
113
107
  return _response.data
@@ -185,14 +179,13 @@ class AgentClient:
185
179
  self,
186
180
  id: str,
187
181
  *,
188
- name: typing.Optional[str] = OMIT,
182
+ name: str,
183
+ prompts: typing.Sequence[str],
184
+ is_active: bool,
189
185
  description: typing.Optional[str] = OMIT,
190
- prompts: typing.Optional[typing.Sequence[str]] = OMIT,
191
186
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
192
- is_active: typing.Optional[bool] = OMIT,
193
187
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
194
- provider: typing.Optional[AgentProvider] = OMIT,
195
- meta: typing.Optional[AgentFhirConfig] = OMIT,
188
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
196
189
  request_options: typing.Optional[RequestOptions] = None,
197
190
  ) -> AgentResponse:
198
191
  """
@@ -203,28 +196,26 @@ class AgentClient:
203
196
  id : str
204
197
  Agent ID
205
198
 
206
- name : typing.Optional[str]
199
+ name : str
207
200
  Agent name
208
201
 
202
+ prompts : typing.Sequence[str]
203
+ Array of prompt IDs to use for this agent
204
+
205
+ is_active : bool
206
+ Whether the agent is active
207
+
209
208
  description : typing.Optional[str]
210
209
  Agent description
211
210
 
212
- prompts : typing.Optional[typing.Sequence[str]]
213
- Array of prompt IDs to use for this agent
214
-
215
211
  tools : typing.Optional[typing.Sequence[str]]
216
212
  Array of MCP server tool IDs to use for this agent
217
213
 
218
- is_active : typing.Optional[bool]
219
- Whether the agent is active
220
-
221
214
  tags : typing.Optional[typing.Sequence[str]]
222
215
  Tags for categorizing the agent
223
216
 
224
- provider : typing.Optional[AgentProvider]
225
- FHIR provider type - can be a single provider or array of providers
226
-
227
- meta : typing.Optional[AgentFhirConfig]
217
+ provider : typing.Optional[AgentCreateRequestProvider]
218
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
228
219
 
229
220
  request_options : typing.Optional[RequestOptions]
230
221
  Request-specific configuration.
@@ -243,18 +234,20 @@ class AgentClient:
243
234
  )
244
235
  client.agent.update(
245
236
  id="id",
237
+ name="name",
238
+ prompts=["prompt_123", "prompt_456"],
239
+ is_active=True,
246
240
  )
247
241
  """
248
242
  _response = self._raw_client.update(
249
243
  id,
250
244
  name=name,
251
- description=description,
252
245
  prompts=prompts,
253
- tools=tools,
254
246
  is_active=is_active,
247
+ description=description,
248
+ tools=tools,
255
249
  tags=tags,
256
250
  provider=provider,
257
- meta=meta,
258
251
  request_options=request_options,
259
252
  )
260
253
  return _response.data
@@ -349,7 +342,6 @@ class AgentClient:
349
342
  agent_id: str,
350
343
  context: typing.Optional[str] = OMIT,
351
344
  session_id: typing.Optional[str] = OMIT,
352
- meta: typing.Optional[ChatFhirClientConfig] = OMIT,
353
345
  request_options: typing.Optional[RequestOptions] = None,
354
346
  ) -> AgentChatResponse:
355
347
  """
@@ -369,9 +361,6 @@ class AgentClient:
369
361
  session_id : typing.Optional[str]
370
362
  Optional session ID for conversation continuity
371
363
 
372
- meta : typing.Optional[ChatFhirClientConfig]
373
- Optional user-specific FHIR configuration overrides
374
-
375
364
  request_options : typing.Optional[RequestOptions]
376
365
  Request-specific configuration.
377
366
 
@@ -393,12 +382,7 @@ class AgentClient:
393
382
  )
394
383
  """
395
384
  _response = self._raw_client.chat(
396
- message=message,
397
- agent_id=agent_id,
398
- context=context,
399
- session_id=session_id,
400
- meta=meta,
401
- request_options=request_options,
385
+ message=message, agent_id=agent_id, context=context, session_id=session_id, request_options=request_options
402
386
  )
403
387
  return _response.data
404
388
 
@@ -482,8 +466,7 @@ class AsyncAgentClient:
482
466
  description: typing.Optional[str] = OMIT,
483
467
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
484
468
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
485
- provider: typing.Optional[AgentProvider] = OMIT,
486
- meta: typing.Optional[AgentFhirConfig] = OMIT,
469
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
487
470
  request_options: typing.Optional[RequestOptions] = None,
488
471
  ) -> AgentResponse:
489
472
  """
@@ -509,10 +492,8 @@ class AsyncAgentClient:
509
492
  tags : typing.Optional[typing.Sequence[str]]
510
493
  Tags for categorizing the agent
511
494
 
512
- provider : typing.Optional[AgentProvider]
513
- FHIR provider type - can be a single provider or array of providers
514
-
515
- meta : typing.Optional[AgentFhirConfig]
495
+ provider : typing.Optional[AgentCreateRequestProvider]
496
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
516
497
 
517
498
  request_options : typing.Optional[RequestOptions]
518
499
  Request-specific configuration.
@@ -551,7 +532,6 @@ class AsyncAgentClient:
551
532
  tools=tools,
552
533
  tags=tags,
553
534
  provider=provider,
554
- meta=meta,
555
535
  request_options=request_options,
556
536
  )
557
537
  return _response.data
@@ -645,14 +625,13 @@ class AsyncAgentClient:
645
625
  self,
646
626
  id: str,
647
627
  *,
648
- name: typing.Optional[str] = OMIT,
628
+ name: str,
629
+ prompts: typing.Sequence[str],
630
+ is_active: bool,
649
631
  description: typing.Optional[str] = OMIT,
650
- prompts: typing.Optional[typing.Sequence[str]] = OMIT,
651
632
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
652
- is_active: typing.Optional[bool] = OMIT,
653
633
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
654
- provider: typing.Optional[AgentProvider] = OMIT,
655
- meta: typing.Optional[AgentFhirConfig] = OMIT,
634
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
656
635
  request_options: typing.Optional[RequestOptions] = None,
657
636
  ) -> AgentResponse:
658
637
  """
@@ -663,28 +642,26 @@ class AsyncAgentClient:
663
642
  id : str
664
643
  Agent ID
665
644
 
666
- name : typing.Optional[str]
645
+ name : str
667
646
  Agent name
668
647
 
648
+ prompts : typing.Sequence[str]
649
+ Array of prompt IDs to use for this agent
650
+
651
+ is_active : bool
652
+ Whether the agent is active
653
+
669
654
  description : typing.Optional[str]
670
655
  Agent description
671
656
 
672
- prompts : typing.Optional[typing.Sequence[str]]
673
- Array of prompt IDs to use for this agent
674
-
675
657
  tools : typing.Optional[typing.Sequence[str]]
676
658
  Array of MCP server tool IDs to use for this agent
677
659
 
678
- is_active : typing.Optional[bool]
679
- Whether the agent is active
680
-
681
660
  tags : typing.Optional[typing.Sequence[str]]
682
661
  Tags for categorizing the agent
683
662
 
684
- provider : typing.Optional[AgentProvider]
685
- FHIR provider type - can be a single provider or array of providers
686
-
687
- meta : typing.Optional[AgentFhirConfig]
663
+ provider : typing.Optional[AgentCreateRequestProvider]
664
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
688
665
 
689
666
  request_options : typing.Optional[RequestOptions]
690
667
  Request-specific configuration.
@@ -708,6 +685,9 @@ class AsyncAgentClient:
708
685
  async def main() -> None:
709
686
  await client.agent.update(
710
687
  id="id",
688
+ name="name",
689
+ prompts=["prompt_123", "prompt_456"],
690
+ is_active=True,
711
691
  )
712
692
 
713
693
 
@@ -716,13 +696,12 @@ class AsyncAgentClient:
716
696
  _response = await self._raw_client.update(
717
697
  id,
718
698
  name=name,
719
- description=description,
720
699
  prompts=prompts,
721
- tools=tools,
722
700
  is_active=is_active,
701
+ description=description,
702
+ tools=tools,
723
703
  tags=tags,
724
704
  provider=provider,
725
- meta=meta,
726
705
  request_options=request_options,
727
706
  )
728
707
  return _response.data
@@ -833,7 +812,6 @@ class AsyncAgentClient:
833
812
  agent_id: str,
834
813
  context: typing.Optional[str] = OMIT,
835
814
  session_id: typing.Optional[str] = OMIT,
836
- meta: typing.Optional[ChatFhirClientConfig] = OMIT,
837
815
  request_options: typing.Optional[RequestOptions] = None,
838
816
  ) -> AgentChatResponse:
839
817
  """
@@ -853,9 +831,6 @@ class AsyncAgentClient:
853
831
  session_id : typing.Optional[str]
854
832
  Optional session ID for conversation continuity
855
833
 
856
- meta : typing.Optional[ChatFhirClientConfig]
857
- Optional user-specific FHIR configuration overrides
858
-
859
834
  request_options : typing.Optional[RequestOptions]
860
835
  Request-specific configuration.
861
836
 
@@ -885,12 +860,7 @@ class AsyncAgentClient:
885
860
  asyncio.run(main())
886
861
  """
887
862
  _response = await self._raw_client.chat(
888
- message=message,
889
- agent_id=agent_id,
890
- context=context,
891
- session_id=session_id,
892
- meta=meta,
893
- request_options=request_options,
863
+ message=message, agent_id=agent_id, context=context, session_id=session_id, request_options=request_options
894
864
  )
895
865
  return _response.data
896
866
 
@@ -16,14 +16,12 @@ from .errors.internal_server_error import InternalServerError
16
16
  from .errors.not_found_error import NotFoundError
17
17
  from .errors.unauthorized_error import UnauthorizedError
18
18
  from .types.agent_chat_response import AgentChatResponse
19
+ from .types.agent_create_request_provider import AgentCreateRequestProvider
19
20
  from .types.agent_delete_response import AgentDeleteResponse
20
- from .types.agent_fhir_config import AgentFhirConfig
21
21
  from .types.agent_get_chat_messages_request_order import AgentGetChatMessagesRequestOrder
22
22
  from .types.agent_get_chat_messages_response import AgentGetChatMessagesResponse
23
23
  from .types.agent_list_response import AgentListResponse
24
- from .types.agent_provider import AgentProvider
25
24
  from .types.agent_response import AgentResponse
26
- from .types.chat_fhir_client_config import ChatFhirClientConfig
27
25
  from .types.json_patch import JsonPatch
28
26
 
29
27
  # this is used as the default value for optional parameters
@@ -43,8 +41,7 @@ class RawAgentClient:
43
41
  description: typing.Optional[str] = OMIT,
44
42
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
45
43
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
46
- provider: typing.Optional[AgentProvider] = OMIT,
47
- meta: typing.Optional[AgentFhirConfig] = OMIT,
44
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
48
45
  request_options: typing.Optional[RequestOptions] = None,
49
46
  ) -> HttpResponse[AgentResponse]:
50
47
  """
@@ -70,10 +67,8 @@ class RawAgentClient:
70
67
  tags : typing.Optional[typing.Sequence[str]]
71
68
  Tags for categorizing the agent
72
69
 
73
- provider : typing.Optional[AgentProvider]
74
- FHIR provider type - can be a single provider or array of providers
75
-
76
- meta : typing.Optional[AgentFhirConfig]
70
+ provider : typing.Optional[AgentCreateRequestProvider]
71
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
77
72
 
78
73
  request_options : typing.Optional[RequestOptions]
79
74
  Request-specific configuration.
@@ -94,10 +89,7 @@ class RawAgentClient:
94
89
  "is_active": is_active,
95
90
  "tags": tags,
96
91
  "provider": convert_and_respect_annotation_metadata(
97
- object_=provider, annotation=AgentProvider, direction="write"
98
- ),
99
- "meta": convert_and_respect_annotation_metadata(
100
- object_=meta, annotation=AgentFhirConfig, direction="write"
92
+ object_=provider, annotation=AgentCreateRequestProvider, direction="write"
101
93
  ),
102
94
  },
103
95
  headers={
@@ -333,14 +325,13 @@ class RawAgentClient:
333
325
  self,
334
326
  id: str,
335
327
  *,
336
- name: typing.Optional[str] = OMIT,
328
+ name: str,
329
+ prompts: typing.Sequence[str],
330
+ is_active: bool,
337
331
  description: typing.Optional[str] = OMIT,
338
- prompts: typing.Optional[typing.Sequence[str]] = OMIT,
339
332
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
340
- is_active: typing.Optional[bool] = OMIT,
341
333
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
342
- provider: typing.Optional[AgentProvider] = OMIT,
343
- meta: typing.Optional[AgentFhirConfig] = OMIT,
334
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
344
335
  request_options: typing.Optional[RequestOptions] = None,
345
336
  ) -> HttpResponse[AgentResponse]:
346
337
  """
@@ -351,28 +342,26 @@ class RawAgentClient:
351
342
  id : str
352
343
  Agent ID
353
344
 
354
- name : typing.Optional[str]
345
+ name : str
355
346
  Agent name
356
347
 
348
+ prompts : typing.Sequence[str]
349
+ Array of prompt IDs to use for this agent
350
+
351
+ is_active : bool
352
+ Whether the agent is active
353
+
357
354
  description : typing.Optional[str]
358
355
  Agent description
359
356
 
360
- prompts : typing.Optional[typing.Sequence[str]]
361
- Array of prompt IDs to use for this agent
362
-
363
357
  tools : typing.Optional[typing.Sequence[str]]
364
358
  Array of MCP server tool IDs to use for this agent
365
359
 
366
- is_active : typing.Optional[bool]
367
- Whether the agent is active
368
-
369
360
  tags : typing.Optional[typing.Sequence[str]]
370
361
  Tags for categorizing the agent
371
362
 
372
- provider : typing.Optional[AgentProvider]
373
- FHIR provider type - can be a single provider or array of providers
374
-
375
- meta : typing.Optional[AgentFhirConfig]
363
+ provider : typing.Optional[AgentCreateRequestProvider]
364
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
376
365
 
377
366
  request_options : typing.Optional[RequestOptions]
378
367
  Request-specific configuration.
@@ -393,10 +382,7 @@ class RawAgentClient:
393
382
  "is_active": is_active,
394
383
  "tags": tags,
395
384
  "provider": convert_and_respect_annotation_metadata(
396
- object_=provider, annotation=AgentProvider, direction="write"
397
- ),
398
- "meta": convert_and_respect_annotation_metadata(
399
- object_=meta, annotation=AgentFhirConfig, direction="write"
385
+ object_=provider, annotation=AgentCreateRequestProvider, direction="write"
400
386
  ),
401
387
  },
402
388
  headers={
@@ -666,7 +652,6 @@ class RawAgentClient:
666
652
  agent_id: str,
667
653
  context: typing.Optional[str] = OMIT,
668
654
  session_id: typing.Optional[str] = OMIT,
669
- meta: typing.Optional[ChatFhirClientConfig] = OMIT,
670
655
  request_options: typing.Optional[RequestOptions] = None,
671
656
  ) -> HttpResponse[AgentChatResponse]:
672
657
  """
@@ -686,9 +671,6 @@ class RawAgentClient:
686
671
  session_id : typing.Optional[str]
687
672
  Optional session ID for conversation continuity
688
673
 
689
- meta : typing.Optional[ChatFhirClientConfig]
690
- Optional user-specific FHIR configuration overrides
691
-
692
674
  request_options : typing.Optional[RequestOptions]
693
675
  Request-specific configuration.
694
676
 
@@ -705,9 +687,6 @@ class RawAgentClient:
705
687
  "context": context,
706
688
  "session_id": session_id,
707
689
  "agent_id": agent_id,
708
- "meta": convert_and_respect_annotation_metadata(
709
- object_=meta, annotation=ChatFhirClientConfig, direction="write"
710
- ),
711
690
  },
712
691
  headers={
713
692
  "content-type": "application/json",
@@ -881,8 +860,7 @@ class AsyncRawAgentClient:
881
860
  description: typing.Optional[str] = OMIT,
882
861
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
883
862
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
884
- provider: typing.Optional[AgentProvider] = OMIT,
885
- meta: typing.Optional[AgentFhirConfig] = OMIT,
863
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
886
864
  request_options: typing.Optional[RequestOptions] = None,
887
865
  ) -> AsyncHttpResponse[AgentResponse]:
888
866
  """
@@ -908,10 +886,8 @@ class AsyncRawAgentClient:
908
886
  tags : typing.Optional[typing.Sequence[str]]
909
887
  Tags for categorizing the agent
910
888
 
911
- provider : typing.Optional[AgentProvider]
912
- FHIR provider type - can be a single provider or array of providers
913
-
914
- meta : typing.Optional[AgentFhirConfig]
889
+ provider : typing.Optional[AgentCreateRequestProvider]
890
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
915
891
 
916
892
  request_options : typing.Optional[RequestOptions]
917
893
  Request-specific configuration.
@@ -932,10 +908,7 @@ class AsyncRawAgentClient:
932
908
  "is_active": is_active,
933
909
  "tags": tags,
934
910
  "provider": convert_and_respect_annotation_metadata(
935
- object_=provider, annotation=AgentProvider, direction="write"
936
- ),
937
- "meta": convert_and_respect_annotation_metadata(
938
- object_=meta, annotation=AgentFhirConfig, direction="write"
911
+ object_=provider, annotation=AgentCreateRequestProvider, direction="write"
939
912
  ),
940
913
  },
941
914
  headers={
@@ -1173,14 +1146,13 @@ class AsyncRawAgentClient:
1173
1146
  self,
1174
1147
  id: str,
1175
1148
  *,
1176
- name: typing.Optional[str] = OMIT,
1149
+ name: str,
1150
+ prompts: typing.Sequence[str],
1151
+ is_active: bool,
1177
1152
  description: typing.Optional[str] = OMIT,
1178
- prompts: typing.Optional[typing.Sequence[str]] = OMIT,
1179
1153
  tools: typing.Optional[typing.Sequence[str]] = OMIT,
1180
- is_active: typing.Optional[bool] = OMIT,
1181
1154
  tags: typing.Optional[typing.Sequence[str]] = OMIT,
1182
- provider: typing.Optional[AgentProvider] = OMIT,
1183
- meta: typing.Optional[AgentFhirConfig] = OMIT,
1155
+ provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
1184
1156
  request_options: typing.Optional[RequestOptions] = None,
1185
1157
  ) -> AsyncHttpResponse[AgentResponse]:
1186
1158
  """
@@ -1191,28 +1163,26 @@ class AsyncRawAgentClient:
1191
1163
  id : str
1192
1164
  Agent ID
1193
1165
 
1194
- name : typing.Optional[str]
1166
+ name : str
1195
1167
  Agent name
1196
1168
 
1169
+ prompts : typing.Sequence[str]
1170
+ Array of prompt IDs to use for this agent
1171
+
1172
+ is_active : bool
1173
+ Whether the agent is active
1174
+
1197
1175
  description : typing.Optional[str]
1198
1176
  Agent description
1199
1177
 
1200
- prompts : typing.Optional[typing.Sequence[str]]
1201
- Array of prompt IDs to use for this agent
1202
-
1203
1178
  tools : typing.Optional[typing.Sequence[str]]
1204
1179
  Array of MCP server tool IDs to use for this agent
1205
1180
 
1206
- is_active : typing.Optional[bool]
1207
- Whether the agent is active
1208
-
1209
1181
  tags : typing.Optional[typing.Sequence[str]]
1210
1182
  Tags for categorizing the agent
1211
1183
 
1212
- provider : typing.Optional[AgentProvider]
1213
- FHIR provider type - can be a single provider or array of providers
1214
-
1215
- meta : typing.Optional[AgentFhirConfig]
1184
+ provider : typing.Optional[AgentCreateRequestProvider]
1185
+ FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
1216
1186
 
1217
1187
  request_options : typing.Optional[RequestOptions]
1218
1188
  Request-specific configuration.
@@ -1233,10 +1203,7 @@ class AsyncRawAgentClient:
1233
1203
  "is_active": is_active,
1234
1204
  "tags": tags,
1235
1205
  "provider": convert_and_respect_annotation_metadata(
1236
- object_=provider, annotation=AgentProvider, direction="write"
1237
- ),
1238
- "meta": convert_and_respect_annotation_metadata(
1239
- object_=meta, annotation=AgentFhirConfig, direction="write"
1206
+ object_=provider, annotation=AgentCreateRequestProvider, direction="write"
1240
1207
  ),
1241
1208
  },
1242
1209
  headers={
@@ -1506,7 +1473,6 @@ class AsyncRawAgentClient:
1506
1473
  agent_id: str,
1507
1474
  context: typing.Optional[str] = OMIT,
1508
1475
  session_id: typing.Optional[str] = OMIT,
1509
- meta: typing.Optional[ChatFhirClientConfig] = OMIT,
1510
1476
  request_options: typing.Optional[RequestOptions] = None,
1511
1477
  ) -> AsyncHttpResponse[AgentChatResponse]:
1512
1478
  """
@@ -1526,9 +1492,6 @@ class AsyncRawAgentClient:
1526
1492
  session_id : typing.Optional[str]
1527
1493
  Optional session ID for conversation continuity
1528
1494
 
1529
- meta : typing.Optional[ChatFhirClientConfig]
1530
- Optional user-specific FHIR configuration overrides
1531
-
1532
1495
  request_options : typing.Optional[RequestOptions]
1533
1496
  Request-specific configuration.
1534
1497
 
@@ -1545,9 +1508,6 @@ class AsyncRawAgentClient:
1545
1508
  "context": context,
1546
1509
  "session_id": session_id,
1547
1510
  "agent_id": agent_id,
1548
- "meta": convert_and_respect_annotation_metadata(
1549
- object_=meta, annotation=ChatFhirClientConfig, direction="write"
1550
- ),
1551
1511
  },
1552
1512
  headers={
1553
1513
  "content-type": "application/json",