freeplay 0.3.3__py3-none-any.whl → 0.3.5__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.
@@ -256,13 +256,13 @@ class FilesystemTemplateResolver(TemplateResolver):
256
256
  def __render_into_v2(json_dom: Dict[str, Any]) -> PromptTemplate:
257
257
  format_version = json_dom.get('format_version')
258
258
 
259
- if format_version == 2:
259
+ if format_version and format_version >= 2:
260
260
  metadata = json_dom['metadata']
261
261
  flavor_name = metadata.get('flavor')
262
262
  model = metadata.get('model')
263
263
 
264
264
  return PromptTemplate(
265
- format_version=2,
265
+ format_version=format_version,
266
266
  prompt_template_id=json_dom.get('prompt_template_id'), # type: ignore
267
267
  prompt_template_version_id=json_dom.get('prompt_template_version_id'), # type: ignore
268
268
  prompt_template_name=json_dom.get('prompt_template_name'), # type: ignore
@@ -5,7 +5,7 @@ from typing import Optional, Dict, Union
5
5
  from freeplay.errors import FreeplayClientError
6
6
  from freeplay.support import CallSupport
7
7
 
8
- CustomMetadata = Optional[Dict[str, Union[str, int, float]]]
8
+ CustomMetadata = Optional[Dict[str, Union[str, int, float, bool]]]
9
9
 
10
10
 
11
11
  @dataclass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: freeplay
3
- Version: 0.3.3
3
+ Version: 0.3.5
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: FreePlay Engineering
@@ -8,14 +8,14 @@ freeplay/model.py,sha256=LrBUOSbkNuBV44fl2Wq3UO54dQt0AlUBBjs3f5sK0HM,429
8
8
  freeplay/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  freeplay/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  freeplay/resources/customer_feedback.py,sha256=bw8MfEOKbGgn4FOyvcADrcs9GhcpNXNTgxKjBjIzywE,899
11
- freeplay/resources/prompts.py,sha256=I9dwRm6nT9lKlKzewQ2rGSsmM1vn0T_H_cPqRy-UaPI,18863
11
+ freeplay/resources/prompts.py,sha256=Iv-f1o-cBgwzyLfWhcBybTn2zJdc006kf_bNSCMl54o,18895
12
12
  freeplay/resources/recordings.py,sha256=kUElo6Yvc6lyo221ghbElx75uxftw7HpgBV_R9gYlE4,5938
13
- freeplay/resources/sessions.py,sha256=pgfqCBa-qGwwdfym9nnHizEg0Jf4sd_chLAfunwtMCQ,2787
13
+ freeplay/resources/sessions.py,sha256=Qz5v7VOf1DmQTd1wCOFXnrizlW5WFJT5V8-pq22Ifvg,2793
14
14
  freeplay/resources/test_runs.py,sha256=qF4CE4XiX_6epcs5bFKJg73C94YgrJQTxnCJLBERkos,2549
15
15
  freeplay/support.py,sha256=nuly_GCWEAEz0CmjlviadKK2_r4X6RdxxiQ6yo78wdk,8449
16
16
  freeplay/utils.py,sha256=8ZncuwCnzsAhRsaoxOMGa0Py8kXqGHlB9Avr3n79fk0,2064
17
- freeplay-0.3.3.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
18
- freeplay-0.3.3.dist-info/METADATA,sha256=EroyDAvZii-2KfR9xvNjqcUOIGuW78yooSvNwFDRxTA,1602
19
- freeplay-0.3.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
20
- freeplay-0.3.3.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
21
- freeplay-0.3.3.dist-info/RECORD,,
17
+ freeplay-0.3.5.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
18
+ freeplay-0.3.5.dist-info/METADATA,sha256=cSPKBHdCaRTOE1E90hYgIb_3Ky_FYRQ5upnQZu9xVQk,1602
19
+ freeplay-0.3.5.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
20
+ freeplay-0.3.5.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
21
+ freeplay-0.3.5.dist-info/RECORD,,