agent-swarm-kit 1.0.184 → 1.0.185

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.
package/build/index.cjs CHANGED
@@ -17241,7 +17241,6 @@ class AdapterUtils {
17241
17241
  */
17242
17242
  functoolsKit.execpool(functoolsKit.retry(async ({ agentName, messages: rawMessages, mode, tools, clientId, }) => {
17243
17243
  LoggerAdapter.logClient(clientId, "AdapterUtils fromLMStudio completion", JSON.stringify(rawMessages));
17244
- const toolNames = new Set(tools?.map((tool) => tool.function.name));
17245
17244
  const messages = rawMessages.map(({ role, tool_call_id, tool_calls, content }) => ({
17246
17245
  role,
17247
17246
  tool_call_id,
@@ -17267,9 +17266,7 @@ class AdapterUtils {
17267
17266
  mode,
17268
17267
  agentName,
17269
17268
  role,
17270
- tool_calls: tool_calls
17271
- ?.filter(({ function: { name } }) => toolNames.has(name))
17272
- ?.map(({ function: f, ...rest }) => ({
17269
+ tool_calls: tool_calls?.map(({ function: f, ...rest }) => ({
17273
17270
  ...rest,
17274
17271
  function: {
17275
17272
  name: f.name,
package/build/index.mjs CHANGED
@@ -17239,7 +17239,6 @@ class AdapterUtils {
17239
17239
  */
17240
17240
  execpool(retry(async ({ agentName, messages: rawMessages, mode, tools, clientId, }) => {
17241
17241
  LoggerAdapter.logClient(clientId, "AdapterUtils fromLMStudio completion", JSON.stringify(rawMessages));
17242
- const toolNames = new Set(tools?.map((tool) => tool.function.name));
17243
17242
  const messages = rawMessages.map(({ role, tool_call_id, tool_calls, content }) => ({
17244
17243
  role,
17245
17244
  tool_call_id,
@@ -17265,9 +17264,7 @@ class AdapterUtils {
17265
17264
  mode,
17266
17265
  agentName,
17267
17266
  role,
17268
- tool_calls: tool_calls
17269
- ?.filter(({ function: { name } }) => toolNames.has(name))
17270
- ?.map(({ function: f, ...rest }) => ({
17267
+ tool_calls: tool_calls?.map(({ function: f, ...rest }) => ({
17271
17268
  ...rest,
17272
17269
  function: {
17273
17270
  name: f.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.184",
3
+ "version": "1.0.185",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",