syllable-sdk 0.35.65__py3-none-any.whl → 0.35.71__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 CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "syllable-sdk"
6
- __version__: str = "0.35.65"
6
+ __version__: str = "0.35.71"
7
7
  __openapi_doc_version__: str = "0.0.2"
8
- __gen_version__: str = "2.674.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.35.65 2.674.1 0.0.2 syllable-sdk"
8
+ __gen_version__: str = "2.681.1"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.35.71 2.681.1 0.0.2 syllable-sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -605,6 +605,10 @@ if TYPE_CHECKING:
605
605
  )
606
606
  from .promptcreaterequest import PromptCreateRequest, PromptCreateRequestTypedDict
607
607
  from .prompthistory import PromptHistory, PromptHistoryTypedDict
608
+ from .prompthistorylinkedtool import (
609
+ PromptHistoryLinkedTool,
610
+ PromptHistoryLinkedToolTypedDict,
611
+ )
608
612
  from .promptllmconfig import PromptLlmConfig, PromptLlmConfigTypedDict
609
613
  from .promptllmprovider import PromptLlmProvider
610
614
  from .promptproperties import PromptProperties
@@ -1215,6 +1219,8 @@ __all__ = [
1215
1219
  "PromptCreateRequest",
1216
1220
  "PromptCreateRequestTypedDict",
1217
1221
  "PromptHistory",
1222
+ "PromptHistoryLinkedTool",
1223
+ "PromptHistoryLinkedToolTypedDict",
1218
1224
  "PromptHistoryTypedDict",
1219
1225
  "PromptLlmConfig",
1220
1226
  "PromptLlmConfigTypedDict",
@@ -1793,6 +1799,8 @@ _dynamic_imports: dict[str, str] = {
1793
1799
  "PromptCreateRequestTypedDict": ".promptcreaterequest",
1794
1800
  "PromptHistory": ".prompthistory",
1795
1801
  "PromptHistoryTypedDict": ".prompthistory",
1802
+ "PromptHistoryLinkedTool": ".prompthistorylinkedtool",
1803
+ "PromptHistoryLinkedToolTypedDict": ".prompthistorylinkedtool",
1796
1804
  "PromptLlmConfig": ".promptllmconfig",
1797
1805
  "PromptLlmConfigTypedDict": ".promptllmconfig",
1798
1806
  "PromptLlmProvider": ".promptllmprovider",
@@ -16,4 +16,4 @@ class LanguageCode(str, Enum):
16
16
  TH_TH = "th-TH"
17
17
  VI_VN = "vi-VN"
18
18
  BS_BA = "bs-BA"
19
- SW = "sw"
19
+ SW_KE = "sw-KE"
@@ -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 .prompthistorylinkedtool import (
5
+ PromptHistoryLinkedTool,
6
+ PromptHistoryLinkedToolTypedDict,
7
+ )
4
8
  from datetime import datetime
5
9
  from pydantic import model_serializer
6
10
  from syllable_sdk.types import (
@@ -10,60 +14,81 @@ from syllable_sdk.types import (
10
14
  UNSET,
11
15
  UNSET_SENTINEL,
12
16
  )
17
+ from typing import List, Optional
13
18
  from typing_extensions import NotRequired, TypedDict
14
19
 
15
20
 
16
21
  class PromptHistoryTypedDict(TypedDict):
17
- r"""Record of a change to a prompt. Values reflect post-change state."""
22
+ r"""Record of a specific version of a prompt."""
18
23
 
19
24
  timestamp: datetime
20
- r"""Timestamp of the change"""
25
+ r"""Timestamp of the change resulting in this version"""
21
26
  prompt_id: str
22
27
  r"""ID of the prompt"""
28
+ version_number: int
29
+ r"""Version number of this version. Starts at 1 when prompt is created, and incremented on each change."""
23
30
  prompt_text: str
24
- r"""Text of the prompt"""
31
+ r"""Text of the prompt at this version"""
25
32
  prompt_name: str
26
- r"""Name of the prompt"""
33
+ r"""Name of the prompt at this version"""
27
34
  user_email: str
28
- r"""Email address of the user who made the change"""
35
+ r"""Email address of the user who made the change that resulted in this version"""
36
+ is_pre_enhancements: bool
37
+ r"""Whether this version of the prompt was created before history of tool-prompt linking was tracked"""
29
38
  prompt_description: NotRequired[Nullable[str]]
30
- r"""Description of the prompt"""
39
+ r"""Description of the prompt at this version"""
31
40
  llm_config: NotRequired[Nullable[str]]
32
- r"""String representation of LLM config for the prompt"""
41
+ r"""String representation of LLM config for the prompt at this version"""
33
42
  comments: NotRequired[Nullable[str]]
34
- r"""Comments describing the change"""
43
+ r"""Comments describing the change that resulted in this version"""
44
+ linked_tools: NotRequired[List[PromptHistoryLinkedToolTypedDict]]
45
+ r"""Tools that were linked to this version of the prompt"""
35
46
 
36
47
 
37
48
  class PromptHistory(BaseModel):
38
- r"""Record of a change to a prompt. Values reflect post-change state."""
49
+ r"""Record of a specific version of a prompt."""
39
50
 
40
51
  timestamp: datetime
41
- r"""Timestamp of the change"""
52
+ r"""Timestamp of the change resulting in this version"""
42
53
 
43
54
  prompt_id: str
44
55
  r"""ID of the prompt"""
45
56
 
57
+ version_number: int
58
+ r"""Version number of this version. Starts at 1 when prompt is created, and incremented on each change."""
59
+
46
60
  prompt_text: str
47
- r"""Text of the prompt"""
61
+ r"""Text of the prompt at this version"""
48
62
 
49
63
  prompt_name: str
50
- r"""Name of the prompt"""
64
+ r"""Name of the prompt at this version"""
51
65
 
52
66
  user_email: str
53
- r"""Email address of the user who made the change"""
67
+ r"""Email address of the user who made the change that resulted in this version"""
68
+
69
+ is_pre_enhancements: bool
70
+ r"""Whether this version of the prompt was created before history of tool-prompt linking was tracked"""
54
71
 
55
72
  prompt_description: OptionalNullable[str] = UNSET
56
- r"""Description of the prompt"""
73
+ r"""Description of the prompt at this version"""
57
74
 
58
75
  llm_config: OptionalNullable[str] = UNSET
59
- r"""String representation of LLM config for the prompt"""
76
+ r"""String representation of LLM config for the prompt at this version"""
60
77
 
61
78
  comments: OptionalNullable[str] = UNSET
62
- r"""Comments describing the change"""
79
+ r"""Comments describing the change that resulted in this version"""
80
+
81
+ linked_tools: Optional[List[PromptHistoryLinkedTool]] = None
82
+ r"""Tools that were linked to this version of the prompt"""
63
83
 
64
84
  @model_serializer(mode="wrap")
65
85
  def serialize_model(self, handler):
66
- optional_fields = ["prompt_description", "llm_config", "comments"]
86
+ optional_fields = [
87
+ "prompt_description",
88
+ "llm_config",
89
+ "comments",
90
+ "linked_tools",
91
+ ]
67
92
  nullable_fields = ["prompt_description", "llm_config", "comments"]
68
93
  null_default_fields = []
69
94
 
@@ -0,0 +1,34 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from syllable_sdk.types import BaseModel
5
+ from typing_extensions import TypedDict
6
+
7
+
8
+ class PromptHistoryLinkedToolTypedDict(TypedDict):
9
+ r"""Record of a tool linked to a previous prompt version in the prompt history."""
10
+
11
+ tool_id: int
12
+ r"""ID of the tool"""
13
+ current_tool_name: str
14
+ r"""Current name of the tool (may have been different at the time the given version of the prompt was created)"""
15
+ out_of_date: bool
16
+ r"""Whether the tool has changed (not including being deleted) since the given version of the prompt was created"""
17
+ deleted: bool
18
+ r"""Whether the tool has been deleted since the given version of the prompt was created"""
19
+
20
+
21
+ class PromptHistoryLinkedTool(BaseModel):
22
+ r"""Record of a tool linked to a previous prompt version in the prompt history."""
23
+
24
+ tool_id: int
25
+ r"""ID of the tool"""
26
+
27
+ current_tool_name: str
28
+ r"""Current name of the tool (may have been different at the time the given version of the prompt was created)"""
29
+
30
+ out_of_date: bool
31
+ r"""Whether the tool has changed (not including being deleted) since the given version of the prompt was created"""
32
+
33
+ deleted: bool
34
+ r"""Whether the tool has been deleted since the given version of the prompt was created"""
syllable_sdk/prompts.py CHANGED
@@ -979,7 +979,7 @@ class Prompts(BaseSDK):
979
979
  ) -> List[models.PromptHistory]:
980
980
  r"""Get Prompt History
981
981
 
982
- Get a prompt by ID
982
+ Get a list of historical versions of a prompt by its ID
983
983
 
984
984
  :param prompt_id:
985
985
  :param retries: Override the default retry configuration for this method
@@ -1068,7 +1068,7 @@ class Prompts(BaseSDK):
1068
1068
  ) -> List[models.PromptHistory]:
1069
1069
  r"""Get Prompt History
1070
1070
 
1071
- Get a prompt by ID
1071
+ Get a list of historical versions of a prompt by its ID
1072
1072
 
1073
1073
  :param prompt_id:
1074
1074
  :param retries: Override the default retry configuration for this method
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: syllable-sdk
3
- Version: 0.35.65
3
+ Version: 0.35.71
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Syllable
6
6
  Requires-Python: >=3.9.2
@@ -85,7 +85,15 @@ encountered.
85
85
  >
86
86
  > Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.
87
87
 
88
- The SDK can be installed with either *pip* or *poetry* package managers.
88
+ The SDK can be installed with *uv*, *pip*, or *poetry* package managers.
89
+
90
+ ### uv
91
+
92
+ *uv* is a fast Python package installer and resolver, designed as a drop-in replacement for pip and pip-tools. It's recommended for its speed and modern Python tooling capabilities.
93
+
94
+ ```bash
95
+ uv add syllable-sdk
96
+ ```
89
97
 
90
98
  ### PIP
91
99
 
@@ -172,7 +180,7 @@ with SyllableSDK(
172
180
 
173
181
  </br>
174
182
 
175
- The same SDK client can also be used to make asychronous requests by importing asyncio.
183
+ The same SDK client can also be used to make asynchronous requests by importing asyncio.
176
184
  ```python
177
185
  # Asynchronous Example
178
186
  import asyncio
@@ -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=0BYuQ-B3EI3-lXvhbcFdF8eH3OSHAK05UfiWYUOc4Mg,470
6
+ syllable_sdk/_version.py,sha256=x6_xZ_shL0pVvOjmcSBdMaIWzdG92j2Gd-uDe8khF5c,470
7
7
  syllable_sdk/agents.py,sha256=0x4iFVF9VksBu32ThrGcgM3FqMCC9-iP8ggPh2r4R04,46694
8
8
  syllable_sdk/basesdk.py,sha256=dULbDf9e71tjSgOe7YwC9jD-80uIFiMrAhFbFvbEYho,11916
9
9
  syllable_sdk/batches.py,sha256=qgI5PRkdgLdaJl4DPfs4mBJrB0OY_CCDePYntyjleSs,73059
@@ -28,7 +28,7 @@ syllable_sdk/insights_sdk.py,sha256=MxNtdwu2dcM8xCjKS2l-ZIM-pT-Bbh8LSjMnFLl32nc,
28
28
  syllable_sdk/insights_tools.py,sha256=SuDEOpPtk7SlsFZ-thzIZSt_31WjofzyzqozseWQy3M,55115
29
29
  syllable_sdk/language_groups.py,sha256=BlcTvh_KitUkbVzXlBjCcxTmBbQ12QWxCZfXqlCOoPc,49214
30
30
  syllable_sdk/latency.py,sha256=PymvwBTs6KAVMl-IZVj6L4zJotRApBOcnkfB4FrlNkg,7449
31
- syllable_sdk/models/__init__.py,sha256=SJWDGSte5UwdPmnbl6mrzUyY0CRGX-EDuE5rCU1Xa4Y,85483
31
+ syllable_sdk/models/__init__.py,sha256=1mVisM5mvo7jqZbw_dfh5kZ5DF4aID0SHxCTY_G7i_c,85805
32
32
  syllable_sdk/models/agent_deleteop.py,sha256=tUbi-gwd4chf2Ba9O9lCvqDQw6YOnn7aheu8OPDzptc,629
33
33
  syllable_sdk/models/agent_get_by_idop.py,sha256=vj_xEbhOv3c8n3-B3uQnfTwHWdxYSE4k3Zvr58Yc9A4,484
34
34
  syllable_sdk/models/agent_listop.py,sha256=dJdQuIst1TF4xMol9XVdX4xOw8z06jyAQpm46_u0Ysk,5007
@@ -170,7 +170,7 @@ syllable_sdk/models/internaltool.py,sha256=d-n7i573SPGBMZ0Krz3UhcJSopb-YkoH0q4uR
170
170
  syllable_sdk/models/language_groups_deleteop.py,sha256=4MTGog70ojnyXZeVGNwp-50YcVktvkLBuzOWXUFrGA0,665
171
171
  syllable_sdk/models/language_groups_get_by_idop.py,sha256=BqY8RoJ2AExtA67AIQlbn0J4dpTP4jmlEJUSagtgPHY,520
172
172
  syllable_sdk/models/language_groups_listop.py,sha256=4ufQtf55hOWLmJMFPaS7Ff7mg9_TSVL4MiUbUrgfXiY,5089
173
- syllable_sdk/models/languagecode.py,sha256=F9HT3-YtV4AvoxogLv_ZhLzW8cYkKqt1_HBS6GtPRgM,421
173
+ syllable_sdk/models/languagecode.py,sha256=o_6pXPKSr2z-iZJYjbQNb79sPPEtJ3Y5wq1lGTaXMQk,427
174
174
  syllable_sdk/models/languageconfig.py,sha256=3TPAVwjqJ09q9zuCqEUhQrw1IwO9TDKZ7t2U7sdqT8c,3597
175
175
  syllable_sdk/models/languagegroupagentinfo.py,sha256=kzmhCVzbuDP06Vm2SW28Pn1QusTZgkDjCfZ9myE8Hks,599
176
176
  syllable_sdk/models/languagegroupcreaterequest.py,sha256=ut_9T26EOvg8n6sD2Z8cCz9zs9q0xWYXxh5uorNDaxU,2460
@@ -230,7 +230,8 @@ syllable_sdk/models/permissionresponse.py,sha256=UieyRpT5ubQ-08bx3DMdIkGi9KYbJaL
230
230
  syllable_sdk/models/post_get_dashboardop.py,sha256=hJgtyzQsZ9Qyc5mqpfULcwHqXyAM8JucU5qRq6_VJ9g,504
231
231
  syllable_sdk/models/post_list_dashboardop.py,sha256=5A9ntb9WgxBqwysitzuz9rL1rETjfXsxw_L6Ytho3Gg,5055
232
232
  syllable_sdk/models/promptcreaterequest.py,sha256=n9Yzm2O7-x1obUTQA35w5S7qYttOOh7DSAGhNGsIOvI,3149
233
- syllable_sdk/models/prompthistory.py,sha256=KLnL60mbZrvmOt9k1FD-VUISIqAHWxTKZL2qnbThjvA,2701
233
+ syllable_sdk/models/prompthistory.py,sha256=RktlSgSB6fOQ6nAjDa3FuI_sTJlLdTg5xVwRTYkdQrA,3982
234
+ syllable_sdk/models/prompthistorylinkedtool.py,sha256=gVLskq9wKSPlaXadgWc6o2ELdKOvqSZIOoUx9RXpVBQ,1351
234
235
  syllable_sdk/models/promptllmconfig.py,sha256=l231V2X2d42PrRAhC0xImKTWJBmcAztRrgGeprvtfqI,3213
235
236
  syllable_sdk/models/promptllmprovider.py,sha256=nkDRxVE2qld5aX-rSyDO1KpD1nv5OVVEvxVQnl7VWUY,276
236
237
  syllable_sdk/models/promptproperties.py,sha256=C9c3NRaEAx-ml5XkFYP2UxDm9QauYs7rawgrUYeGFGY,568
@@ -335,7 +336,7 @@ syllable_sdk/numbers.py,sha256=nqfC3Cex9wnLtavjKbQ_Aty0tQ3cYJCdS5IsEsSMPlI,24330
335
336
  syllable_sdk/organizations.py,sha256=4lF7s0dX93hAek-Hsg99QDsYNlg79snldkLLlREN1e0,30066
336
337
  syllable_sdk/outbound.py,sha256=6_SVy_ytR6eoAJQ49LP0cqqoSEO085Y3Hf8Z3rvWXJ4,744
337
338
  syllable_sdk/permissions.py,sha256=EGDOu1toJfNgAEfS4Uv5QdWTPKvnPkH_DWGXDQdDhkk,6891
338
- syllable_sdk/prompts.py,sha256=he6DC_QyGK--i1TbfaLZLSrr8Wwd-XIUGRL9XLWf_IE,53270
339
+ syllable_sdk/prompts.py,sha256=stz81yOmM22ehTiWUm1GqHcrtoPG9Cgw8J9ET32AtRM,53344
339
340
  syllable_sdk/py.typed,sha256=zrp19r0G21lr2yRiMC0f8MFkQFGj9wMpSbboePMg8KM,59
340
341
  syllable_sdk/roles.py,sha256=wfAePzjeRItms1lvXIKZo73PdGZnzNn1SgjyMSKqdxc,40374
341
342
  syllable_sdk/sdk.py,sha256=c0ROTvesjQZNFZ143fig0qDKAYYahsow7Ep1w1gASeU,15752
@@ -372,6 +373,6 @@ syllable_sdk/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,525
372
373
  syllable_sdk/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
373
374
  syllable_sdk/v1.py,sha256=zMPQz7GtZxDuziCcmhKk2IS7EfiaW9WfiSIqAGbb-o4,53448
374
375
  syllable_sdk/workflows.py,sha256=kQPJzssdldotkipoWzu1ddas4IKbpFdXkGFDwDkWt1M,64777
375
- syllable_sdk-0.35.65.dist-info/METADATA,sha256=5auKFhxgr8ZyDoCtoy6BYmi98sB_s0oTr0dGE5YW1LM,45941
376
- syllable_sdk-0.35.65.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
377
- syllable_sdk-0.35.65.dist-info/RECORD,,
376
+ syllable_sdk-0.35.71.dist-info/METADATA,sha256=v5kxrAuKKohI0K_WsBQeZzrkA74DammsSooyv5qFFTg,46166
377
+ syllable_sdk-0.35.71.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
378
+ syllable_sdk-0.35.71.dist-info/RECORD,,