freeplay 0.3.22__py3-none-any.whl → 0.3.23__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.
@@ -35,6 +35,7 @@ class MissingFlavorError(FreeplayConfigurationError):
35
35
 
36
36
 
37
37
  class LLMAdapter(Protocol):
38
+ # This method must handle BOTH prompt template messages and provider specific messages.
38
39
  def to_llm_syntax(self, messages: List[Dict[str, Any]]) -> Union[str, List[Dict[str, Any]]]:
39
40
  pass
40
41
 
@@ -187,11 +188,13 @@ class GeminiAdapter(LLMAdapter):
187
188
  "role": self.__translate_role(message["role"]),
188
189
  "parts": [self.__map_content(content) for content in message['content']]
189
190
  })
190
- else:
191
+ elif "content" in message:
191
192
  gemini_messages.append({
192
193
  "role": self.__translate_role(message["role"]),
193
194
  "parts": [{"text": message["content"]}]
194
195
  })
196
+ else:
197
+ gemini_messages.append(copy.deepcopy(message))
195
198
 
196
199
  return gemini_messages
197
200
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: freeplay
3
- Version: 0.3.22
3
+ Version: 0.3.23
4
4
  Summary:
5
5
  License: MIT
6
6
  Author: FreePlay Engineering
@@ -7,7 +7,7 @@ freeplay/llm_parameters.py,sha256=bQbfuC8EICF0XMZQa5pwI3FkQqxmCUVqHO3gYHy3Tg8,89
7
7
  freeplay/model.py,sha256=o0de_RZ2WTJ4m5OJw1ZVfC2xG6zBq_XShBrRt1laEjc,1405
8
8
  freeplay/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  freeplay/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- freeplay/resources/adapters.py,sha256=0ZQdVNoa6JcWToaSyNLnK-WXRDk6UEksC9QBAkeFBiw,9102
10
+ freeplay/resources/adapters.py,sha256=6ZAPpoLeOkUkV1s9VNQNsYrnupV0-sy11zFfKfctM1Y,9296
11
11
  freeplay/resources/customer_feedback.py,sha256=bw8MfEOKbGgn4FOyvcADrcs9GhcpNXNTgxKjBjIzywE,899
12
12
  freeplay/resources/prompts.py,sha256=mnL1VscMGM7D4ulGf3CBGQKdsSj8I5Wf_6nJEYa7mZI,23353
13
13
  freeplay/resources/recordings.py,sha256=z2ARII1jCnmNh1GU3hGnXZUz5IF_KhyayQum71k-h9c,9213
@@ -16,8 +16,8 @@ freeplay/resources/test_cases.py,sha256=nXL_976RwSJDT6OWDM4GEzbcOzcGkJ9ulvb0XOzC
16
16
  freeplay/resources/test_runs.py,sha256=Tp2N-odInT5XEEWrEsVhdgfnsclOE8n92_C8gTwO2MI,2623
17
17
  freeplay/support.py,sha256=kQMItnMGZT5TOdPQsSiKOlBbBqO4AyR91vito6wt4JM,12275
18
18
  freeplay/utils.py,sha256=Xvt4mNLXLL7E6MI2hTuDLV5cl5Y83DgdjCZSyDGMjR0,3187
19
- freeplay-0.3.22.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
20
- freeplay-0.3.22.dist-info/METADATA,sha256=6wCrxA0QTHMq1JoLtxIfEsexI3lcRlxEFkwOHSvr8HM,1661
21
- freeplay-0.3.22.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
22
- freeplay-0.3.22.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
23
- freeplay-0.3.22.dist-info/RECORD,,
19
+ freeplay-0.3.23.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
20
+ freeplay-0.3.23.dist-info/METADATA,sha256=IW54IuEE9o5_huw03dbWjekNpyWXyRofb_x9AEFUZf0,1661
21
+ freeplay-0.3.23.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
22
+ freeplay-0.3.23.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
23
+ freeplay-0.3.23.dist-info/RECORD,,