llm-dialog-manager 0.1.2479__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.
@@ -1,4 +1,4 @@
1
1
  from .chat_history import ChatHistory
2
2
  from .agent import Agent
3
3
 
4
- __version__ = "0.1.2479"
4
+ __version__ = "0.2.7"
@@ -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
- a = agent.history.pop()
271
- print(a)
261
+ last_message = agent.history.pop()
262
+ print(last_message)
272
263
  print(agent.history[:])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: llm_dialog_manager
3
- Version: 0.1.2479
3
+ Version: 0.2.7
4
4
  Summary: A Python package for managing LLM chat conversation history
5
5
  Author-email: xihajun <work@2333.fun>
6
6
  License: MIT
@@ -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=Q_lOlvO4nPzkCXtQL_PcgKhbJ9euE4gOBzutWXGXpAA,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.2479.dist-info/LICENSE,sha256=vWGbYgGuWpWrXL8-xi6pNcX5UzD6pWoIAZmcetyfbus,1064
6
- llm_dialog_manager-0.1.2479.dist-info/METADATA,sha256=TD0Ai_iWh6Y-dv3EvcuRpqIXE9mZVdtXkL8TSuhn97Y,5196
7
- llm_dialog_manager-0.1.2479.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
8
- llm_dialog_manager-0.1.2479.dist-info/top_level.txt,sha256=u2EQEXW0NGAt0AAHT7jx1odXZ4rZfjcgbmJhvKFuMkI,19
9
- llm_dialog_manager-0.1.2479.dist-info/RECORD,,