promptlayer 1.0.7__py3-none-any.whl → 1.0.9__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.

Potentially problematic release.


This version of promptlayer might be problematic. Click here for more details.

promptlayer/__init__.py CHANGED
@@ -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, str], None] = None,
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.3"
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, 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, UserMessage, AssistantMessage, FunctionMessage, ToolMessage
116
+ SystemMessage,
117
+ UserMessage,
118
+ AssistantMessage,
119
+ FunctionMessage,
120
+ ToolMessage,
121
+ PlaceholderMessage,
112
122
  ]
113
123
 
114
124
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: promptlayer
3
- Version: 1.0.7
3
+ Version: 1.0.9
4
4
  Summary: PromptLayer is a platform for prompt engineering and tracks your LLM requests.
5
5
  License: Apache-2.0
6
6
  Author: Magniv
@@ -1,4 +1,4 @@
1
- promptlayer/__init__.py,sha256=7DdTZdYCs3XRkX18DJNZ946J66lDBlALrWe6t8HcOzU,6353
1
+ promptlayer/__init__.py,sha256=BAOt7w3kG7E4BYiq8q6mc2yw1uCx9JXLJne4zsgxOCA,6358
2
2
  promptlayer/groups/__init__.py,sha256=-xs-2cn0nc0D_5YxZr3nC86iTdRVZmBhEpOKDJXE-sQ,224
3
3
  promptlayer/groups/groups.py,sha256=yeO6T0TM3qB0ondZRiHhcH8G06YygrpFoM8b9RmoIao,165
4
4
  promptlayer/promptlayer.py,sha256=1q1cZOBt27Luzu3aRWcYUjQiKbmwrF9R62Uw95Ryqqc,4035
@@ -6,9 +6,9 @@ promptlayer/templates.py,sha256=aY_-BCrL0AgIdYEUE28pi0AP_avTVAgwv5hgzrh75vo,717
6
6
  promptlayer/track/__init__.py,sha256=VheO_Au0lffGlPKYYPQwkv8ci16wSXABCVSNRoFWu_w,945
7
7
  promptlayer/track/track.py,sha256=XNEZT9yNiRBPp9vaDZo_f0dP_ldOu8q1qafpVfS5Ze8,1610
8
8
  promptlayer/types/__init__.py,sha256=ulWSyCrk5hZ_PI-nKGpd6GPcRaK8lqP4wFl0LPNUYWk,61
9
- promptlayer/types/prompt_template.py,sha256=1iqwH0f7MIITjUEH0BMnSKzMh2BbcB7W8rCmQEaUhQ0,4284
9
+ promptlayer/types/prompt_template.py,sha256=QbxYSeIubrwp8KmDKdt9syAwzONFPh_So9yr4H73ANQ,4429
10
10
  promptlayer/utils.py,sha256=jkto4JeHdEK7eoPN50H0AjlWZHk5twzFpMmvMP-rNZU,27941
11
- promptlayer-1.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
- promptlayer-1.0.7.dist-info/METADATA,sha256=pV6l0ZKiH6WqVVArjpvCQP-LlHT_G0tQPGVTqJCeTEQ,4506
13
- promptlayer-1.0.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
14
- promptlayer-1.0.7.dist-info/RECORD,,
11
+ promptlayer-1.0.9.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
12
+ promptlayer-1.0.9.dist-info/METADATA,sha256=qLgakZ8ID4c23WLcSaC84vk15AUjb6yli3Zu90-e8d4,4506
13
+ promptlayer-1.0.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
14
+ promptlayer-1.0.9.dist-info/RECORD,,