dm-aioaiagent 0.3.5__tar.gz → 0.3.6__tar.gz

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.
@@ -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
@@ -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
@@ -8,7 +8,7 @@ def readme():
8
8
 
9
9
  setup(
10
10
  name='dm-aioaiagent',
11
- version='v0.3.5',
11
+ version='v0.3.6',
12
12
  author='dimka4621',
13
13
  author_email='mismartconfig@gmail.com',
14
14
  description='This is my custom aioaiagent client',
File without changes
File without changes