freeplay 0.3.0a4__py3-none-any.whl → 0.3.0a6__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.
freeplay/py.typed ADDED
File without changes
@@ -1,3 +1,4 @@
1
+ import copy
1
2
  import json
2
3
  from abc import ABC, abstractmethod
3
4
  from dataclasses import dataclass
@@ -73,7 +74,8 @@ class BoundPrompt:
73
74
  messages: List[Dict[str, str]]
74
75
  ) -> List[Dict[str, str]]:
75
76
  if flavor_name == 'azure_openai_chat' or flavor_name == 'openai_chat':
76
- return messages
77
+ # We need a deepcopy here to avoid referential equality with the llm_prompt
78
+ return copy.deepcopy(messages)
77
79
  elif flavor_name == 'anthropic_chat':
78
80
  messages_without_system = [message for message in messages if message['role'] != 'system']
79
81
  return messages_without_system
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: freeplay
3
- Version: 0.3.0a4
3
+ Version: 0.3.0a6
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: FreePlay Engineering
@@ -12,7 +12,6 @@ Classifier: Programming Language :: Python :: 3.8
12
12
  Classifier: Programming Language :: Python :: 3.9
13
13
  Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
- Classifier: Programming Language :: Python :: 3.12
16
15
  Requires-Dist: click (==8.1.7)
17
16
  Requires-Dist: dacite (>=1.8.0,<2.0.0)
18
17
  Requires-Dist: pystache (>=0.6.5,<0.7.0)
@@ -5,16 +5,17 @@ freeplay/freeplay.py,sha256=vwtgLNcHnXTAjyuXU1cOjvYuLBqcZ-RQDAjdFAKh7q0,1479
5
5
  freeplay/freeplay_cli.py,sha256=lmdsYwzdpWmUKHz_ieCzB-e6j1EnDHlVw3XIEyP_NEk,3460
6
6
  freeplay/llm_parameters.py,sha256=bQbfuC8EICF0XMZQa5pwI3FkQqxmCUVqHO3gYHy3Tg8,898
7
7
  freeplay/model.py,sha256=pC24wUsedD4RTI4k1BcYuDjizroeEHINH6FtEa_RLCk,384
8
+ freeplay/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
9
  freeplay/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
10
  freeplay/resources/customer_feedback.py,sha256=aTM7Eez7iYmjXSpRqkHxf4pi6xBrzVnMiQCEJVfPGvg,527
10
- freeplay/resources/prompts.py,sha256=iW8pI2Bskv6DUiBb7YygPKhLtinXnJc_fdfxHxLNdEc,12285
11
+ freeplay/resources/prompts.py,sha256=ieR9_duwWFktmVSX8u_XdGZYcb3soHqwFjQdyvSJqac,12400
11
12
  freeplay/resources/recordings.py,sha256=CQMhvKLGXVMkW3o0Ixu_zM5k38RSNQRcEM6U30hMNDE,5412
12
13
  freeplay/resources/sessions.py,sha256=ioWdeTM9BSrEWKrFH66ysQIw5kCTlCVopJDmWtFgHz0,868
13
14
  freeplay/resources/test_runs.py,sha256=2NAwoW_Yx7K8YM7QyQ3sv9dN6p0gjNgUAR7wSzLYP6w,1452
14
15
  freeplay/support.py,sha256=7BizelIEIaSRFj2IL53-RQkjncUNlUS-DPUln2VxoJg,4532
15
16
  freeplay/utils.py,sha256=8ZncuwCnzsAhRsaoxOMGa0Py8kXqGHlB9Avr3n79fk0,2064
16
- freeplay-0.3.0a4.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
17
- freeplay-0.3.0a4.dist-info/METADATA,sha256=O_MHrWrdl3L5HkpTOe7NtBRWoDMYn0YW_RP6APRzYr8,1604
18
- freeplay-0.3.0a4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
19
- freeplay-0.3.0a4.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
20
- freeplay-0.3.0a4.dist-info/RECORD,,
17
+ freeplay-0.3.0a6.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
18
+ freeplay-0.3.0a6.dist-info/METADATA,sha256=skFosdzJU5udk9ucgrmvZgTAsBQ9uKkKsGWmQKtqTL0,1553
19
+ freeplay-0.3.0a6.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
20
+ freeplay-0.3.0a6.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
21
+ freeplay-0.3.0a6.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 1.6.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any