phenoml 0.0.1__tar.gz → 0.0.2__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.2}/PKG-INFO +1 -1
- {phenoml-0.0.1 → phenoml-0.0.2}/pyproject.toml +2 -2
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/__init__.py +12 -12
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/client.py +147 -10
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/prompts/raw_client.py +134 -134
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/raw_client.py +221 -14
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/__init__.py +12 -12
- phenoml-0.0.2/src/phenoml/agent/types/agent_get_chat_messages_request_order.py +5 -0
- phenoml-0.0.2/src/phenoml/agent/types/agent_get_chat_messages_response.py +22 -0
- phenoml-0.0.2/src/phenoml/agent/types/agent_provider.py +7 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/agent_template.py +7 -2
- phenoml-0.0.2/src/phenoml/agent/types/chat_message_template.py +72 -0
- phenoml-0.0.2/src/phenoml/agent/types/chat_session_template.py +67 -0
- phenoml-0.0.2/src/phenoml/agent/types/provider_type.py +5 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/client_wrapper.py +2 -2
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/__init__.py +12 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/client.py +3 -0
- phenoml-0.0.2/src/phenoml/tools/mcp_server/__init__.py +7 -0
- phenoml-0.0.2/src/phenoml/tools/mcp_server/client.py +336 -0
- phenoml-0.0.2/src/phenoml/tools/mcp_server/raw_client.py +641 -0
- phenoml-0.0.2/src/phenoml/tools/mcp_server/tools/__init__.py +4 -0
- phenoml-0.0.2/src/phenoml/tools/mcp_server/tools/client.py +358 -0
- phenoml-0.0.2/src/phenoml/tools/mcp_server/tools/raw_client.py +656 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/__init__.py +10 -0
- phenoml-0.0.2/src/phenoml/tools/types/mcp_server_response.py +33 -0
- phenoml-0.0.2/src/phenoml/tools/types/mcp_server_response_data.py +51 -0
- phenoml-0.0.2/src/phenoml/tools/types/mcp_server_tool_call_response.py +37 -0
- phenoml-0.0.2/src/phenoml/tools/types/mcp_server_tool_response.py +33 -0
- phenoml-0.0.2/src/phenoml/tools/types/mcp_server_tool_response_data.py +61 -0
- phenoml-0.0.1/LICENSE +0 -21
- 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 → phenoml-0.0.2}/README.md +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/errors/forbidden_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/errors/not_found_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/prompts/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/prompts/client.py +60 -60
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/prompts/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/prompts/types/prompts_delete_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/prompts/types/prompts_list_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/agent_chat_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/agent_delete_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/agent_fhir_config.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/agent_list_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/agent_prompts_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/agent_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/chat_fhir_client_config.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/json_patch.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/json_patch_operation.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/json_patch_operation_op.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/prompt_template.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/agent/types/success_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/auth/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/auth/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/auth/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/auth/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/auth/types/auth_generate_token_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/types/bad_request_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/authtoken/types/unauthorized_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/types/cohort_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/cohort/types/search_concept.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/errors/conflict_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/errors/failed_dependency_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/bad_request_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/construe_cohort_request_config.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/construe_cohort_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/construe_cohort_response_queries_item.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/construe_cohort_response_queries_item_code_extract_results_item.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/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.2}/src/phenoml/construe/types/construe_upload_code_system_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/extract_codes_result.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/extract_request_config.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/extract_request_config_chunking_method.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/extract_request_system.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/extracted_code_result.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/internal_server_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/unauthorized_error_body.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/construe/types/upload_request_format.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/api_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/datetime_utils.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/file.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/force_multipart.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/http_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/http_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/jsonable_encoder.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/pydantic_utilities.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/query_encoder.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/remove_none_from_dict.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/request_options.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/core/serialization.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/environment.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/errors/failed_dependency_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/errors/forbidden_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/types/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/types/create_request_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/types/document_request_file_type.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/types/document_request_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/types/fhir_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/types/lang2fhir_upload_profile_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/lang2fhir/types/search_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/py.typed +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/errors/__init__.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/errors/bad_request_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/errors/failed_dependency_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/errors/forbidden_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/errors/internal_server_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/errors/unauthorized_error.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/raw_client.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/cohort_request_provider.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/cohort_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/fhir_client_config.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/lang2fhir_and_create_request_provider.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/lang2fhir_and_create_request_resource.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/lang2fhir_and_create_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/lang2fhir_and_search_request_provider.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/lang2fhir_and_search_response.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/tools/types/search_concept.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/src/phenoml/version.py +0 -0
- {phenoml-0.0.1 → phenoml-0.0.2}/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.2"
|
|
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,23 +4,23 @@
|
|
|
4
4
|
|
|
5
5
|
from .types import (
|
|
6
6
|
AgentChatResponse,
|
|
7
|
-
AgentCreateRequestProvider,
|
|
8
|
-
AgentCreateRequestProviderItem,
|
|
9
7
|
AgentDeleteResponse,
|
|
10
8
|
AgentFhirConfig,
|
|
9
|
+
AgentGetChatMessagesRequestOrder,
|
|
10
|
+
AgentGetChatMessagesResponse,
|
|
11
11
|
AgentListResponse,
|
|
12
12
|
AgentPromptsResponse,
|
|
13
|
+
AgentProvider,
|
|
13
14
|
AgentResponse,
|
|
14
15
|
AgentTemplate,
|
|
15
|
-
AgentTemplateProvider,
|
|
16
|
-
AgentTemplateProviderItem,
|
|
17
|
-
AgentUpdateRequestProvider,
|
|
18
|
-
AgentUpdateRequestProviderItem,
|
|
19
16
|
ChatFhirClientConfig,
|
|
17
|
+
ChatMessageTemplate,
|
|
18
|
+
ChatSessionTemplate,
|
|
20
19
|
JsonPatch,
|
|
21
20
|
JsonPatchOperation,
|
|
22
21
|
JsonPatchOperationOp,
|
|
23
22
|
PromptTemplate,
|
|
23
|
+
ProviderType,
|
|
24
24
|
SuccessResponse,
|
|
25
25
|
)
|
|
26
26
|
from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError, UnauthorizedError
|
|
@@ -29,20 +29,19 @@ from .prompts import PromptsDeleteResponse, PromptsListResponse
|
|
|
29
29
|
|
|
30
30
|
__all__ = [
|
|
31
31
|
"AgentChatResponse",
|
|
32
|
-
"AgentCreateRequestProvider",
|
|
33
|
-
"AgentCreateRequestProviderItem",
|
|
34
32
|
"AgentDeleteResponse",
|
|
35
33
|
"AgentFhirConfig",
|
|
34
|
+
"AgentGetChatMessagesRequestOrder",
|
|
35
|
+
"AgentGetChatMessagesResponse",
|
|
36
36
|
"AgentListResponse",
|
|
37
37
|
"AgentPromptsResponse",
|
|
38
|
+
"AgentProvider",
|
|
38
39
|
"AgentResponse",
|
|
39
40
|
"AgentTemplate",
|
|
40
|
-
"AgentTemplateProvider",
|
|
41
|
-
"AgentTemplateProviderItem",
|
|
42
|
-
"AgentUpdateRequestProvider",
|
|
43
|
-
"AgentUpdateRequestProviderItem",
|
|
44
41
|
"BadRequestError",
|
|
45
42
|
"ChatFhirClientConfig",
|
|
43
|
+
"ChatMessageTemplate",
|
|
44
|
+
"ChatSessionTemplate",
|
|
46
45
|
"ForbiddenError",
|
|
47
46
|
"InternalServerError",
|
|
48
47
|
"JsonPatch",
|
|
@@ -52,6 +51,7 @@ __all__ = [
|
|
|
52
51
|
"PromptTemplate",
|
|
53
52
|
"PromptsDeleteResponse",
|
|
54
53
|
"PromptsListResponse",
|
|
54
|
+
"ProviderType",
|
|
55
55
|
"SuccessResponse",
|
|
56
56
|
"UnauthorizedError",
|
|
57
57
|
"prompts",
|
|
@@ -7,12 +7,13 @@ 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
|
|
11
10
|
from .types.agent_delete_response import AgentDeleteResponse
|
|
12
11
|
from .types.agent_fhir_config import AgentFhirConfig
|
|
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
|
|
15
|
+
from .types.agent_provider import AgentProvider
|
|
14
16
|
from .types.agent_response import AgentResponse
|
|
15
|
-
from .types.agent_update_request_provider import AgentUpdateRequestProvider
|
|
16
17
|
from .types.chat_fhir_client_config import ChatFhirClientConfig
|
|
17
18
|
from .types.json_patch import JsonPatch
|
|
18
19
|
|
|
@@ -43,8 +44,9 @@ class AgentClient:
|
|
|
43
44
|
prompts: typing.Sequence[str],
|
|
44
45
|
is_active: bool,
|
|
45
46
|
description: typing.Optional[str] = OMIT,
|
|
47
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
46
48
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
47
|
-
provider: typing.Optional[
|
|
49
|
+
provider: typing.Optional[AgentProvider] = OMIT,
|
|
48
50
|
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
49
51
|
request_options: typing.Optional[RequestOptions] = None,
|
|
50
52
|
) -> AgentResponse:
|
|
@@ -65,10 +67,13 @@ class AgentClient:
|
|
|
65
67
|
description : typing.Optional[str]
|
|
66
68
|
Agent description
|
|
67
69
|
|
|
70
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
71
|
+
Array of MCP server tool IDs to use for this agent
|
|
72
|
+
|
|
68
73
|
tags : typing.Optional[typing.Sequence[str]]
|
|
69
74
|
Tags for categorizing the agent
|
|
70
75
|
|
|
71
|
-
provider : typing.Optional[
|
|
76
|
+
provider : typing.Optional[AgentProvider]
|
|
72
77
|
FHIR provider type - can be a single provider or array of providers
|
|
73
78
|
|
|
74
79
|
meta : typing.Optional[AgentFhirConfig]
|
|
@@ -99,6 +104,7 @@ class AgentClient:
|
|
|
99
104
|
prompts=prompts,
|
|
100
105
|
is_active=is_active,
|
|
101
106
|
description=description,
|
|
107
|
+
tools=tools,
|
|
102
108
|
tags=tags,
|
|
103
109
|
provider=provider,
|
|
104
110
|
meta=meta,
|
|
@@ -182,9 +188,10 @@ class AgentClient:
|
|
|
182
188
|
name: typing.Optional[str] = OMIT,
|
|
183
189
|
description: typing.Optional[str] = OMIT,
|
|
184
190
|
prompts: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
191
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
185
192
|
is_active: typing.Optional[bool] = OMIT,
|
|
186
193
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
187
|
-
provider: typing.Optional[
|
|
194
|
+
provider: typing.Optional[AgentProvider] = OMIT,
|
|
188
195
|
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
189
196
|
request_options: typing.Optional[RequestOptions] = None,
|
|
190
197
|
) -> AgentResponse:
|
|
@@ -205,13 +212,16 @@ class AgentClient:
|
|
|
205
212
|
prompts : typing.Optional[typing.Sequence[str]]
|
|
206
213
|
Array of prompt IDs to use for this agent
|
|
207
214
|
|
|
215
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
216
|
+
Array of MCP server tool IDs to use for this agent
|
|
217
|
+
|
|
208
218
|
is_active : typing.Optional[bool]
|
|
209
219
|
Whether the agent is active
|
|
210
220
|
|
|
211
221
|
tags : typing.Optional[typing.Sequence[str]]
|
|
212
222
|
Tags for categorizing the agent
|
|
213
223
|
|
|
214
|
-
provider : typing.Optional[
|
|
224
|
+
provider : typing.Optional[AgentProvider]
|
|
215
225
|
FHIR provider type - can be a single provider or array of providers
|
|
216
226
|
|
|
217
227
|
meta : typing.Optional[AgentFhirConfig]
|
|
@@ -240,6 +250,7 @@ class AgentClient:
|
|
|
240
250
|
name=name,
|
|
241
251
|
description=description,
|
|
242
252
|
prompts=prompts,
|
|
253
|
+
tools=tools,
|
|
243
254
|
is_active=is_active,
|
|
244
255
|
tags=tags,
|
|
245
256
|
provider=provider,
|
|
@@ -391,6 +402,60 @@ class AgentClient:
|
|
|
391
402
|
)
|
|
392
403
|
return _response.data
|
|
393
404
|
|
|
405
|
+
def get_chat_messages(
|
|
406
|
+
self,
|
|
407
|
+
*,
|
|
408
|
+
chat_session_id: str,
|
|
409
|
+
num_messages: typing.Optional[int] = None,
|
|
410
|
+
role: typing.Optional[str] = None,
|
|
411
|
+
order: typing.Optional[AgentGetChatMessagesRequestOrder] = None,
|
|
412
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
413
|
+
) -> AgentGetChatMessagesResponse:
|
|
414
|
+
"""
|
|
415
|
+
Retrieves a list of chat messages for a given chat session
|
|
416
|
+
|
|
417
|
+
Parameters
|
|
418
|
+
----------
|
|
419
|
+
chat_session_id : str
|
|
420
|
+
Chat session ID
|
|
421
|
+
|
|
422
|
+
num_messages : typing.Optional[int]
|
|
423
|
+
Number of messages to return
|
|
424
|
+
|
|
425
|
+
role : typing.Optional[str]
|
|
426
|
+
Filter by role
|
|
427
|
+
|
|
428
|
+
order : typing.Optional[AgentGetChatMessagesRequestOrder]
|
|
429
|
+
Order of messages
|
|
430
|
+
|
|
431
|
+
request_options : typing.Optional[RequestOptions]
|
|
432
|
+
Request-specific configuration.
|
|
433
|
+
|
|
434
|
+
Returns
|
|
435
|
+
-------
|
|
436
|
+
AgentGetChatMessagesResponse
|
|
437
|
+
Chat messages retrieved successfully
|
|
438
|
+
|
|
439
|
+
Examples
|
|
440
|
+
--------
|
|
441
|
+
from phenoml import phenoml
|
|
442
|
+
|
|
443
|
+
client = phenoml(
|
|
444
|
+
token="YOUR_TOKEN",
|
|
445
|
+
)
|
|
446
|
+
client.agent.get_chat_messages(
|
|
447
|
+
chat_session_id="chat_session_id",
|
|
448
|
+
)
|
|
449
|
+
"""
|
|
450
|
+
_response = self._raw_client.get_chat_messages(
|
|
451
|
+
chat_session_id=chat_session_id,
|
|
452
|
+
num_messages=num_messages,
|
|
453
|
+
role=role,
|
|
454
|
+
order=order,
|
|
455
|
+
request_options=request_options,
|
|
456
|
+
)
|
|
457
|
+
return _response.data
|
|
458
|
+
|
|
394
459
|
|
|
395
460
|
class AsyncAgentClient:
|
|
396
461
|
def __init__(self, *, client_wrapper: AsyncClientWrapper):
|
|
@@ -415,8 +480,9 @@ class AsyncAgentClient:
|
|
|
415
480
|
prompts: typing.Sequence[str],
|
|
416
481
|
is_active: bool,
|
|
417
482
|
description: typing.Optional[str] = OMIT,
|
|
483
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
418
484
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
419
|
-
provider: typing.Optional[
|
|
485
|
+
provider: typing.Optional[AgentProvider] = OMIT,
|
|
420
486
|
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
421
487
|
request_options: typing.Optional[RequestOptions] = None,
|
|
422
488
|
) -> AgentResponse:
|
|
@@ -437,10 +503,13 @@ class AsyncAgentClient:
|
|
|
437
503
|
description : typing.Optional[str]
|
|
438
504
|
Agent description
|
|
439
505
|
|
|
506
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
507
|
+
Array of MCP server tool IDs to use for this agent
|
|
508
|
+
|
|
440
509
|
tags : typing.Optional[typing.Sequence[str]]
|
|
441
510
|
Tags for categorizing the agent
|
|
442
511
|
|
|
443
|
-
provider : typing.Optional[
|
|
512
|
+
provider : typing.Optional[AgentProvider]
|
|
444
513
|
FHIR provider type - can be a single provider or array of providers
|
|
445
514
|
|
|
446
515
|
meta : typing.Optional[AgentFhirConfig]
|
|
@@ -479,6 +548,7 @@ class AsyncAgentClient:
|
|
|
479
548
|
prompts=prompts,
|
|
480
549
|
is_active=is_active,
|
|
481
550
|
description=description,
|
|
551
|
+
tools=tools,
|
|
482
552
|
tags=tags,
|
|
483
553
|
provider=provider,
|
|
484
554
|
meta=meta,
|
|
@@ -578,9 +648,10 @@ class AsyncAgentClient:
|
|
|
578
648
|
name: typing.Optional[str] = OMIT,
|
|
579
649
|
description: typing.Optional[str] = OMIT,
|
|
580
650
|
prompts: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
651
|
+
tools: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
581
652
|
is_active: typing.Optional[bool] = OMIT,
|
|
582
653
|
tags: typing.Optional[typing.Sequence[str]] = OMIT,
|
|
583
|
-
provider: typing.Optional[
|
|
654
|
+
provider: typing.Optional[AgentProvider] = OMIT,
|
|
584
655
|
meta: typing.Optional[AgentFhirConfig] = OMIT,
|
|
585
656
|
request_options: typing.Optional[RequestOptions] = None,
|
|
586
657
|
) -> AgentResponse:
|
|
@@ -601,13 +672,16 @@ class AsyncAgentClient:
|
|
|
601
672
|
prompts : typing.Optional[typing.Sequence[str]]
|
|
602
673
|
Array of prompt IDs to use for this agent
|
|
603
674
|
|
|
675
|
+
tools : typing.Optional[typing.Sequence[str]]
|
|
676
|
+
Array of MCP server tool IDs to use for this agent
|
|
677
|
+
|
|
604
678
|
is_active : typing.Optional[bool]
|
|
605
679
|
Whether the agent is active
|
|
606
680
|
|
|
607
681
|
tags : typing.Optional[typing.Sequence[str]]
|
|
608
682
|
Tags for categorizing the agent
|
|
609
683
|
|
|
610
|
-
provider : typing.Optional[
|
|
684
|
+
provider : typing.Optional[AgentProvider]
|
|
611
685
|
FHIR provider type - can be a single provider or array of providers
|
|
612
686
|
|
|
613
687
|
meta : typing.Optional[AgentFhirConfig]
|
|
@@ -644,6 +718,7 @@ class AsyncAgentClient:
|
|
|
644
718
|
name=name,
|
|
645
719
|
description=description,
|
|
646
720
|
prompts=prompts,
|
|
721
|
+
tools=tools,
|
|
647
722
|
is_active=is_active,
|
|
648
723
|
tags=tags,
|
|
649
724
|
provider=provider,
|
|
@@ -818,3 +893,65 @@ class AsyncAgentClient:
|
|
|
818
893
|
request_options=request_options,
|
|
819
894
|
)
|
|
820
895
|
return _response.data
|
|
896
|
+
|
|
897
|
+
async def get_chat_messages(
|
|
898
|
+
self,
|
|
899
|
+
*,
|
|
900
|
+
chat_session_id: str,
|
|
901
|
+
num_messages: typing.Optional[int] = None,
|
|
902
|
+
role: typing.Optional[str] = None,
|
|
903
|
+
order: typing.Optional[AgentGetChatMessagesRequestOrder] = None,
|
|
904
|
+
request_options: typing.Optional[RequestOptions] = None,
|
|
905
|
+
) -> AgentGetChatMessagesResponse:
|
|
906
|
+
"""
|
|
907
|
+
Retrieves a list of chat messages for a given chat session
|
|
908
|
+
|
|
909
|
+
Parameters
|
|
910
|
+
----------
|
|
911
|
+
chat_session_id : str
|
|
912
|
+
Chat session ID
|
|
913
|
+
|
|
914
|
+
num_messages : typing.Optional[int]
|
|
915
|
+
Number of messages to return
|
|
916
|
+
|
|
917
|
+
role : typing.Optional[str]
|
|
918
|
+
Filter by role
|
|
919
|
+
|
|
920
|
+
order : typing.Optional[AgentGetChatMessagesRequestOrder]
|
|
921
|
+
Order of messages
|
|
922
|
+
|
|
923
|
+
request_options : typing.Optional[RequestOptions]
|
|
924
|
+
Request-specific configuration.
|
|
925
|
+
|
|
926
|
+
Returns
|
|
927
|
+
-------
|
|
928
|
+
AgentGetChatMessagesResponse
|
|
929
|
+
Chat messages retrieved successfully
|
|
930
|
+
|
|
931
|
+
Examples
|
|
932
|
+
--------
|
|
933
|
+
import asyncio
|
|
934
|
+
|
|
935
|
+
from phenoml import Asyncphenoml
|
|
936
|
+
|
|
937
|
+
client = Asyncphenoml(
|
|
938
|
+
token="YOUR_TOKEN",
|
|
939
|
+
)
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
async def main() -> None:
|
|
943
|
+
await client.agent.get_chat_messages(
|
|
944
|
+
chat_session_id="chat_session_id",
|
|
945
|
+
)
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
asyncio.run(main())
|
|
949
|
+
"""
|
|
950
|
+
_response = await self._raw_client.get_chat_messages(
|
|
951
|
+
chat_session_id=chat_session_id,
|
|
952
|
+
num_messages=num_messages,
|
|
953
|
+
role=role,
|
|
954
|
+
order=order,
|
|
955
|
+
request_options=request_options,
|
|
956
|
+
)
|
|
957
|
+
return _response.data
|