agent-swarm-kit 1.0.128 → 1.0.130

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
@@ -1484,7 +1484,7 @@ var CC_AGENT_HISTORY_FILTER = function (agentName) {
1484
1484
  };
1485
1485
  };
1486
1486
  var CC_AGENT_OUTPUT_TRANSFORM = removeXmlTags;
1487
- var CC_KEEP_MESSAGES = 5;
1487
+ var CC_KEEP_MESSAGES = 25;
1488
1488
  var CC_GET_AGENT_HISTORY_ADAPTER = function () { return HistoryAdapter; };
1489
1489
  var CC_GET_CLIENT_LOGGER_ADAPTER = function () { return LoggerAdapter; };
1490
1490
  var CC_AGENT_OUTPUT_MAP = function (message) { return message; };
@@ -15606,7 +15606,7 @@ var AdapterUtils = /** @class */ (function () {
15606
15606
  * @param {string} [model="gpt-3.5-turbo"] - The model to use for completions.
15607
15607
  * @returns {Function} - A function that takes completion arguments and returns a response from OpenAI.
15608
15608
  */
15609
- this.fromOpenAI = function (openai, model) {
15609
+ this.fromOpenAI = function (openai, model, response_format) {
15610
15610
  if (model === void 0) { model = "gpt-3.5-turbo"; }
15611
15611
  /**
15612
15612
  * Handles the completion request to OpenAI.
@@ -15645,7 +15645,7 @@ var AdapterUtils = /** @class */ (function () {
15645
15645
  model: model,
15646
15646
  messages: messages,
15647
15647
  tools: tools,
15648
- response_format: { type: "text" },
15648
+ response_format: response_format,
15649
15649
  })];
15650
15650
  case 1:
15651
15651
  _c = __read.apply(void 0, [(_e.sent()).choices, 1]), _d = _c[0].message, content = _d.content, role = _d.role, tool_calls = _d.tool_calls;
package/build/index.mjs CHANGED
@@ -1482,7 +1482,7 @@ var CC_AGENT_HISTORY_FILTER = function (agentName) {
1482
1482
  };
1483
1483
  };
1484
1484
  var CC_AGENT_OUTPUT_TRANSFORM = removeXmlTags;
1485
- var CC_KEEP_MESSAGES = 5;
1485
+ var CC_KEEP_MESSAGES = 25;
1486
1486
  var CC_GET_AGENT_HISTORY_ADAPTER = function () { return HistoryAdapter; };
1487
1487
  var CC_GET_CLIENT_LOGGER_ADAPTER = function () { return LoggerAdapter; };
1488
1488
  var CC_AGENT_OUTPUT_MAP = function (message) { return message; };
@@ -15604,7 +15604,7 @@ var AdapterUtils = /** @class */ (function () {
15604
15604
  * @param {string} [model="gpt-3.5-turbo"] - The model to use for completions.
15605
15605
  * @returns {Function} - A function that takes completion arguments and returns a response from OpenAI.
15606
15606
  */
15607
- this.fromOpenAI = function (openai, model) {
15607
+ this.fromOpenAI = function (openai, model, response_format) {
15608
15608
  if (model === void 0) { model = "gpt-3.5-turbo"; }
15609
15609
  /**
15610
15610
  * Handles the completion request to OpenAI.
@@ -15643,7 +15643,7 @@ var AdapterUtils = /** @class */ (function () {
15643
15643
  model: model,
15644
15644
  messages: messages,
15645
15645
  tools: tools,
15646
- response_format: { type: "text" },
15646
+ response_format: response_format,
15647
15647
  })];
15648
15648
  case 1:
15649
15649
  _c = __read.apply(void 0, [(_e.sent()).choices, 1]), _d = _c[0].message, content = _d.content, role = _d.role, tool_calls = _d.tool_calls;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.128",
3
+ "version": "1.0.130",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
package/types.d.ts CHANGED
@@ -5655,7 +5655,9 @@ declare class AdapterUtils {
5655
5655
  * @param {string} [model="gpt-3.5-turbo"] - The model to use for completions.
5656
5656
  * @returns {Function} - A function that takes completion arguments and returns a response from OpenAI.
5657
5657
  */
5658
- fromOpenAI: (openai: any, model?: string) => ({ agentName, messages: rawMessages, mode, tools, clientId, }: ICompletionArgs$1) => Promise<{
5658
+ fromOpenAI: (openai: any, model?: string, response_format?: {
5659
+ type: string;
5660
+ }) => ({ agentName, messages: rawMessages, mode, tools, clientId, }: ICompletionArgs$1) => Promise<{
5659
5661
  content: any;
5660
5662
  mode: ExecutionMode;
5661
5663
  agentName: string;