syllable-sdk 0.40.0__py3-none-any.whl → 0.41.1__py3-none-any.whl
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.
- syllable_sdk/_version.py +3 -3
- syllable_sdk/directory.py +211 -12
- syllable_sdk/models/__init__.py +38 -25
- syllable_sdk/models/daotoolresponse.py +112 -0
- syllable_sdk/models/directory_member_test_extensionop.py +70 -0
- syllable_sdk/models/directory_member_updateop.py +4 -4
- syllable_sdk/models/directoryextension.py +10 -10
- syllable_sdk/models/directoryextensionnumber.py +58 -0
- syllable_sdk/models/directorymember.py +19 -33
- syllable_sdk/models/directorymembercreate.py +7 -30
- syllable_sdk/models/directorymemberproperties.py +1 -0
- syllable_sdk/models/directorymembertestresponse.py +52 -0
- syllable_sdk/models/directorymemberupdate.py +78 -0
- syllable_sdk/models/promptcreaterequest.py +12 -1
- syllable_sdk/models/promptresponse.py +15 -0
- syllable_sdk/models/promptupdaterequest.py +12 -1
- syllable_sdk/models/toolhttpmethod.py +2 -0
- {syllable_sdk-0.40.0.dist-info → syllable_sdk-0.41.1.dist-info}/METADATA +2 -1
- {syllable_sdk-0.40.0.dist-info → syllable_sdk-0.41.1.dist-info}/RECORD +20 -15
- {syllable_sdk-0.40.0.dist-info → syllable_sdk-0.41.1.dist-info}/WHEEL +0 -0
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .directoryextensionnumber import (
|
|
5
|
+
DirectoryExtensionNumber,
|
|
6
|
+
DirectoryExtensionNumberTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from pydantic import model_serializer
|
|
5
9
|
from syllable_sdk.types import (
|
|
6
10
|
BaseModel,
|
|
@@ -13,23 +17,19 @@ from typing import List
|
|
|
13
17
|
from typing_extensions import NotRequired, TypedDict
|
|
14
18
|
|
|
15
19
|
|
|
16
|
-
class NumberTypedDict(TypedDict):
|
|
17
|
-
pass
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class Number(BaseModel):
|
|
21
|
-
pass
|
|
22
|
-
|
|
23
|
-
|
|
24
20
|
class DirectoryExtensionTypedDict(TypedDict):
|
|
25
21
|
name: str
|
|
26
|
-
|
|
22
|
+
r"""Directory extension name"""
|
|
23
|
+
numbers: NotRequired[Nullable[List[DirectoryExtensionNumberTypedDict]]]
|
|
24
|
+
r"""Directory extension numbers."""
|
|
27
25
|
|
|
28
26
|
|
|
29
27
|
class DirectoryExtension(BaseModel):
|
|
30
28
|
name: str
|
|
29
|
+
r"""Directory extension name"""
|
|
31
30
|
|
|
32
|
-
numbers: OptionalNullable[List[
|
|
31
|
+
numbers: OptionalNullable[List[DirectoryExtensionNumber]] = UNSET
|
|
32
|
+
r"""Directory extension numbers."""
|
|
33
33
|
|
|
34
34
|
@model_serializer(mode="wrap")
|
|
35
35
|
def serialize_model(self, handler):
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from pydantic import model_serializer
|
|
5
|
+
from syllable_sdk.types import (
|
|
6
|
+
BaseModel,
|
|
7
|
+
Nullable,
|
|
8
|
+
OptionalNullable,
|
|
9
|
+
UNSET,
|
|
10
|
+
UNSET_SENTINEL,
|
|
11
|
+
)
|
|
12
|
+
from typing import Dict, List
|
|
13
|
+
from typing_extensions import NotRequired, TypedDict
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class DirectoryExtensionNumberTypedDict(TypedDict):
|
|
17
|
+
number: str
|
|
18
|
+
r"""Phone number"""
|
|
19
|
+
rules: NotRequired[Nullable[List[Dict[str, str]]]]
|
|
20
|
+
r"""Directory extension number rules. To include a language rule, use key \"language\" with a language code value."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class DirectoryExtensionNumber(BaseModel):
|
|
24
|
+
number: str
|
|
25
|
+
r"""Phone number"""
|
|
26
|
+
|
|
27
|
+
rules: OptionalNullable[List[Dict[str, str]]] = UNSET
|
|
28
|
+
r"""Directory extension number rules. To include a language rule, use key \"language\" with a language code value."""
|
|
29
|
+
|
|
30
|
+
@model_serializer(mode="wrap")
|
|
31
|
+
def serialize_model(self, handler):
|
|
32
|
+
optional_fields = ["rules"]
|
|
33
|
+
nullable_fields = ["rules"]
|
|
34
|
+
null_default_fields = []
|
|
35
|
+
|
|
36
|
+
serialized = handler(self)
|
|
37
|
+
|
|
38
|
+
m = {}
|
|
39
|
+
|
|
40
|
+
for n, f in type(self).model_fields.items():
|
|
41
|
+
k = f.alias or n
|
|
42
|
+
val = serialized.get(k)
|
|
43
|
+
serialized.pop(k, None)
|
|
44
|
+
|
|
45
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
46
|
+
is_set = (
|
|
47
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
48
|
+
or k in null_default_fields
|
|
49
|
+
) # pylint: disable=no-member
|
|
50
|
+
|
|
51
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
52
|
+
m[k] = val
|
|
53
|
+
elif val != UNSET_SENTINEL and (
|
|
54
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
55
|
+
):
|
|
56
|
+
m[k] = val
|
|
57
|
+
|
|
58
|
+
return m
|
|
@@ -11,18 +11,10 @@ from syllable_sdk.types import (
|
|
|
11
11
|
UNSET,
|
|
12
12
|
UNSET_SENTINEL,
|
|
13
13
|
)
|
|
14
|
-
from typing import List
|
|
14
|
+
from typing import Dict, List
|
|
15
15
|
from typing_extensions import NotRequired, TypedDict
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class DirectoryMemberContactTagsTypedDict(TypedDict):
|
|
19
|
-
pass
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class DirectoryMemberContactTags(BaseModel):
|
|
23
|
-
pass
|
|
24
|
-
|
|
25
|
-
|
|
26
18
|
class DirectoryMemberTypedDict(TypedDict):
|
|
27
19
|
r"""Model for a directory member (i.e. a contact)."""
|
|
28
20
|
|
|
@@ -30,13 +22,16 @@ class DirectoryMemberTypedDict(TypedDict):
|
|
|
30
22
|
r"""Name of the directory member"""
|
|
31
23
|
type: str
|
|
32
24
|
r"""Type of the directory member"""
|
|
25
|
+
id: int
|
|
26
|
+
r"""Internal ID of the directory member"""
|
|
27
|
+
updated_at: datetime
|
|
28
|
+
r"""Timestamp of most recent update"""
|
|
33
29
|
extensions: NotRequired[Nullable[List[DirectoryExtensionTypedDict]]]
|
|
34
30
|
r"""List of extensions for the directory member"""
|
|
35
|
-
contact_tags: NotRequired[Nullable[
|
|
36
|
-
|
|
31
|
+
contact_tags: NotRequired[Nullable[Dict[str, List[str]]]]
|
|
32
|
+
r"""Tags for the directory member"""
|
|
37
33
|
last_updated_by: NotRequired[Nullable[str]]
|
|
38
|
-
|
|
39
|
-
r"""Internal ID of the directory member"""
|
|
34
|
+
r"""Email of the user who last updated the directory member"""
|
|
40
35
|
|
|
41
36
|
|
|
42
37
|
class DirectoryMember(BaseModel):
|
|
@@ -48,34 +43,25 @@ class DirectoryMember(BaseModel):
|
|
|
48
43
|
type: str
|
|
49
44
|
r"""Type of the directory member"""
|
|
50
45
|
|
|
46
|
+
id: int
|
|
47
|
+
r"""Internal ID of the directory member"""
|
|
48
|
+
|
|
49
|
+
updated_at: datetime
|
|
50
|
+
r"""Timestamp of most recent update"""
|
|
51
|
+
|
|
51
52
|
extensions: OptionalNullable[List[DirectoryExtension]] = UNSET
|
|
52
53
|
r"""List of extensions for the directory member"""
|
|
53
54
|
|
|
54
|
-
contact_tags: OptionalNullable[
|
|
55
|
-
|
|
56
|
-
updated_at: OptionalNullable[datetime] = UNSET
|
|
55
|
+
contact_tags: OptionalNullable[Dict[str, List[str]]] = UNSET
|
|
56
|
+
r"""Tags for the directory member"""
|
|
57
57
|
|
|
58
58
|
last_updated_by: OptionalNullable[str] = UNSET
|
|
59
|
-
|
|
60
|
-
id: OptionalNullable[int] = UNSET
|
|
61
|
-
r"""Internal ID of the directory member"""
|
|
59
|
+
r"""Email of the user who last updated the directory member"""
|
|
62
60
|
|
|
63
61
|
@model_serializer(mode="wrap")
|
|
64
62
|
def serialize_model(self, handler):
|
|
65
|
-
optional_fields = [
|
|
66
|
-
|
|
67
|
-
"contact_tags",
|
|
68
|
-
"updated_at",
|
|
69
|
-
"last_updated_by",
|
|
70
|
-
"id",
|
|
71
|
-
]
|
|
72
|
-
nullable_fields = [
|
|
73
|
-
"extensions",
|
|
74
|
-
"contact_tags",
|
|
75
|
-
"updated_at",
|
|
76
|
-
"last_updated_by",
|
|
77
|
-
"id",
|
|
78
|
-
]
|
|
63
|
+
optional_fields = ["extensions", "contact_tags", "last_updated_by"]
|
|
64
|
+
nullable_fields = ["extensions", "contact_tags", "last_updated_by"]
|
|
79
65
|
null_default_fields = []
|
|
80
66
|
|
|
81
67
|
serialized = handler(self)
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
from .directoryextension import DirectoryExtension, DirectoryExtensionTypedDict
|
|
5
|
-
from datetime import datetime
|
|
6
5
|
from pydantic import model_serializer
|
|
7
6
|
from syllable_sdk.types import (
|
|
8
7
|
BaseModel,
|
|
@@ -11,18 +10,10 @@ from syllable_sdk.types import (
|
|
|
11
10
|
UNSET,
|
|
12
11
|
UNSET_SENTINEL,
|
|
13
12
|
)
|
|
14
|
-
from typing import List
|
|
13
|
+
from typing import Dict, List
|
|
15
14
|
from typing_extensions import NotRequired, TypedDict
|
|
16
15
|
|
|
17
16
|
|
|
18
|
-
class DirectoryMemberCreateContactTagsTypedDict(TypedDict):
|
|
19
|
-
pass
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class DirectoryMemberCreateContactTags(BaseModel):
|
|
23
|
-
pass
|
|
24
|
-
|
|
25
|
-
|
|
26
17
|
class DirectoryMemberCreateTypedDict(TypedDict):
|
|
27
18
|
r"""Request model to create a directory member."""
|
|
28
19
|
|
|
@@ -32,9 +23,8 @@ class DirectoryMemberCreateTypedDict(TypedDict):
|
|
|
32
23
|
r"""Type of the directory member"""
|
|
33
24
|
extensions: NotRequired[Nullable[List[DirectoryExtensionTypedDict]]]
|
|
34
25
|
r"""List of extensions for the directory member"""
|
|
35
|
-
contact_tags: NotRequired[Nullable[
|
|
36
|
-
|
|
37
|
-
last_updated_by: NotRequired[Nullable[str]]
|
|
26
|
+
contact_tags: NotRequired[Nullable[Dict[str, List[str]]]]
|
|
27
|
+
r"""Tags for the directory member"""
|
|
38
28
|
|
|
39
29
|
|
|
40
30
|
class DirectoryMemberCreate(BaseModel):
|
|
@@ -49,26 +39,13 @@ class DirectoryMemberCreate(BaseModel):
|
|
|
49
39
|
extensions: OptionalNullable[List[DirectoryExtension]] = UNSET
|
|
50
40
|
r"""List of extensions for the directory member"""
|
|
51
41
|
|
|
52
|
-
contact_tags: OptionalNullable[
|
|
53
|
-
|
|
54
|
-
updated_at: OptionalNullable[datetime] = UNSET
|
|
55
|
-
|
|
56
|
-
last_updated_by: OptionalNullable[str] = UNSET
|
|
42
|
+
contact_tags: OptionalNullable[Dict[str, List[str]]] = UNSET
|
|
43
|
+
r"""Tags for the directory member"""
|
|
57
44
|
|
|
58
45
|
@model_serializer(mode="wrap")
|
|
59
46
|
def serialize_model(self, handler):
|
|
60
|
-
optional_fields = [
|
|
61
|
-
|
|
62
|
-
"contact_tags",
|
|
63
|
-
"updated_at",
|
|
64
|
-
"last_updated_by",
|
|
65
|
-
]
|
|
66
|
-
nullable_fields = [
|
|
67
|
-
"extensions",
|
|
68
|
-
"contact_tags",
|
|
69
|
-
"updated_at",
|
|
70
|
-
"last_updated_by",
|
|
71
|
-
]
|
|
47
|
+
optional_fields = ["extensions", "contact_tags"]
|
|
48
|
+
nullable_fields = ["extensions", "contact_tags"]
|
|
72
49
|
null_default_fields = []
|
|
73
50
|
|
|
74
51
|
serialized = handler(self)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from pydantic import model_serializer
|
|
5
|
+
from syllable_sdk.types import (
|
|
6
|
+
BaseModel,
|
|
7
|
+
Nullable,
|
|
8
|
+
OptionalNullable,
|
|
9
|
+
UNSET,
|
|
10
|
+
UNSET_SENTINEL,
|
|
11
|
+
)
|
|
12
|
+
from typing_extensions import NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DirectoryMemberTestResponseTypedDict(TypedDict):
|
|
16
|
+
extension: NotRequired[Nullable[str]]
|
|
17
|
+
r"""Extension to which the user will be transferred if they call at the provided timestamp in the given language"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class DirectoryMemberTestResponse(BaseModel):
|
|
21
|
+
extension: OptionalNullable[str] = UNSET
|
|
22
|
+
r"""Extension to which the user will be transferred if they call at the provided timestamp in the given language"""
|
|
23
|
+
|
|
24
|
+
@model_serializer(mode="wrap")
|
|
25
|
+
def serialize_model(self, handler):
|
|
26
|
+
optional_fields = ["extension"]
|
|
27
|
+
nullable_fields = ["extension"]
|
|
28
|
+
null_default_fields = []
|
|
29
|
+
|
|
30
|
+
serialized = handler(self)
|
|
31
|
+
|
|
32
|
+
m = {}
|
|
33
|
+
|
|
34
|
+
for n, f in type(self).model_fields.items():
|
|
35
|
+
k = f.alias or n
|
|
36
|
+
val = serialized.get(k)
|
|
37
|
+
serialized.pop(k, None)
|
|
38
|
+
|
|
39
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
40
|
+
is_set = (
|
|
41
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
42
|
+
or k in null_default_fields
|
|
43
|
+
) # pylint: disable=no-member
|
|
44
|
+
|
|
45
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
46
|
+
m[k] = val
|
|
47
|
+
elif val != UNSET_SENTINEL and (
|
|
48
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
49
|
+
):
|
|
50
|
+
m[k] = val
|
|
51
|
+
|
|
52
|
+
return m
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .directoryextension import DirectoryExtension, DirectoryExtensionTypedDict
|
|
5
|
+
from pydantic import model_serializer
|
|
6
|
+
from syllable_sdk.types import (
|
|
7
|
+
BaseModel,
|
|
8
|
+
Nullable,
|
|
9
|
+
OptionalNullable,
|
|
10
|
+
UNSET,
|
|
11
|
+
UNSET_SENTINEL,
|
|
12
|
+
)
|
|
13
|
+
from typing import Dict, List
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class DirectoryMemberUpdateTypedDict(TypedDict):
|
|
18
|
+
r"""Request model to update a directory member."""
|
|
19
|
+
|
|
20
|
+
name: str
|
|
21
|
+
r"""Name of the directory member"""
|
|
22
|
+
type: str
|
|
23
|
+
r"""Type of the directory member"""
|
|
24
|
+
id: int
|
|
25
|
+
r"""Internal ID of the directory member"""
|
|
26
|
+
extensions: NotRequired[Nullable[List[DirectoryExtensionTypedDict]]]
|
|
27
|
+
r"""List of extensions for the directory member"""
|
|
28
|
+
contact_tags: NotRequired[Nullable[Dict[str, List[str]]]]
|
|
29
|
+
r"""Tags for the directory member"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class DirectoryMemberUpdate(BaseModel):
|
|
33
|
+
r"""Request model to update a directory member."""
|
|
34
|
+
|
|
35
|
+
name: str
|
|
36
|
+
r"""Name of the directory member"""
|
|
37
|
+
|
|
38
|
+
type: str
|
|
39
|
+
r"""Type of the directory member"""
|
|
40
|
+
|
|
41
|
+
id: int
|
|
42
|
+
r"""Internal ID of the directory member"""
|
|
43
|
+
|
|
44
|
+
extensions: OptionalNullable[List[DirectoryExtension]] = UNSET
|
|
45
|
+
r"""List of extensions for the directory member"""
|
|
46
|
+
|
|
47
|
+
contact_tags: OptionalNullable[Dict[str, List[str]]] = UNSET
|
|
48
|
+
r"""Tags for the directory member"""
|
|
49
|
+
|
|
50
|
+
@model_serializer(mode="wrap")
|
|
51
|
+
def serialize_model(self, handler):
|
|
52
|
+
optional_fields = ["extensions", "contact_tags"]
|
|
53
|
+
nullable_fields = ["extensions", "contact_tags"]
|
|
54
|
+
null_default_fields = []
|
|
55
|
+
|
|
56
|
+
serialized = handler(self)
|
|
57
|
+
|
|
58
|
+
m = {}
|
|
59
|
+
|
|
60
|
+
for n, f in type(self).model_fields.items():
|
|
61
|
+
k = f.alias or n
|
|
62
|
+
val = serialized.get(k)
|
|
63
|
+
serialized.pop(k, None)
|
|
64
|
+
|
|
65
|
+
optional_nullable = k in optional_fields and k in nullable_fields
|
|
66
|
+
is_set = (
|
|
67
|
+
self.__pydantic_fields_set__.intersection({n})
|
|
68
|
+
or k in null_default_fields
|
|
69
|
+
) # pylint: disable=no-member
|
|
70
|
+
|
|
71
|
+
if val is not None and val != UNSET_SENTINEL:
|
|
72
|
+
m[k] = val
|
|
73
|
+
elif val != UNSET_SENTINEL and (
|
|
74
|
+
not k in optional_fields or (optional_nullable and is_set)
|
|
75
|
+
):
|
|
76
|
+
m[k] = val
|
|
77
|
+
|
|
78
|
+
return m
|
|
@@ -31,6 +31,8 @@ class PromptCreateRequestTypedDict(TypedDict):
|
|
|
31
31
|
r"""Names of tools to which the prompt has access"""
|
|
32
32
|
session_end_enabled: NotRequired[bool]
|
|
33
33
|
r"""Whether session end functionality is enabled for this prompt"""
|
|
34
|
+
session_end_tool_id: NotRequired[Nullable[int]]
|
|
35
|
+
r"""ID of the optional session end tool associated with the prompt"""
|
|
34
36
|
edit_comments: NotRequired[Nullable[str]]
|
|
35
37
|
r"""The comments for the most recent edit to the prompt"""
|
|
36
38
|
include_default_tools: NotRequired[bool]
|
|
@@ -61,6 +63,9 @@ class PromptCreateRequest(BaseModel):
|
|
|
61
63
|
session_end_enabled: Optional[bool] = False
|
|
62
64
|
r"""Whether session end functionality is enabled for this prompt"""
|
|
63
65
|
|
|
66
|
+
session_end_tool_id: OptionalNullable[int] = UNSET
|
|
67
|
+
r"""ID of the optional session end tool associated with the prompt"""
|
|
68
|
+
|
|
64
69
|
edit_comments: OptionalNullable[str] = UNSET
|
|
65
70
|
r"""The comments for the most recent edit to the prompt"""
|
|
66
71
|
|
|
@@ -74,10 +79,16 @@ class PromptCreateRequest(BaseModel):
|
|
|
74
79
|
"context",
|
|
75
80
|
"tools",
|
|
76
81
|
"session_end_enabled",
|
|
82
|
+
"session_end_tool_id",
|
|
77
83
|
"edit_comments",
|
|
78
84
|
"include_default_tools",
|
|
79
85
|
]
|
|
80
|
-
nullable_fields = [
|
|
86
|
+
nullable_fields = [
|
|
87
|
+
"description",
|
|
88
|
+
"context",
|
|
89
|
+
"session_end_tool_id",
|
|
90
|
+
"edit_comments",
|
|
91
|
+
]
|
|
81
92
|
null_default_fields = []
|
|
82
93
|
|
|
83
94
|
serialized = handler(self)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .daotoolresponse import DaoToolResponse, DaoToolResponseTypedDict
|
|
4
5
|
from .promptllmconfig import PromptLlmConfig, PromptLlmConfigTypedDict
|
|
5
6
|
from .toolresponse import ToolResponse, ToolResponseTypedDict
|
|
6
7
|
import pydantic
|
|
@@ -42,10 +43,14 @@ class PromptResponseTypedDict(TypedDict):
|
|
|
42
43
|
r"""Names of the tools to which the prompt has access (DEPRECATED - use information from full tools field instead)"""
|
|
43
44
|
session_end_enabled: NotRequired[bool]
|
|
44
45
|
r"""Whether session end functionality is enabled for this prompt"""
|
|
46
|
+
session_end_tool_id: NotRequired[Nullable[int]]
|
|
47
|
+
r"""ID of the optional session end tool associated with the prompt"""
|
|
45
48
|
edit_comments: NotRequired[Nullable[str]]
|
|
46
49
|
r"""The comments for the most recent edit to the prompt"""
|
|
47
50
|
last_updated_by: NotRequired[Nullable[str]]
|
|
48
51
|
r"""Email address of the user who most recently updated the prompt"""
|
|
52
|
+
session_end_tool: NotRequired[Nullable[DaoToolResponseTypedDict]]
|
|
53
|
+
r"""The session end tool associated with the prompt"""
|
|
49
54
|
agent_count: NotRequired[Nullable[int]]
|
|
50
55
|
r"""The number of agents using the prompt"""
|
|
51
56
|
version_number: NotRequired[Nullable[int]]
|
|
@@ -94,12 +99,18 @@ class PromptResponse(BaseModel):
|
|
|
94
99
|
session_end_enabled: Optional[bool] = False
|
|
95
100
|
r"""Whether session end functionality is enabled for this prompt"""
|
|
96
101
|
|
|
102
|
+
session_end_tool_id: OptionalNullable[int] = UNSET
|
|
103
|
+
r"""ID of the optional session end tool associated with the prompt"""
|
|
104
|
+
|
|
97
105
|
edit_comments: OptionalNullable[str] = UNSET
|
|
98
106
|
r"""The comments for the most recent edit to the prompt"""
|
|
99
107
|
|
|
100
108
|
last_updated_by: OptionalNullable[str] = UNSET
|
|
101
109
|
r"""Email address of the user who most recently updated the prompt"""
|
|
102
110
|
|
|
111
|
+
session_end_tool: OptionalNullable[DaoToolResponse] = UNSET
|
|
112
|
+
r"""The session end tool associated with the prompt"""
|
|
113
|
+
|
|
103
114
|
agent_count: OptionalNullable[int] = UNSET
|
|
104
115
|
r"""The number of agents using the prompt"""
|
|
105
116
|
|
|
@@ -116,8 +127,10 @@ class PromptResponse(BaseModel):
|
|
|
116
127
|
"context",
|
|
117
128
|
"tools",
|
|
118
129
|
"session_end_enabled",
|
|
130
|
+
"session_end_tool_id",
|
|
119
131
|
"edit_comments",
|
|
120
132
|
"last_updated_by",
|
|
133
|
+
"session_end_tool",
|
|
121
134
|
"agent_count",
|
|
122
135
|
"version_number",
|
|
123
136
|
"tools_full",
|
|
@@ -125,9 +138,11 @@ class PromptResponse(BaseModel):
|
|
|
125
138
|
nullable_fields = [
|
|
126
139
|
"description",
|
|
127
140
|
"context",
|
|
141
|
+
"session_end_tool_id",
|
|
128
142
|
"edit_comments",
|
|
129
143
|
"last_updated",
|
|
130
144
|
"last_updated_by",
|
|
145
|
+
"session_end_tool",
|
|
131
146
|
"agent_count",
|
|
132
147
|
"version_number",
|
|
133
148
|
"tools_full",
|
|
@@ -33,6 +33,8 @@ class PromptUpdateRequestTypedDict(TypedDict):
|
|
|
33
33
|
r"""Names of tools to which the prompt has access"""
|
|
34
34
|
session_end_enabled: NotRequired[bool]
|
|
35
35
|
r"""Whether session end functionality is enabled for this prompt"""
|
|
36
|
+
session_end_tool_id: NotRequired[Nullable[int]]
|
|
37
|
+
r"""ID of the optional session end tool associated with the prompt"""
|
|
36
38
|
edit_comments: NotRequired[Nullable[str]]
|
|
37
39
|
r"""The comments for the most recent edit to the prompt"""
|
|
38
40
|
include_default_tools: NotRequired[bool]
|
|
@@ -66,6 +68,9 @@ class PromptUpdateRequest(BaseModel):
|
|
|
66
68
|
session_end_enabled: Optional[bool] = False
|
|
67
69
|
r"""Whether session end functionality is enabled for this prompt"""
|
|
68
70
|
|
|
71
|
+
session_end_tool_id: OptionalNullable[int] = UNSET
|
|
72
|
+
r"""ID of the optional session end tool associated with the prompt"""
|
|
73
|
+
|
|
69
74
|
edit_comments: OptionalNullable[str] = UNSET
|
|
70
75
|
r"""The comments for the most recent edit to the prompt"""
|
|
71
76
|
|
|
@@ -79,10 +84,16 @@ class PromptUpdateRequest(BaseModel):
|
|
|
79
84
|
"context",
|
|
80
85
|
"tools",
|
|
81
86
|
"session_end_enabled",
|
|
87
|
+
"session_end_tool_id",
|
|
82
88
|
"edit_comments",
|
|
83
89
|
"include_default_tools",
|
|
84
90
|
]
|
|
85
|
-
nullable_fields = [
|
|
91
|
+
nullable_fields = [
|
|
92
|
+
"description",
|
|
93
|
+
"context",
|
|
94
|
+
"session_end_tool_id",
|
|
95
|
+
"edit_comments",
|
|
96
|
+
]
|
|
86
97
|
null_default_fields = []
|
|
87
98
|
|
|
88
99
|
serialized = handler(self)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: syllable-sdk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.41.1
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy.
|
|
5
5
|
Author: Syllable
|
|
6
6
|
Requires-Python: >=3.9.2
|
|
@@ -323,6 +323,7 @@ with SyllableSDK(
|
|
|
323
323
|
* [get_by_id](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#get_by_id) - Get Directory Member By Id
|
|
324
324
|
* [update](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#update) - Update Directory Member
|
|
325
325
|
* [delete](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#delete) - Delete Directory Member
|
|
326
|
+
* [directory_member_test_extension](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#directory_member_test_extension) - Test Directory Member Extension
|
|
326
327
|
* [directory_member_bulk_load](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#directory_member_bulk_load) - Bulk Load Directory Members
|
|
327
328
|
* [directory_member_download](https://github.com/asksyllable/syllable-sdk-python/blob/master/docs/sdks/directory/README.md#directory_member_download) - Download Directory Members
|
|
328
329
|
|
|
@@ -3,7 +3,7 @@ syllable_sdk/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU
|
|
|
3
3
|
syllable_sdk/_hooks/registration.py,sha256=1QZB41w6If7I9dXiOSQx6dhSc6BPWrnI5Q5bMOr4iVA,624
|
|
4
4
|
syllable_sdk/_hooks/sdkhooks.py,sha256=aRu2TMpxilLKDrG6EIy6uQd6IrBH7kaHOoVkd7GIcus,2562
|
|
5
5
|
syllable_sdk/_hooks/types.py,sha256=uwJkn18g4_rLZhVtKdE6Ed5YcCjGWSqVgN9-PWqV7Ho,3053
|
|
6
|
-
syllable_sdk/_version.py,sha256=
|
|
6
|
+
syllable_sdk/_version.py,sha256=Nlba4KWKj7VCMJFK22yBAAJ4Ur4ffneUGj0JT7w4eEQ,468
|
|
7
7
|
syllable_sdk/agents.py,sha256=KV-3_nFZGBOQV0IAfjO3TFhorfr-PV6eeuTl6DL8AqI,46820
|
|
8
8
|
syllable_sdk/basesdk.py,sha256=PCXez-bS_sOzXpRo7awDMzW4zqGJtktHytrlQfG1HNw,12211
|
|
9
9
|
syllable_sdk/batches.py,sha256=I-mV5vzpM3BfO91NLmtwt-GKhrOjf351XWFLrdvIofU,73095
|
|
@@ -13,7 +13,7 @@ syllable_sdk/conversations.py,sha256=ghoxP8diGGzI19G2Lffr9v3XgQ_dbC-NibDOvwhaW00
|
|
|
13
13
|
syllable_sdk/custom_messages.py,sha256=TFZWJEtt6obeBx7hMZUZkN7rsTlZzLABdS8UHblegU8,41327
|
|
14
14
|
syllable_sdk/dashboards.py,sha256=db98Dq21VhsVWGKdpWePp5I6dwgQUkQaKRJHun5yVFI,45466
|
|
15
15
|
syllable_sdk/data_sources.py,sha256=yQ26ikJElPq6HujNJ4_8971GxpFD0LH4kWi2vgKudSA,40929
|
|
16
|
-
syllable_sdk/directory.py,sha256=
|
|
16
|
+
syllable_sdk/directory.py,sha256=RK_Z_-vcFHUXfWdUPJ0ru_eL0uyZug_uJdlyNF1g7NQ,62877
|
|
17
17
|
syllable_sdk/errors/__init__.py,sha256=b7YCOOsKA0VcV2bgdwU0w8lITftThPQ5QHX8sTisILk,2098
|
|
18
18
|
syllable_sdk/errors/apierror.py,sha256=-LoYmnlQmN0_BBJU1vWCEvA3QDeag_x4lbw7u4R6pfk,1297
|
|
19
19
|
syllable_sdk/errors/httpvalidationerror.py,sha256=ZsPoNUMwj4CdGcDRWmljjBmg_a9UkpoKSBFFylM9Pu0,906
|
|
@@ -29,7 +29,7 @@ syllable_sdk/insights_sdk.py,sha256=_RfPEqpJGTYpGv0kxID2YQb-EbbhZKc82VwlB4xDON4,
|
|
|
29
29
|
syllable_sdk/insights_tools.py,sha256=CcOobBAVx2kS8fj4Qk6eoPanmVpEMK7oH9IFaijDlQs,55143
|
|
30
30
|
syllable_sdk/language_groups.py,sha256=6x4_4TNhVaz-O50iT1hpDQGfoH1OZdIR0-lL4y5Psbg,51531
|
|
31
31
|
syllable_sdk/latency.py,sha256=qJT16MmojZcxXD2-x5i27FplrB4O_fAN264LsHbHckg,7453
|
|
32
|
-
syllable_sdk/models/__init__.py,sha256=
|
|
32
|
+
syllable_sdk/models/__init__.py,sha256=IO-o6wdU3f610vYFjZBURrwKxZ3-sghEFX8h58fVyhc,96830
|
|
33
33
|
syllable_sdk/models/agent_deleteop.py,sha256=tUbi-gwd4chf2Ba9O9lCvqDQw6YOnn7aheu8OPDzptc,629
|
|
34
34
|
syllable_sdk/models/agent_get_by_idop.py,sha256=vj_xEbhOv3c8n3-B3uQnfTwHWdxYSE4k3Zvr58Yc9A4,484
|
|
35
35
|
syllable_sdk/models/agent_listop.py,sha256=dJdQuIst1TF4xMol9XVdX4xOw8z06jyAQpm46_u0Ysk,5007
|
|
@@ -97,6 +97,7 @@ syllable_sdk/models/custommessageproperties.py,sha256=d5QrfThosurEgPFUlZun168xmj
|
|
|
97
97
|
syllable_sdk/models/custommessageresponse.py,sha256=WNXTV-Qv2zQ4sKUqjU2MbhwRA0dGjLSOHsB5CJma6zM,4258
|
|
98
98
|
syllable_sdk/models/custommessagerule.py,sha256=w97jz-I-riDHSVmq1Qeu7nuW6V91heV0x60XSgGi56o,3280
|
|
99
99
|
syllable_sdk/models/custommessageupdaterequest.py,sha256=4Hj63sregTQ7-VDLTqALlkUDM5J9yKLhe9ddFYgzLBI,2650
|
|
100
|
+
syllable_sdk/models/daotoolresponse.py,sha256=b0bVgo94XvjFgq-Ki5vr044zexGywNzNNbd_WtbunkE,3802
|
|
100
101
|
syllable_sdk/models/dashboard.py,sha256=Q7Tji4r3VKAvrjPRE4NOyRsldyFLHXdie5hBODSdkMM,993
|
|
101
102
|
syllable_sdk/models/dashboardproperties.py,sha256=JhuzlUJK4VHGWalpvKbZfu6LK-KcmP189BwubyfRhYk,362
|
|
102
103
|
syllable_sdk/models/dashboardresponse.py,sha256=Bkdf84Y7gZ7kZRAsFQTdNpN-NBEz-P-Ll0tjAV4Otf4,927
|
|
@@ -118,11 +119,15 @@ syllable_sdk/models/dictionarymetadata.py,sha256=aXEVP6T0vNXh85_LYdvOqhtwzGvTyuy
|
|
|
118
119
|
syllable_sdk/models/directory_member_deleteop.py,sha256=a6T1MBc0ZUBaQFQ3ugRMs_E8Ic0p9zCWs9FmdWp-MHg,504
|
|
119
120
|
syllable_sdk/models/directory_member_get_by_idop.py,sha256=5IvyVMM4Ykm-_75QYbe3ljxatQUvO2sQHtQ5Xt98NE8,506
|
|
120
121
|
syllable_sdk/models/directory_member_listop.py,sha256=568u6zJ86cE45I9mF4dzRd4dRn-EHTlppdtazmx5W2c,5107
|
|
121
|
-
syllable_sdk/models/
|
|
122
|
-
syllable_sdk/models/
|
|
123
|
-
syllable_sdk/models/
|
|
124
|
-
syllable_sdk/models/
|
|
125
|
-
syllable_sdk/models/
|
|
122
|
+
syllable_sdk/models/directory_member_test_extensionop.py,sha256=JpmuK8_1T7R3FK9DGyOjZgCOnaWzNXxgpUA8TJOaU0Y,2162
|
|
123
|
+
syllable_sdk/models/directory_member_updateop.py,sha256=KjeakJR0tdUfUnPVm-NJduca3xgD5hfeGSeg-LI_tCE,827
|
|
124
|
+
syllable_sdk/models/directoryextension.py,sha256=37hSpmuwYovZ7AuO3-FajBLr9_i_ardVG20fYHuDF4I,1775
|
|
125
|
+
syllable_sdk/models/directoryextensionnumber.py,sha256=P7u9CtS1N4k0b0XLD4AD9HnrXY2GcE8D65M8Uwsu6DE,1789
|
|
126
|
+
syllable_sdk/models/directorymember.py,sha256=l3aOb-qS92dQQKU3A2y4dTPPpfRsIOwxTqiGEpkRHSc,2809
|
|
127
|
+
syllable_sdk/models/directorymembercreate.py,sha256=uJbTXLxb5g6uX4kJphChQzy9EZr2B06cCiYc9Eb-phM,2257
|
|
128
|
+
syllable_sdk/models/directorymemberproperties.py,sha256=qX6Ln1OABBc26wgdAiYfZFK0yvYRARgIWaw6RxyUaLg,350
|
|
129
|
+
syllable_sdk/models/directorymembertestresponse.py,sha256=iHorMtw1hu3lqt9jRH0xhoiskGWDkbrC7wys3TSoP3I,1662
|
|
130
|
+
syllable_sdk/models/directorymemberupdate.py,sha256=LTWsH5J1gbWiRUs565C38ez9XF8-nVsOV_jKKZaaALI,2376
|
|
126
131
|
syllable_sdk/models/event.py,sha256=qFvXId06MfWSPW3SnFyy4_rvvqknzoAo0TSQy3F38Jo,4151
|
|
127
132
|
syllable_sdk/models/eventproperties.py,sha256=9_5DIkk5RtQsa52IxCkffSG0livH8baPSCdhzRKz48I,444
|
|
128
133
|
syllable_sdk/models/events_listop.py,sha256=eIXJRB3dZpc0DQAOzgfmls2OIgR8vpn_J-_AspXVUBY,5009
|
|
@@ -245,18 +250,18 @@ syllable_sdk/models/permissiongroupresponse.py,sha256=-2y4Mm5p7k8A-oOrqEVrm-XeHV
|
|
|
245
250
|
syllable_sdk/models/permissionresponse.py,sha256=UieyRpT5ubQ-08bx3DMdIkGi9KYbJaLe4EOxdg15bVQ,1808
|
|
246
251
|
syllable_sdk/models/post_get_dashboardop.py,sha256=hJgtyzQsZ9Qyc5mqpfULcwHqXyAM8JucU5qRq6_VJ9g,504
|
|
247
252
|
syllable_sdk/models/post_list_dashboardop.py,sha256=5A9ntb9WgxBqwysitzuz9rL1rETjfXsxw_L6Ytho3Gg,5055
|
|
248
|
-
syllable_sdk/models/promptcreaterequest.py,sha256=
|
|
253
|
+
syllable_sdk/models/promptcreaterequest.py,sha256=OHKDYI4lu5EzuBAWgoi9skXAZf8ch9oRMbAnL2v3GiQ,4120
|
|
249
254
|
syllable_sdk/models/prompthistory.py,sha256=pjqX8zjgVPrqrX5ax_ezMuTSeFS_aWmzRelHepJP7-E,4086
|
|
250
255
|
syllable_sdk/models/prompthistorylinkedtool.py,sha256=gVLskq9wKSPlaXadgWc6o2ELdKOvqSZIOoUx9RXpVBQ,1351
|
|
251
256
|
syllable_sdk/models/promptllmconfig.py,sha256=l231V2X2d42PrRAhC0xImKTWJBmcAztRrgGeprvtfqI,3213
|
|
252
257
|
syllable_sdk/models/promptllmprovider.py,sha256=nkDRxVE2qld5aX-rSyDO1KpD1nv5OVVEvxVQnl7VWUY,276
|
|
253
258
|
syllable_sdk/models/promptproperties.py,sha256=wOMjHbnxTiUDA9VJPTiBqkYHsxy9LDV0LMEim0aQ0KU,616
|
|
254
|
-
syllable_sdk/models/promptresponse.py,sha256=
|
|
259
|
+
syllable_sdk/models/promptresponse.py,sha256=xzXgs7cpLJeUj--V-EN7oYhBtZ_NFAh7iJCOBw2nzb8,6451
|
|
255
260
|
syllable_sdk/models/prompts_deleteop.py,sha256=gw1CB5A5Fd1CTaSMlQSDtJc0ZMKju7XcR-BnNZzWLDU,635
|
|
256
261
|
syllable_sdk/models/prompts_get_by_idop.py,sha256=r-ugo1ui1v-5Ns9dbDNuB_0R7-QD9aKUebT6noQHDVg,490
|
|
257
262
|
syllable_sdk/models/prompts_historyop.py,sha256=psp95NjtZ-G1ItE6AUgNO8OgZ0nh2vu8HZ7zK8vz9MY,490
|
|
258
263
|
syllable_sdk/models/prompts_listop.py,sha256=s9iHPBo_MDmtVvwh3bqEFSgxmNVUqjNebO83MARe_W0,5019
|
|
259
|
-
syllable_sdk/models/promptupdaterequest.py,sha256=
|
|
264
|
+
syllable_sdk/models/promptupdaterequest.py,sha256=H-PEJ_C9DbHEjwpkyDfbehKPd6OyLmPPBdK11GqtXqM,4221
|
|
260
265
|
syllable_sdk/models/pronunciationoverride.py,sha256=hh40Pm5_foJuS57H-umDw55KMFnYxM_fai5NbLFVu_Y,1120
|
|
261
266
|
syllable_sdk/models/pronunciationoverridesdictionary.py,sha256=VAVif2n6qV2xIYNugb9DT52U33PwW1YXFDIGcFPWuPQ,2693
|
|
262
267
|
syllable_sdk/models/pronunciations_download_csvop.py,sha256=xCoc57YcYPwYjhJ1ZcfvpaDePoEJ4HJuXIgyBSL0hlA,472
|
|
@@ -320,7 +325,7 @@ syllable_sdk/models/tooldefinition.py,sha256=X0wEwLMzWFUOv1V6ime1LjSusckoPt1NJ38
|
|
|
320
325
|
syllable_sdk/models/tooldetailresponse.py,sha256=6JVm3M-ZW6pWB3kyThlUVFzHc2QAQWyv4OuLwtUfvvI,4805
|
|
321
326
|
syllable_sdk/models/toolfunction.py,sha256=bqrAmQxStYGQChS4nwzsVDBsnXIq0nHDxkmO9ht_Zgw,1009
|
|
322
327
|
syllable_sdk/models/toolhttpendpoint.py,sha256=Q54Fpith2qyO1MyJ6JZ8JpyWUphdZJPgMv4Qmcdobig,1472
|
|
323
|
-
syllable_sdk/models/toolhttpmethod.py,sha256=
|
|
328
|
+
syllable_sdk/models/toolhttpmethod.py,sha256=_9dJZ4seimNvLiYhC3Y-6U-jELgG0DN6v_QWXnv_rJo,297
|
|
324
329
|
syllable_sdk/models/tooloptions.py,sha256=SYIjUy-NnTjZsr7_J7CjGsBqwkzyCLa78tIs4pSTuWM,632
|
|
325
330
|
syllable_sdk/models/toolparameterdefault.py,sha256=iurkZxYBya9rqjs-cTNNzLV9TBLDcZuo2AvNGMhxBkQ,1124
|
|
326
331
|
syllable_sdk/models/toolparametertransform.py,sha256=ZrwH9GR52oe7Ldb9lOLKcHMJYOtJmkKoyD5ZMdcJz5w,3950
|
|
@@ -403,6 +408,6 @@ syllable_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,
|
|
|
403
408
|
syllable_sdk/v1.py,sha256=BuA9D8PTM3ACw7t2p_wd6bIZblDM1JF8Scx0U2GPpCQ,53476
|
|
404
409
|
syllable_sdk/voice_groups.py,sha256=m68HbT6z6SWtGWPoZaFFu6NIyNYIG7H9H5QkQuzlTQU,48512
|
|
405
410
|
syllable_sdk/workflows.py,sha256=xHWT4Wl65qw2jvNZ5xF_MwpR5xd5147cSlQE_6gvfSo,64809
|
|
406
|
-
syllable_sdk-0.
|
|
407
|
-
syllable_sdk-0.
|
|
408
|
-
syllable_sdk-0.
|
|
411
|
+
syllable_sdk-0.41.1.dist-info/METADATA,sha256=hz7wmcf_ypHGpi2Qmw2mW9peJ-WarKxcjFcYXx7BLrE,49670
|
|
412
|
+
syllable_sdk-0.41.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
413
|
+
syllable_sdk-0.41.1.dist-info/RECORD,,
|
|
File without changes
|