From 33639a6216bb811ad5b13142690c3d10771d0415 Mon Sep 17 00:00:00 2001 From: bwmac Date: Thu, 16 Jan 2025 16:20:02 -0500 Subject: [PATCH] add to mixins --- synapseclient/models/agent.py | 8 ++++---- synapseclient/models/mixins/__init__.py | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/synapseclient/models/agent.py b/synapseclient/models/agent.py index 414739b0d..8a74a3d61 100644 --- a/synapseclient/models/agent.py +++ b/synapseclient/models/agent.py @@ -14,7 +14,7 @@ ) from synapseclient.core.async_utils import async_to_sync, otel_trace_method from synapseclient.core.constants.concrete_types import AGENT_CHAT_REQUEST -from synapseclient.models.mixins.asynchronous_job import AsynchronousCommunicator +from synapseclient.models.mixins import AsynchronousCommunicator from synapseclient.models.protocols.agent_protocol import ( AgentSessionSynchronousProtocol, AgentSynchronousProtocol, @@ -193,9 +193,9 @@ class AgentSession(AgentSessionSynchronousProtocol): id: Optional[str] = None """The unique ID of the agent session. Can only be used by the user that created it.""" - access_level: Optional[AgentSessionAccessLevel] = ( - AgentSessionAccessLevel.PUBLICLY_ACCESSIBLE - ) + access_level: Optional[ + AgentSessionAccessLevel + ] = AgentSessionAccessLevel.PUBLICLY_ACCESSIBLE """The access level of the agent session. One of PUBLICLY_ACCESSIBLE, READ_YOUR_PRIVATE_DATA, or WRITE_YOUR_PRIVATE_DATA. Defaults to PUBLICLY_ACCESSIBLE. diff --git a/synapseclient/models/mixins/__init__.py b/synapseclient/models/mixins/__init__.py index 0fb23dac7..93a98589c 100644 --- a/synapseclient/models/mixins/__init__.py +++ b/synapseclient/models/mixins/__init__.py @@ -1,9 +1,11 @@ """References to the mixins that are used in the Synapse models.""" from synapseclient.models.mixins.access_control import AccessControllable +from synapseclient.models.mixins.asynchronous_job import AsynchronousCommunicator from synapseclient.models.mixins.storable_container import StorableContainer __all__ = [ "AccessControllable", "StorableContainer", + "AsynchronousCommunicator", ]