promptlayer 1.0.7__tar.gz → 1.0.9__tar.gz
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.
Potentially problematic release.
This version of promptlayer might be problematic. Click here for more details.
- {promptlayer-1.0.7 → promptlayer-1.0.9}/PKG-INFO +1 -1
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/__init__.py +3 -3
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/types/prompt_template.py +13 -3
- {promptlayer-1.0.7 → promptlayer-1.0.9}/pyproject.toml +1 -1
- {promptlayer-1.0.7 → promptlayer-1.0.9}/LICENSE +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/README.md +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/groups/__init__.py +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/groups/groups.py +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/promptlayer.py +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/templates.py +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/track/__init__.py +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/track/track.py +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/types/__init__.py +0 -0
- {promptlayer-1.0.7 → promptlayer-1.0.9}/promptlayer/utils.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
import os
|
|
3
3
|
from copy import deepcopy
|
|
4
|
-
from typing import Dict, List, Literal, Union
|
|
4
|
+
from typing import Any, Dict, List, Literal, Union
|
|
5
5
|
|
|
6
6
|
from promptlayer.groups import GroupManager
|
|
7
7
|
from promptlayer.promptlayer import PromptLayerBase
|
|
@@ -90,7 +90,7 @@ class PromptLayer:
|
|
|
90
90
|
prompt_name: str,
|
|
91
91
|
prompt_version: Union[int, None] = None,
|
|
92
92
|
prompt_release_label: Union[str, None] = None,
|
|
93
|
-
input_variables: Union[Dict[str,
|
|
93
|
+
input_variables: Union[Dict[str, Any], None] = None,
|
|
94
94
|
tags: Union[List[str], None] = None,
|
|
95
95
|
metadata: Union[Dict[str, str], None] = None,
|
|
96
96
|
group_id: Union[int, None] = None,
|
|
@@ -167,5 +167,5 @@ class PromptLayer:
|
|
|
167
167
|
return data
|
|
168
168
|
|
|
169
169
|
|
|
170
|
-
__version__ = "1.0.
|
|
170
|
+
__version__ = "1.0.9"
|
|
171
171
|
__all__ = ["PromptLayer", "__version__"]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Dict, List, Literal, Optional, Sequence, TypedDict, Union
|
|
1
|
+
from typing import Any, Dict, List, Literal, Optional, Sequence, TypedDict, Union
|
|
2
2
|
|
|
3
3
|
from typing_extensions import Required
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ class GetPromptTemplate(TypedDict, total=False):
|
|
|
7
7
|
version: int
|
|
8
8
|
label: str
|
|
9
9
|
provider: str
|
|
10
|
-
input_variables: Dict[str,
|
|
10
|
+
input_variables: Dict[str, Any]
|
|
11
11
|
metadata_filters: Dict[str, str]
|
|
12
12
|
|
|
13
13
|
|
|
@@ -96,6 +96,11 @@ class ToolMessage(TypedDict, total=False):
|
|
|
96
96
|
name: str
|
|
97
97
|
|
|
98
98
|
|
|
99
|
+
class PlaceholderMessage(TypedDict, total=False):
|
|
100
|
+
role: Literal["placeholder"]
|
|
101
|
+
name: str
|
|
102
|
+
|
|
103
|
+
|
|
99
104
|
class ChatFunctionCall(TypedDict, total=False):
|
|
100
105
|
name: str
|
|
101
106
|
|
|
@@ -108,7 +113,12 @@ class ChatToolChoice(TypedDict, total=False):
|
|
|
108
113
|
ToolChoice = Union[str, ChatToolChoice]
|
|
109
114
|
|
|
110
115
|
Message = Union[
|
|
111
|
-
SystemMessage,
|
|
116
|
+
SystemMessage,
|
|
117
|
+
UserMessage,
|
|
118
|
+
AssistantMessage,
|
|
119
|
+
FunctionMessage,
|
|
120
|
+
ToolMessage,
|
|
121
|
+
PlaceholderMessage,
|
|
112
122
|
]
|
|
113
123
|
|
|
114
124
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|