phenoml 0.0.1__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.
- {phenoml-0.0.1 → phenoml-0.0.5}/PKG-INFO +1 -1
- {phenoml-0.0.1 → phenoml-0.0.5}/pyproject.toml +2 -2
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/__init__.py +10 -12
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/client.py +172 -65
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/prompts/raw_client.py +134 -134
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/raw_client.py +236 -69
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/__init__.py +10 -12
- phenoml-0.0.5/src/phenoml/agent/types/agent_create_request.py +53 -0
- phenoml-0.0.5/src/phenoml/agent/types/agent_create_request_provider.py +5 -0
- phenoml-0.0.5/src/phenoml/agent/types/agent_get_chat_messages_request_order.py +5 -0
- phenoml-0.0.5/src/phenoml/agent/types/agent_get_chat_messages_response.py +22 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/agent_template.py +6 -4
- phenoml-0.0.5/src/phenoml/agent/types/agent_template_provider.py +5 -0
- phenoml-0.0.5/src/phenoml/agent/types/chat_message_template.py +72 -0
- phenoml-0.0.5/src/phenoml/agent/types/chat_session_template.py +67 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/client.py +6 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/client_wrapper.py +2 -2
- phenoml-0.0.5/src/phenoml/fhir/__init__.py +36 -0
- phenoml-0.0.5/src/phenoml/fhir/client.py +970 -0
- phenoml-0.0.5/src/phenoml/fhir/errors/__init__.py +10 -0
- phenoml-0.0.5/src/phenoml/fhir/errors/not_found_error.py +10 -0
- phenoml-0.0.5/src/phenoml/fhir/raw_client.py +1385 -0
- phenoml-0.0.5/src/phenoml/fhir/types/__init__.py +29 -0
- phenoml-0.0.1/src/phenoml/agent/types/chat_fhir_client_config.py → phenoml-0.0.5/src/phenoml/fhir/types/error_response.py +11 -6
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle.py +43 -0
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item.py +34 -0
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item_request.py +25 -0
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item_request_method.py +5 -0
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_bundle_entry_item_response.py +24 -0
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_patch_request_body_item.py +36 -0
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_patch_request_body_item_op.py +7 -0
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_resource.py +40 -0
- phenoml-0.0.1/src/phenoml/agent/types/agent_fhir_config.py → phenoml-0.0.5/src/phenoml/fhir/types/fhir_resource_meta.py +8 -11
- phenoml-0.0.5/src/phenoml/fhir/types/fhir_search_response.py +8 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/__init__.py +43 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/client.py +731 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/errors/__init__.py +11 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/errors/not_found_error.py +10 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/raw_client.py +1445 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/__init__.py +35 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/auth_method.py +7 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_auth_config.py +53 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_delete_response.py +20 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_list_response.py +22 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_remove_auth_config_response.py +22 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_response.py +22 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_set_active_auth_config_response.py +22 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_provider_template.py +66 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_query_response.py +27 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/fhir_query_response_data.py +5 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/json_web_key.py +51 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/provider.py +8 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/service_account_key.py +35 -0
- phenoml-0.0.5/src/phenoml/fhir_provider/types/smart_configuration.py +46 -0
- phenoml-0.0.5/src/phenoml/lang2fhir/errors/bad_request_error.py +10 -0
- phenoml-0.0.5/src/phenoml/lang2fhir/errors/internal_server_error.py +10 -0
- phenoml-0.0.5/src/phenoml/lang2fhir/errors/unauthorized_error.py +10 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/__init__.py +12 -8
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/client.py +27 -60
- phenoml-0.0.5/src/phenoml/tools/errors/bad_request_error.py +10 -0
- phenoml-0.0.5/src/phenoml/tools/errors/forbidden_error.py +10 -0
- phenoml-0.0.5/src/phenoml/tools/errors/internal_server_error.py +10 -0
- phenoml-0.0.5/src/phenoml/tools/errors/unauthorized_error.py +10 -0
- phenoml-0.0.5/src/phenoml/tools/mcp_server/__init__.py +7 -0
- phenoml-0.0.5/src/phenoml/tools/mcp_server/client.py +336 -0
- phenoml-0.0.5/src/phenoml/tools/mcp_server/raw_client.py +641 -0
- phenoml-0.0.5/src/phenoml/tools/mcp_server/tools/__init__.py +4 -0
- phenoml-0.0.5/src/phenoml/tools/mcp_server/tools/client.py +358 -0
- phenoml-0.0.5/src/phenoml/tools/mcp_server/tools/raw_client.py +656 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/raw_client.py +18 -67
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/types/__init__.py +10 -8
- phenoml-0.0.5/src/phenoml/tools/types/mcp_server_response.py +33 -0
- phenoml-0.0.5/src/phenoml/tools/types/mcp_server_response_data.py +51 -0
- phenoml-0.0.5/src/phenoml/tools/types/mcp_server_tool_call_response.py +37 -0
- phenoml-0.0.5/src/phenoml/tools/types/mcp_server_tool_response.py +33 -0
- phenoml-0.0.5/src/phenoml/tools/types/mcp_server_tool_response_data.py +61 -0
- phenoml-0.0.1/src/phenoml/agent/types/agent_create_request_provider.py +0 -13
- phenoml-0.0.1/src/phenoml/agent/types/agent_create_request_provider_item.py +0 -7
- phenoml-0.0.1/src/phenoml/agent/types/agent_template_provider.py +0 -13
- phenoml-0.0.1/src/phenoml/agent/types/agent_template_provider_item.py +0 -5
- phenoml-0.0.1/src/phenoml/agent/types/agent_update_request_provider.py +0 -13
- phenoml-0.0.1/src/phenoml/agent/types/agent_update_request_provider_item.py +0 -7
- phenoml-0.0.1/src/phenoml/tools/types/cohort_request_provider.py +0 -5
- phenoml-0.0.1/src/phenoml/tools/types/fhir_client_config.py +0 -31
- phenoml-0.0.1/src/phenoml/tools/types/lang2fhir_and_create_request_provider.py +0 -7
- phenoml-0.0.1/src/phenoml/tools/types/lang2fhir_and_search_request_provider.py +0 -7
- {phenoml-0.0.1 → phenoml-0.0.5}/LICENSE +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/README.md +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/errors/forbidden_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/errors/not_found_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/prompts/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/prompts/client.py +60 -60
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/prompts/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/prompts/types/prompts_delete_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/prompts/types/prompts_list_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/agent_chat_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/agent_delete_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/agent_list_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/agent_prompts_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/agent_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/json_patch.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/json_patch_operation.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/json_patch_operation_op.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/prompt_template.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/agent/types/success_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/auth/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/auth/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/auth/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/auth/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/auth/types/auth_generate_token_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/types/bad_request_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/authtoken/types/unauthorized_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/types/cohort_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/cohort/types/search_concept.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/errors/conflict_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/errors/failed_dependency_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/bad_request_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_request_config.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response_queries_item.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response_queries_item_code_extract_results_item.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/construe_cohort_response_queries_item_code_extract_results_item_codes_item.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/construe_upload_code_system_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/extract_codes_result.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/extract_request_config.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/extract_request_config_chunking_method.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/extract_request_system.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/extracted_code_result.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/internal_server_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/unauthorized_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/construe/types/upload_request_format.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/api_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/datetime_utils.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/file.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/force_multipart.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/http_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/http_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/jsonable_encoder.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/pydantic_utilities.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/query_encoder.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/remove_none_from_dict.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/request_options.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/core/serialization.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/environment.py +0 -0
- {phenoml-0.0.1/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir}/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir}/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir}/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1/src/phenoml/tools → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1/src/phenoml/lang2fhir → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/forbidden_error.py +0 -0
- {phenoml-0.0.1/src/phenoml/tools → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1/src/phenoml/tools → phenoml-0.0.5/src/phenoml/fhir_provider}/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/errors/failed_dependency_error.py +0 -0
- {phenoml-0.0.1/src/phenoml/tools → phenoml-0.0.5/src/phenoml/lang2fhir}/errors/forbidden_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/create_request_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/document_request_file_type.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/document_request_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/fhir_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/lang2fhir_upload_profile_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/lang2fhir/types/search_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/py.typed +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/errors/failed_dependency_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/types/cohort_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/types/lang2fhir_and_create_request_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/types/lang2fhir_and_create_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/types/lang2fhir_and_search_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/tools/types/search_concept.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/version.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.5}/src/phenoml/wrapper_client.py +0 -0
|
@@ -3,7 +3,7 @@ name = "phenoml"
|
|
|
3
3
|
|
|
4
4
|
[tool.poetry]
|
|
5
5
|
name = "phenoml"
|
|
6
|
-
version = "0.0.
|
|
6
|
+
version = "0.0.5"
|
|
7
7
|
description = ""
|
|
8
8
|
readme = "README.md"
|
|
9
9
|
authors = []
|
|
@@ -31,7 +31,7 @@ packages = [
|
|
|
31
31
|
]
|
|
32
32
|
|
|
33
33
|
[project.urls]
|
|
34
|
-
Repository = 'https://github.com/
|
|
34
|
+
Repository = 'https://github.com/phenoml/phenoml-python-sdk'
|
|
35
35
|
|
|
36
36
|
[tool.poetry.dependencies]
|
|
37
37
|
python = "^3.8"
|
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
from .types import (
|
|
6
6
|
AgentChatResponse,
|
|
7
|
+
AgentCreateRequest,
|
|
7
8
|
AgentCreateRequestProvider,
|
|
8
|
-
AgentCreateRequestProviderItem,
|
|
9
9
|
AgentDeleteResponse,
|
|
10
|
-
|
|
10
|
+
AgentGetChatMessagesRequestOrder,
|
|
11
|
+
AgentGetChatMessagesResponse,
|
|
11
12
|
AgentListResponse,
|
|
12
13
|
AgentPromptsResponse,
|
|
13
14
|
AgentResponse,
|
|
14
15
|
AgentTemplate,
|
|
15
16
|
AgentTemplateProvider,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
AgentUpdateRequestProviderItem,
|
|
19
|
-
ChatFhirClientConfig,
|
|
17
|
+
ChatMessageTemplate,
|
|
18
|
+
ChatSessionTemplate,
|
|
20
19
|
JsonPatch,
|
|
21
20
|
JsonPatchOperation,
|
|
22
21
|
JsonPatchOperationOp,
|
|
@@ -29,20 +28,19 @@ from .prompts import PromptsDeleteResponse, PromptsListResponse
|
|
|
29
28
|
|
|
30
29
|
__all__ = [
|
|
31
30
|
"AgentChatResponse",
|
|
31
|
+
"AgentCreateRequest",
|
|
32
32
|
"AgentCreateRequestProvider",
|
|
33
|
-
"AgentCreateRequestProviderItem",
|
|
34
33
|
"AgentDeleteResponse",
|
|
35
|
-
"
|
|
34
|
+
"AgentGetChatMessagesRequestOrder",
|
|
35
|
+
"AgentGetChatMessagesResponse",
|
|
36
36
|
"AgentListResponse",
|
|
37
37
|
"AgentPromptsResponse",
|
|
38
38
|
"AgentResponse",
|
|
39
39
|
"AgentTemplate",
|
|
40
40
|
"AgentTemplateProvider",
|
|
41
|
-
"AgentTemplateProviderItem",
|
|
42
|
-
"AgentUpdateRequestProvider",
|
|
43
|
-
"AgentUpdateRequestProviderItem",
|
|
44
41
|
"BadRequestError",
|
|
45
|
-
"
|
|
42
|
+
"ChatMessageTemplate",
|
|
43
|
+
"ChatSessionTemplate",
|
|
46
44
|
"ForbiddenError",
|
|
47
45
|
"InternalServerError",
|
|
48
46
|
"JsonPatch",
|
|
@@ -9,11 +9,10 @@ from .raw_client import AsyncRawAgentClient, RawAgentClient
|
|
|
9
9
|
from .types.agent_chat_response import AgentChatResponse
|
|
10
10
|
from .types.agent_create_request_provider import AgentCreateRequestProvider
|
|
11
11
|
from .types.agent_delete_response import AgentDeleteResponse
|
|
12
|
-
from .types.
|
|
12
|
+
from .types.agent_get_chat_messages_request_order import AgentGetChatMessagesRequestOrder
|
|
13
|
+
from .types.agent_get_chat_messages_response import AgentGetChatMessagesResponse
|
|
13
14
|
from .types.agent_list_response import AgentListResponse
|
|
14
15
|
from .types.agent_response import AgentResponse
|
|
15
|
-
from .types.agent_update_request_provider import AgentUpdateRequestProvider
|
|
16
|
-
from .types.chat_fhir_client_config import ChatFhirClientConfig
|
|
17
16
|
from .types.json_patch import JsonPatch
|
|
18
17
|
|
|
19
18
|
# this is used as the default value for optional parameters
|
|
@@ -43,9 +42,9 @@ class AgentClient:
|
|
|
43
42
|
prompts: typing.Sequence[str],
|
|
44
43
|
is_active: bool,
|
|
45
44
|
description: typing.Optional[str] = OMIT,
|
|
45
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
46
46
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
47
47
|
provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
|
|
48
|
-
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
49
48
|
request_options: typing.Optional[RequestOptions] = None,
|
|
50
49
|
) -> AgentResponse:
|
|
51
50
|
"""
|
|
@@ -65,13 +64,14 @@ class AgentClient:
|
|
|
65
64
|
description : typing.Optional[str]
|
|
66
65
|
Agent description
|
|
67
66
|
|
|
67
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
68
|
+
Array of MCP server tool IDs to use for this agent
|
|
69
|
+
|
|
68
70
|
tags : typing.Optional[typing.Sequence[str]]
|
|
69
71
|
Tags for categorizing the agent
|
|
70
72
|
|
|
71
73
|
provider : typing.Optional[AgentCreateRequestProvider]
|
|
72
|
-
FHIR provider
|
|
73
|
-
|
|
74
|
-
meta : typing.Optional[AgentFhirConfig]
|
|
74
|
+
FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
|
|
75
75
|
|
|
76
76
|
request_options : typing.Optional[RequestOptions]
|
|
77
77
|
Request-specific configuration.
|
|
@@ -99,9 +99,9 @@ class AgentClient:
|
|
|
99
99
|
prompts=prompts,
|
|
100
100
|
is_active=is_active,
|
|
101
101
|
description=description,
|
|
102
|
+
tools=tools,
|
|
102
103
|
tags=tags,
|
|
103
104
|
provider=provider,
|
|
104
|
-
meta=meta,
|
|
105
105
|
request_options=request_options,
|
|
106
106
|
)
|
|
107
107
|
return _response.data
|
|
@@ -179,13 +179,13 @@ class AgentClient:
|
|
|
179
179
|
self,
|
|
180
180
|
id: str,
|
|
181
181
|
*,
|
|
182
|
-
name:
|
|
182
|
+
name: str,
|
|
183
|
+
prompts: typing.Sequence[str],
|
|
184
|
+
is_active: bool,
|
|
183
185
|
description: typing.Optional[str] = OMIT,
|
|
184
|
-
|
|
185
|
-
is_active: typing.Optional[bool] = OMIT,
|
|
186
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
186
187
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
187
|
-
provider: typing.Optional[
|
|
188
|
-
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
188
|
+
provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
|
|
189
189
|
request_options: typing.Optional[RequestOptions] = None,
|
|
190
190
|
) -> AgentResponse:
|
|
191
191
|
"""
|
|
@@ -196,25 +196,26 @@ class AgentClient:
|
|
|
196
196
|
id : str
|
|
197
197
|
Agent ID
|
|
198
198
|
|
|
199
|
-
name :
|
|
199
|
+
name : str
|
|
200
200
|
Agent name
|
|
201
201
|
|
|
202
|
-
|
|
203
|
-
Agent description
|
|
204
|
-
|
|
205
|
-
prompts : typing.Optional[typing.Sequence[str]]
|
|
202
|
+
prompts : typing.Sequence[str]
|
|
206
203
|
Array of prompt IDs to use for this agent
|
|
207
204
|
|
|
208
|
-
is_active :
|
|
205
|
+
is_active : bool
|
|
209
206
|
Whether the agent is active
|
|
210
207
|
|
|
208
|
+
description : typing.Optional[str]
|
|
209
|
+
Agent description
|
|
210
|
+
|
|
211
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
212
|
+
Array of MCP server tool IDs to use for this agent
|
|
213
|
+
|
|
211
214
|
tags : typing.Optional[typing.Sequence[str]]
|
|
212
215
|
Tags for categorizing the agent
|
|
213
216
|
|
|
214
|
-
provider : typing.Optional[
|
|
215
|
-
FHIR provider
|
|
216
|
-
|
|
217
|
-
meta : typing.Optional[AgentFhirConfig]
|
|
217
|
+
provider : typing.Optional[AgentCreateRequestProvider]
|
|
218
|
+
FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
|
|
218
219
|
|
|
219
220
|
request_options : typing.Optional[RequestOptions]
|
|
220
221
|
Request-specific configuration.
|
|
@@ -233,17 +234,20 @@ class AgentClient:
|
|
|
233
234
|
)
|
|
234
235
|
client.agent.update(
|
|
235
236
|
id="id",
|
|
237
|
+
name="name",
|
|
238
|
+
prompts=["prompt_123", "prompt_456"],
|
|
239
|
+
is_active=True,
|
|
236
240
|
)
|
|
237
241
|
"""
|
|
238
242
|
_response = self._raw_client.update(
|
|
239
243
|
id,
|
|
240
244
|
name=name,
|
|
241
|
-
description=description,
|
|
242
245
|
prompts=prompts,
|
|
243
246
|
is_active=is_active,
|
|
247
|
+
description=description,
|
|
248
|
+
tools=tools,
|
|
244
249
|
tags=tags,
|
|
245
250
|
provider=provider,
|
|
246
|
-
meta=meta,
|
|
247
251
|
request_options=request_options,
|
|
248
252
|
)
|
|
249
253
|
return _response.data
|
|
@@ -338,7 +342,6 @@ class AgentClient:
|
|
|
338
342
|
agent_id: str,
|
|
339
343
|
context: typing.Optional[str] = OMIT,
|
|
340
344
|
session_id: typing.Optional[str] = OMIT,
|
|
341
|
-
meta: typing.Optional[ChatFhirClientConfig] = OMIT,
|
|
342
345
|
request_options: typing.Optional[RequestOptions] = None,
|
|
343
346
|
) -> AgentChatResponse:
|
|
344
347
|
"""
|
|
@@ -358,9 +361,6 @@ class AgentClient:
|
|
|
358
361
|
session_id : typing.Optional[str]
|
|
359
362
|
Optional session ID for conversation continuity
|
|
360
363
|
|
|
361
|
-
meta : typing.Optional[ChatFhirClientConfig]
|
|
362
|
-
Optional user-specific FHIR configuration overrides
|
|
363
|
-
|
|
364
364
|
request_options : typing.Optional[RequestOptions]
|
|
365
365
|
Request-specific configuration.
|
|
366
366
|
|
|
@@ -382,11 +382,60 @@ class AgentClient:
|
|
|
382
382
|
)
|
|
383
383
|
"""
|
|
384
384
|
_response = self._raw_client.chat(
|
|
385
|
-
message=message,
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
385
|
+
message=message, agent_id=agent_id, context=context, session_id=session_id, request_options=request_options
|
|
386
|
+
)
|
|
387
|
+
return _response.data
|
|
388
|
+
|
|
389
|
+
def get_chat_messages(
|
|
390
|
+
self,
|
|
391
|
+
*,
|
|
392
|
+
chat_session_id: str,
|
|
393
|
+
num_messages: typing.Optional[int] = None,
|
|
394
|
+
role: typing.Optional[str] = None,
|
|
395
|
+
order: typing.Optional[AgentGetChatMessagesRequestOrder] = None,
|
|
396
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
397
|
+
) -> AgentGetChatMessagesResponse:
|
|
398
|
+
"""
|
|
399
|
+
Retrieves a list of chat messages for a given chat session
|
|
400
|
+
|
|
401
|
+
Parameters
|
|
402
|
+
----------
|
|
403
|
+
chat_session_id : str
|
|
404
|
+
Chat session ID
|
|
405
|
+
|
|
406
|
+
num_messages : typing.Optional[int]
|
|
407
|
+
Number of messages to return
|
|
408
|
+
|
|
409
|
+
role : typing.Optional[str]
|
|
410
|
+
Filter by role
|
|
411
|
+
|
|
412
|
+
order : typing.Optional[AgentGetChatMessagesRequestOrder]
|
|
413
|
+
Order of messages
|
|
414
|
+
|
|
415
|
+
request_options : typing.Optional[RequestOptions]
|
|
416
|
+
Request-specific configuration.
|
|
417
|
+
|
|
418
|
+
Returns
|
|
419
|
+
-------
|
|
420
|
+
AgentGetChatMessagesResponse
|
|
421
|
+
Chat messages retrieved successfully
|
|
422
|
+
|
|
423
|
+
Examples
|
|
424
|
+
--------
|
|
425
|
+
from phenoml import phenoml
|
|
426
|
+
|
|
427
|
+
client = phenoml(
|
|
428
|
+
token="YOUR_TOKEN",
|
|
429
|
+
)
|
|
430
|
+
client.agent.get_chat_messages(
|
|
431
|
+
chat_session_id="chat_session_id",
|
|
432
|
+
)
|
|
433
|
+
"""
|
|
434
|
+
_response = self._raw_client.get_chat_messages(
|
|
435
|
+
chat_session_id=chat_session_id,
|
|
436
|
+
num_messages=num_messages,
|
|
437
|
+
role=role,
|
|
438
|
+
order=order,
|
|
390
439
|
request_options=request_options,
|
|
391
440
|
)
|
|
392
441
|
return _response.data
|
|
@@ -415,9 +464,9 @@ class AsyncAgentClient:
|
|
|
415
464
|
prompts: typing.Sequence[str],
|
|
416
465
|
is_active: bool,
|
|
417
466
|
description: typing.Optional[str] = OMIT,
|
|
467
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
418
468
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
419
469
|
provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
|
|
420
|
-
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
421
470
|
request_options: typing.Optional[RequestOptions] = None,
|
|
422
471
|
) -> AgentResponse:
|
|
423
472
|
"""
|
|
@@ -437,13 +486,14 @@ class AsyncAgentClient:
|
|
|
437
486
|
description : typing.Optional[str]
|
|
438
487
|
Agent description
|
|
439
488
|
|
|
489
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
490
|
+
Array of MCP server tool IDs to use for this agent
|
|
491
|
+
|
|
440
492
|
tags : typing.Optional[typing.Sequence[str]]
|
|
441
493
|
Tags for categorizing the agent
|
|
442
494
|
|
|
443
495
|
provider : typing.Optional[AgentCreateRequestProvider]
|
|
444
|
-
FHIR provider
|
|
445
|
-
|
|
446
|
-
meta : typing.Optional[AgentFhirConfig]
|
|
496
|
+
FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
|
|
447
497
|
|
|
448
498
|
request_options : typing.Optional[RequestOptions]
|
|
449
499
|
Request-specific configuration.
|
|
@@ -479,9 +529,9 @@ class AsyncAgentClient:
|
|
|
479
529
|
prompts=prompts,
|
|
480
530
|
is_active=is_active,
|
|
481
531
|
description=description,
|
|
532
|
+
tools=tools,
|
|
482
533
|
tags=tags,
|
|
483
534
|
provider=provider,
|
|
484
|
-
meta=meta,
|
|
485
535
|
request_options=request_options,
|
|
486
536
|
)
|
|
487
537
|
return _response.data
|
|
@@ -575,13 +625,13 @@ class AsyncAgentClient:
|
|
|
575
625
|
self,
|
|
576
626
|
id: str,
|
|
577
627
|
*,
|
|
578
|
-
name:
|
|
628
|
+
name: str,
|
|
629
|
+
prompts: typing.Sequence[str],
|
|
630
|
+
is_active: bool,
|
|
579
631
|
description: typing.Optional[str] = OMIT,
|
|
580
|
-
|
|
581
|
-
is_active: typing.Optional[bool] = OMIT,
|
|
632
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
582
633
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
583
|
-
provider: typing.Optional[
|
|
584
|
-
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
634
|
+
provider: typing.Optional[AgentCreateRequestProvider] = OMIT,
|
|
585
635
|
request_options: typing.Optional[RequestOptions] = None,
|
|
586
636
|
) -> AgentResponse:
|
|
587
637
|
"""
|
|
@@ -592,25 +642,26 @@ class AsyncAgentClient:
|
|
|
592
642
|
id : str
|
|
593
643
|
Agent ID
|
|
594
644
|
|
|
595
|
-
name :
|
|
645
|
+
name : str
|
|
596
646
|
Agent name
|
|
597
647
|
|
|
598
|
-
|
|
599
|
-
Agent description
|
|
600
|
-
|
|
601
|
-
prompts : typing.Optional[typing.Sequence[str]]
|
|
648
|
+
prompts : typing.Sequence[str]
|
|
602
649
|
Array of prompt IDs to use for this agent
|
|
603
650
|
|
|
604
|
-
is_active :
|
|
651
|
+
is_active : bool
|
|
605
652
|
Whether the agent is active
|
|
606
653
|
|
|
654
|
+
description : typing.Optional[str]
|
|
655
|
+
Agent description
|
|
656
|
+
|
|
657
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
658
|
+
Array of MCP server tool IDs to use for this agent
|
|
659
|
+
|
|
607
660
|
tags : typing.Optional[typing.Sequence[str]]
|
|
608
661
|
Tags for categorizing the agent
|
|
609
662
|
|
|
610
|
-
provider : typing.Optional[
|
|
611
|
-
FHIR provider
|
|
612
|
-
|
|
613
|
-
meta : typing.Optional[AgentFhirConfig]
|
|
663
|
+
provider : typing.Optional[AgentCreateRequestProvider]
|
|
664
|
+
FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers
|
|
614
665
|
|
|
615
666
|
request_options : typing.Optional[RequestOptions]
|
|
616
667
|
Request-specific configuration.
|
|
@@ -634,6 +685,9 @@ class AsyncAgentClient:
|
|
|
634
685
|
async def main() -> None:
|
|
635
686
|
await client.agent.update(
|
|
636
687
|
id="id",
|
|
688
|
+
name="name",
|
|
689
|
+
prompts=["prompt_123", "prompt_456"],
|
|
690
|
+
is_active=True,
|
|
637
691
|
)
|
|
638
692
|
|
|
639
693
|
|
|
@@ -642,12 +696,12 @@ class AsyncAgentClient:
|
|
|
642
696
|
_response = await self._raw_client.update(
|
|
643
697
|
id,
|
|
644
698
|
name=name,
|
|
645
|
-
description=description,
|
|
646
699
|
prompts=prompts,
|
|
647
700
|
is_active=is_active,
|
|
701
|
+
description=description,
|
|
702
|
+
tools=tools,
|
|
648
703
|
tags=tags,
|
|
649
704
|
provider=provider,
|
|
650
|
-
meta=meta,
|
|
651
705
|
request_options=request_options,
|
|
652
706
|
)
|
|
653
707
|
return _response.data
|
|
@@ -758,7 +812,6 @@ class AsyncAgentClient:
|
|
|
758
812
|
agent_id: str,
|
|
759
813
|
context: typing.Optional[str] = OMIT,
|
|
760
814
|
session_id: typing.Optional[str] = OMIT,
|
|
761
|
-
meta: typing.Optional[ChatFhirClientConfig] = OMIT,
|
|
762
815
|
request_options: typing.Optional[RequestOptions] = None,
|
|
763
816
|
) -> AgentChatResponse:
|
|
764
817
|
"""
|
|
@@ -778,9 +831,6 @@ class AsyncAgentClient:
|
|
|
778
831
|
session_id : typing.Optional[str]
|
|
779
832
|
Optional session ID for conversation continuity
|
|
780
833
|
|
|
781
|
-
meta : typing.Optional[ChatFhirClientConfig]
|
|
782
|
-
Optional user-specific FHIR configuration overrides
|
|
783
|
-
|
|
784
834
|
request_options : typing.Optional[RequestOptions]
|
|
785
835
|
Request-specific configuration.
|
|
786
836
|
|
|
@@ -810,11 +860,68 @@ class AsyncAgentClient:
|
|
|
810
860
|
asyncio.run(main())
|
|
811
861
|
"""
|
|
812
862
|
_response = await self._raw_client.chat(
|
|
813
|
-
message=message,
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
863
|
+
message=message, agent_id=agent_id, context=context, session_id=session_id, request_options=request_options
|
|
864
|
+
)
|
|
865
|
+
return _response.data
|
|
866
|
+
|
|
867
|
+
async def get_chat_messages(
|
|
868
|
+
self,
|
|
869
|
+
*,
|
|
870
|
+
chat_session_id: str,
|
|
871
|
+
num_messages: typing.Optional[int] = None,
|
|
872
|
+
role: typing.Optional[str] = None,
|
|
873
|
+
order: typing.Optional[AgentGetChatMessagesRequestOrder] = None,
|
|
874
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
875
|
+
) -> AgentGetChatMessagesResponse:
|
|
876
|
+
"""
|
|
877
|
+
Retrieves a list of chat messages for a given chat session
|
|
878
|
+
|
|
879
|
+
Parameters
|
|
880
|
+
----------
|
|
881
|
+
chat_session_id : str
|
|
882
|
+
Chat session ID
|
|
883
|
+
|
|
884
|
+
num_messages : typing.Optional[int]
|
|
885
|
+
Number of messages to return
|
|
886
|
+
|
|
887
|
+
role : typing.Optional[str]
|
|
888
|
+
Filter by role
|
|
889
|
+
|
|
890
|
+
order : typing.Optional[AgentGetChatMessagesRequestOrder]
|
|
891
|
+
Order of messages
|
|
892
|
+
|
|
893
|
+
request_options : typing.Optional[RequestOptions]
|
|
894
|
+
Request-specific configuration.
|
|
895
|
+
|
|
896
|
+
Returns
|
|
897
|
+
-------
|
|
898
|
+
AgentGetChatMessagesResponse
|
|
899
|
+
Chat messages retrieved successfully
|
|
900
|
+
|
|
901
|
+
Examples
|
|
902
|
+
--------
|
|
903
|
+
import asyncio
|
|
904
|
+
|
|
905
|
+
from phenoml import Asyncphenoml
|
|
906
|
+
|
|
907
|
+
client = Asyncphenoml(
|
|
908
|
+
token="YOUR_TOKEN",
|
|
909
|
+
)
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
async def main() -> None:
|
|
913
|
+
await client.agent.get_chat_messages(
|
|
914
|
+
chat_session_id="chat_session_id",
|
|
915
|
+
)
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
asyncio.run(main())
|
|
919
|
+
"""
|
|
920
|
+
_response = await self._raw_client.get_chat_messages(
|
|
921
|
+
chat_session_id=chat_session_id,
|
|
922
|
+
num_messages=num_messages,
|
|
923
|
+
role=role,
|
|
924
|
+
order=order,
|
|
818
925
|
request_options=request_options,
|
|
819
926
|
)
|
|
820
927
|
return _response.data
|