freeplay 0.3.25__py3-none-any.whl → 0.4.0__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.
@@ -19,8 +19,8 @@ class CustomerFeedback:
19
19
  def __init__(self, call_support: CallSupport) -> None:
20
20
  self.call_support = call_support
21
21
 
22
- def update(self, completion_id: str, feedback: Dict[str, FeedbackValue]) -> CustomerFeedbackResponse:
23
- self.call_support.update_customer_feedback(completion_id, feedback)
22
+ def update(self, project_id: str, completion_id: str, feedback: Dict[str, FeedbackValue]) -> CustomerFeedbackResponse:
23
+ self.call_support.update_customer_feedback(project_id, completion_id, feedback)
24
24
  return CustomerFeedbackResponse()
25
25
 
26
26
  def update_trace(
freeplay/support.py CHANGED
@@ -265,12 +265,13 @@ class CallSupport:
265
265
 
266
266
  def update_customer_feedback(
267
267
  self,
268
+ project_id: str,
268
269
  completion_id: str,
269
270
  feedback: Dict[str, Union[bool, str, int, float]]
270
271
  ) -> None:
271
- response = api_support.put_raw(
272
+ response = api_support.post_raw(
272
273
  self.freeplay_api_key,
273
- f'{self.api_base}/v1/completion_feedback/{completion_id}',
274
+ f'{self.api_base}/v2/projects/{project_id}/completion-feedback/id/{completion_id}',
274
275
  feedback
275
276
  )
276
277
  if response.status_code != 201:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: freeplay
3
- Version: 0.3.25
3
+ Version: 0.4.0
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: FreePlay Engineering
@@ -8,16 +8,16 @@ freeplay/model.py,sha256=GI3qPRouwdrBFOPBrcQFt5O0chtlSNvl8jAstePuYlA,1480
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/adapters.py,sha256=6ZAPpoLeOkUkV1s9VNQNsYrnupV0-sy11zFfKfctM1Y,9296
11
- freeplay/resources/customer_feedback.py,sha256=bw8MfEOKbGgn4FOyvcADrcs9GhcpNXNTgxKjBjIzywE,899
11
+ freeplay/resources/customer_feedback.py,sha256=6AUgHyOcXIpHvrxGAhsQgmDERvRHKutB6J-GkhkGH6s,928
12
12
  freeplay/resources/prompts.py,sha256=7hQU0f6GW3qNqEytsiFOnHY6M5c1O6B0w9QDmNk91n0,23516
13
13
  freeplay/resources/recordings.py,sha256=V8KAPWnYAQ2-gqwyAJveD8a_AaBPYT32N_xbPU4S27M,9153
14
14
  freeplay/resources/sessions.py,sha256=dZtd9nq2nH8pmXxQOJitBnN5Jl3kjggDItDcjC69TYo,3883
15
15
  freeplay/resources/test_cases.py,sha256=nXL_976RwSJDT6OWDM4GEzbcOzcGkJ9ulvb0XOzCRDM,2240
16
16
  freeplay/resources/test_runs.py,sha256=u7bBfJ3Ro5DJZQdjCAXj4Xj-3fYmtQIGhy8vJeluJvQ,4668
17
- freeplay/support.py,sha256=NYk0IBUZtyYJ4h4dyNA4dVG-QT5zsO9MHQ8PuXNFP_4,14297
17
+ freeplay/support.py,sha256=uISvxdPA0OvcmbcL4TF136rqoSCARpi8ciniwffKm24,14352
18
18
  freeplay/utils.py,sha256=Xvt4mNLXLL7E6MI2hTuDLV5cl5Y83DgdjCZSyDGMjR0,3187
19
- freeplay-0.3.25.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
20
- freeplay-0.3.25.dist-info/METADATA,sha256=bmBW4iPCJsJYyFpgQ0Q4LbsUE9_Df494gUgtpEg0DC8,1661
21
- freeplay-0.3.25.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
22
- freeplay-0.3.25.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
23
- freeplay-0.3.25.dist-info/RECORD,,
19
+ freeplay-0.4.0.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
20
+ freeplay-0.4.0.dist-info/METADATA,sha256=ofZVrNtcZhOQaFXcIz3sdyEw0o5FZDimLL1hDFBoHV4,1660
21
+ freeplay-0.4.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
22
+ freeplay-0.4.0.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
23
+ freeplay-0.4.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.2
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any