llm-dialog-manager 0.1.2480__py3-none-any.whl → 0.2.7__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- llm_dialog_manager/__init__.py +1 -1
- llm_dialog_manager/agent.py +2 -11
- {llm_dialog_manager-0.1.2480.dist-info → llm_dialog_manager-0.2.7.dist-info}/METADATA +1 -1
- llm_dialog_manager-0.2.7.dist-info/RECORD +9 -0
- llm_dialog_manager-0.1.2480.dist-info/RECORD +0 -9
- {llm_dialog_manager-0.1.2480.dist-info → llm_dialog_manager-0.2.7.dist-info}/LICENSE +0 -0
- {llm_dialog_manager-0.1.2480.dist-info → llm_dialog_manager-0.2.7.dist-info}/WHEEL +0 -0
- {llm_dialog_manager-0.1.2480.dist-info → llm_dialog_manager-0.2.7.dist-info}/top_level.txt +0 -0
llm_dialog_manager/__init__.py
CHANGED
llm_dialog_manager/agent.py
CHANGED
@@ -117,7 +117,6 @@ def completion(model: str, messages: List[Dict[str, str]], max_tokens: int = 100
|
|
117
117
|
api_key=api_key,
|
118
118
|
base_url="https://generativelanguage.googleapis.com/v1beta/"
|
119
119
|
)
|
120
|
-
print(api_key)
|
121
120
|
# Remove any system message from the beginning if present
|
122
121
|
if messages and messages[0]["role"] == "system":
|
123
122
|
system_msg = messages.pop(0)
|
@@ -131,7 +130,6 @@ def completion(model: str, messages: List[Dict[str, str]], max_tokens: int = 100
|
|
131
130
|
# max_tokens=max_tokens,
|
132
131
|
temperature=temperature
|
133
132
|
)
|
134
|
-
print(len(response.choices))
|
135
133
|
|
136
134
|
return response.choices[0].message.content
|
137
135
|
|
@@ -249,13 +247,6 @@ if __name__ == "__main__":
|
|
249
247
|
# write a test for detect finding agent
|
250
248
|
text = "I think the answer is 42"
|
251
249
|
|
252
|
-
# from agent.messageloader import information_detector_messages
|
253
|
-
|
254
|
-
# # Now you can print or use information_detector_messages as needed
|
255
|
-
# information_detector_agent = Agent("gemini-1.5-pro", information_detector_messages)
|
256
|
-
# information_detector_agent.add_message("user", text)
|
257
|
-
# response = information_detector_agent.generate_response()
|
258
|
-
# print(response)
|
259
250
|
agent = Agent("claude-3-5-sonnet-20241022", "you are an assistant", memory_enabled=True)
|
260
251
|
|
261
252
|
# Format the prompt to check if the section is the last one in the outline
|
@@ -267,6 +258,6 @@ if __name__ == "__main__":
|
|
267
258
|
|
268
259
|
print(agent.generate_response(max_tokens=20, temperature=0.0))
|
269
260
|
print(agent.history[:])
|
270
|
-
|
271
|
-
print(
|
261
|
+
last_message = agent.history.pop()
|
262
|
+
print(last_message)
|
272
263
|
print(agent.history[:])
|
@@ -0,0 +1,9 @@
|
|
1
|
+
llm_dialog_manager/__init__.py,sha256=bQb_jouDWIWf_n5x2kBA7uc43xkG2IMLeYcV1IevNek,86
|
2
|
+
llm_dialog_manager/agent.py,sha256=FF8vs-RyJGKWit5X82eLHyel1sThf76sLEa_1GVLeA0,9868
|
3
|
+
llm_dialog_manager/chat_history.py,sha256=xKA-oQCv8jv_g8EhXrG9h1S8Icbj2FfqPIhbty5vra4,6033
|
4
|
+
llm_dialog_manager/key_manager.py,sha256=shvxmn4zUtQx_p-x1EFyOmnk-WlhigbpKtxTKve-zXk,4421
|
5
|
+
llm_dialog_manager-0.2.7.dist-info/LICENSE,sha256=vWGbYgGuWpWrXL8-xi6pNcX5UzD6pWoIAZmcetyfbus,1064
|
6
|
+
llm_dialog_manager-0.2.7.dist-info/METADATA,sha256=kmdHmOHId-OSQxMBeDbtdAn7eWz-VGJfK_cBGs5BjqU,5193
|
7
|
+
llm_dialog_manager-0.2.7.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
8
|
+
llm_dialog_manager-0.2.7.dist-info/top_level.txt,sha256=u2EQEXW0NGAt0AAHT7jx1odXZ4rZfjcgbmJhvKFuMkI,19
|
9
|
+
llm_dialog_manager-0.2.7.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
llm_dialog_manager/__init__.py,sha256=AfSsuE8ty-luFdLkdgQ98oQfbOYqYM8SO6p4tMDcDZ4,89
|
2
|
-
llm_dialog_manager/agent.py,sha256=dExW-pfPpRLedi-iJsn5S_iImMmWGI1ixztVqWCmMHE,10303
|
3
|
-
llm_dialog_manager/chat_history.py,sha256=xKA-oQCv8jv_g8EhXrG9h1S8Icbj2FfqPIhbty5vra4,6033
|
4
|
-
llm_dialog_manager/key_manager.py,sha256=shvxmn4zUtQx_p-x1EFyOmnk-WlhigbpKtxTKve-zXk,4421
|
5
|
-
llm_dialog_manager-0.1.2480.dist-info/LICENSE,sha256=vWGbYgGuWpWrXL8-xi6pNcX5UzD6pWoIAZmcetyfbus,1064
|
6
|
-
llm_dialog_manager-0.1.2480.dist-info/METADATA,sha256=1MvkDLGrjfAsNe8HTAK0_BNNTMLO_UPZEmi27pGujkY,5196
|
7
|
-
llm_dialog_manager-0.1.2480.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
8
|
-
llm_dialog_manager-0.1.2480.dist-info/top_level.txt,sha256=u2EQEXW0NGAt0AAHT7jx1odXZ4rZfjcgbmJhvKFuMkI,19
|
9
|
-
llm_dialog_manager-0.1.2480.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|