dm-aioaiagent 0.3.5__py3-none-any.whl → 0.3.6__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.
dm_aioaiagent/ai_agent.py CHANGED
@@ -27,6 +27,7 @@ class DMAIAgent:
27
27
  *,
28
28
  model: str = "gpt-4o-mini",
29
29
  temperature: int = 1,
30
+ parallel_tool_calls: bool = True,
30
31
  agent_name: str = None,
31
32
  input_output_logging: bool = True,
32
33
  is_memory_enabled: bool = True,
@@ -44,6 +45,7 @@ class DMAIAgent:
44
45
  self._is_tools_exists = bool(tools)
45
46
  self._model = str(model)
46
47
  self._temperature = int(temperature)
48
+ self._parallel_tool_calls = bool(parallel_tool_calls)
47
49
  self._llm_provider_api_key = str(llm_provider_api_key)
48
50
 
49
51
  self._is_memory_enabled = bool(is_memory_enabled)
@@ -194,7 +196,7 @@ class DMAIAgent:
194
196
 
195
197
  if self._is_tools_exists:
196
198
  self._tool_map = {t.name: t for t in self._tools}
197
- llm = llm.bind_tools(self._tools)
199
+ llm = llm.bind_tools(self._tools, parallel_tool_calls=self._parallel_tool_calls)
198
200
 
199
201
  prompt = ChatPromptTemplate.from_messages([SystemMessage(content=self._system_message),
200
202
  MessagesPlaceholder(variable_name="messages")])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dm-aioaiagent
3
- Version: 0.3.5
3
+ Version: 0.3.6
4
4
  Summary: This is my custom aioaiagent client
5
5
  Home-page: https://pypi.org/project/dm-aioaiagent
6
6
  Author: dimka4621
@@ -1,9 +1,9 @@
1
1
  dm_aioaiagent/__init__.py,sha256=ffLO0jGxiY40VYptRjJXCh7t0XKAccGtBXW5FafbFgA,213
2
- dm_aioaiagent/ai_agent.py,sha256=ZW85hzBpWVFgnnaOlMcpayFyxtH9mtIrc43ZVzdKBBY,10815
2
+ dm_aioaiagent/ai_agent.py,sha256=dZUKlXkVftHKl_KmpMWnWp3ot-GJ3xBO_srz-d3_U-4,10966
3
3
  dm_aioaiagent/async_ai_agent.py,sha256=qg7LZRxC7MSzjjburEX09T5EF15ZXAWAd_9RB8vA0oE,2599
4
4
  dm_aioaiagent/openai_image_message_content.py,sha256=EP_i0ERCz7c4KOM8UXp2-AI91ntGC7PGQBc5MMNspcs,434
5
5
  dm_aioaiagent/types.py,sha256=H2_iICmWr6u9d1-6BtSxdt6qV6Jm8v7Zh8das5kV6I4,989
6
- dm_aioaiagent-0.3.5.dist-info/METADATA,sha256=B9lKnewVEzH_XCegUY8LsbQqHBWSW7eu1icdstFbH7o,5031
7
- dm_aioaiagent-0.3.5.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
- dm_aioaiagent-0.3.5.dist-info/top_level.txt,sha256=CbasLH0KI7zA77XwT6JDCnmRascxKNGvUVV9MgYjHAU,14
9
- dm_aioaiagent-0.3.5.dist-info/RECORD,,
6
+ dm_aioaiagent-0.3.6.dist-info/METADATA,sha256=qMm8tQs-CBLju_4Q0cB7Lz874P0oL-mPFgoAlyj9d94,5031
7
+ dm_aioaiagent-0.3.6.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
+ dm_aioaiagent-0.3.6.dist-info/top_level.txt,sha256=CbasLH0KI7zA77XwT6JDCnmRascxKNGvUVV9MgYjHAU,14
9
+ dm_aioaiagent-0.3.6.dist-info/RECORD,,