1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
from warnings import warn
from twilio.rest.assistants import AssistantsBase
from twilio.rest.assistants.v1.assistant import AssistantList
from twilio.rest.assistants.v1.knowledge import KnowledgeList
from twilio.rest.assistants.v1.policy import PolicyList
from twilio.rest.assistants.v1.session import SessionList
from twilio.rest.assistants.v1.tool import ToolList
class Assistants(AssistantsBase):
@property
def assistants(self) -> AssistantList:
warn(
"assistants is deprecated. Use v1.assistants instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.assistants
@property
def knowledge(self) -> KnowledgeList:
warn(
"knowledge is deprecated. Use v1.knowledge instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.knowledge
@property
def policies(self) -> PolicyList:
warn(
"policies is deprecated. Use v1.policies instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.policies
@property
def sessions(self) -> SessionList:
warn(
"sessions is deprecated. Use v1.sessions instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.sessions
@property
def tools(self) -> ToolList:
warn(
"tools is deprecated. Use v1.tools instead.",
DeprecationWarning,
stacklevel=2,
)
return self.v1.tools
|