Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "phenoml"

[tool.poetry]
name = "phenoml"
version = "0.0.2"
version = "v0.0.5"
description = ""
readme = "README.md"
authors = []
Expand Down
73 changes: 14 additions & 59 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,7 @@ client.agent.create(
<dl>
<dd>

**provider:** `typing.Optional[AgentProvider]` — FHIR provider type - can be a single provider or array of providers

</dd>
</dl>

<dl>
<dd>

**meta:** `typing.Optional[AgentFhirConfig]`
**provider:** `typing.Optional[AgentCreateRequestProvider]` — FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers

</dd>
</dl>
Expand Down Expand Up @@ -308,6 +300,9 @@ client = phenoml(
)
client.agent.update(
id="id",
name="name",
prompts=["prompt_123", "prompt_456"],
is_active=True,
)

```
Expand All @@ -332,39 +327,39 @@ client.agent.update(
<dl>
<dd>

**name:** `typing.Optional[str]` — Agent name
**name:** `str` — Agent name

</dd>
</dl>

<dl>
<dd>

**description:** `typing.Optional[str]` — Agent description
**prompts:** `typing.Sequence[str]` — Array of prompt IDs to use for this agent

</dd>
</dl>

<dl>
<dd>

**prompts:** `typing.Optional[typing.Sequence[str]]` — Array of prompt IDs to use for this agent
**is_active:** `bool` — Whether the agent is active

</dd>
</dl>

<dl>
<dd>

**tools:** `typing.Optional[typing.Sequence[str]]` — Array of MCP server tool IDs to use for this agent
**description:** `typing.Optional[str]` — Agent description

</dd>
</dl>

<dl>
<dd>

**is_active:** `typing.Optional[bool]` — Whether the agent is active
**tools:** `typing.Optional[typing.Sequence[str]]` — Array of MCP server tool IDs to use for this agent

</dd>
</dl>
Expand All @@ -380,15 +375,7 @@ client.agent.update(
<dl>
<dd>

**provider:** `typing.Optional[AgentProvider]` — FHIR provider type - can be a single provider or array of providers

</dd>
</dl>

<dl>
<dd>

**meta:** `typing.Optional[AgentFhirConfig]`
**provider:** `typing.Optional[AgentCreateRequestProvider]` — FHIR provider ID(s) - must be valid UUIDs from existing FHIR providers

</dd>
</dl>
Expand Down Expand Up @@ -656,14 +643,6 @@ client.agent.chat(
<dl>
<dd>

**meta:** `typing.Optional[ChatFhirClientConfig]` — Optional user-specific FHIR configuration overrides

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
Expand Down Expand Up @@ -2216,15 +2195,7 @@ client.tools.create_fhir_resource(
<dl>
<dd>

**provider:** `typing.Optional[Lang2FhirAndCreateRequestProvider]` — FHIR provider to use for storing the resource

</dd>
</dl>

<dl>
<dd>

**meta:** `typing.Optional[FhirClientConfig]`
**provider:** `typing.Optional[str]` — FHIR provider ID - must be a valid UUID from existing FHIR providers. also supports provider by name (e.g. medplum)

</dd>
</dl>
Expand Down Expand Up @@ -2326,15 +2297,7 @@ client.tools.search_fhir_resources(
<dl>
<dd>

**provider:** `typing.Optional[Lang2FhirAndSearchRequestProvider]` — FHIR provider to use for searching

</dd>
</dl>

<dl>
<dd>

**meta:** `typing.Optional[FhirClientConfig]`
**provider:** `typing.Optional[str]` — FHIR provider ID - must be a valid UUID from existing FHIR providers. also supports provider by name (e.g. medplum)

</dd>
</dl>
Expand Down Expand Up @@ -2388,7 +2351,7 @@ client = phenoml(
)
client.tools.analyze_cohort(
text="female patients over 20 with diabetes but not hypertension",
provider="medplum",
provider="550e8400-e29b-41d4-a716-446655440000",
)

```
Expand All @@ -2413,15 +2376,7 @@ client.tools.analyze_cohort(
<dl>
<dd>

**provider:** `CohortRequestProvider` — FHIR provider to use for searching

</dd>
</dl>

<dl>
<dd>

**meta:** `typing.Optional[FhirClientConfig]`
**provider:** `str` — FHIR provider ID - must be a valid UUID from existing FHIR providers. also supports provider by name (e.g. medplum)

</dd>
</dl>
Expand Down
14 changes: 6 additions & 8 deletions src/phenoml/agent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,22 @@

from .types import (
AgentChatResponse,
AgentCreateRequest,
AgentCreateRequestProvider,
AgentDeleteResponse,
AgentFhirConfig,
AgentGetChatMessagesRequestOrder,
AgentGetChatMessagesResponse,
AgentListResponse,
AgentPromptsResponse,
AgentProvider,
AgentResponse,
AgentTemplate,
ChatFhirClientConfig,
AgentTemplateProvider,
ChatMessageTemplate,
ChatSessionTemplate,
JsonPatch,
JsonPatchOperation,
JsonPatchOperationOp,
PromptTemplate,
ProviderType,
SuccessResponse,
)
from .errors import BadRequestError, ForbiddenError, InternalServerError, NotFoundError, UnauthorizedError
Expand All @@ -29,17 +28,17 @@

__all__ = [
"AgentChatResponse",
"AgentCreateRequest",
"AgentCreateRequestProvider",
"AgentDeleteResponse",
"AgentFhirConfig",
"AgentGetChatMessagesRequestOrder",
"AgentGetChatMessagesResponse",
"AgentListResponse",
"AgentPromptsResponse",
"AgentProvider",
"AgentResponse",
"AgentTemplate",
"AgentTemplateProvider",
"BadRequestError",
"ChatFhirClientConfig",
"ChatMessageTemplate",
"ChatSessionTemplate",
"ForbiddenError",
Expand All @@ -51,7 +50,6 @@
"PromptTemplate",
"PromptsDeleteResponse",
"PromptsListResponse",
"ProviderType",
"SuccessResponse",
"UnauthorizedError",
"prompts",
Expand Down
Loading