@copilotkitnext/core 0.0.27 → 0.0.29

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/dist/index.js CHANGED
@@ -569,7 +569,9 @@ var SuggestionEngine = class {
569
569
  async generateSuggestions(suggestionId, config, consumerAgentId) {
570
570
  let agent = void 0;
571
571
  try {
572
- const suggestionsProviderAgent = this.core.getAgent(config.providerAgentId ?? "default");
572
+ const suggestionsProviderAgent = this.core.getAgent(
573
+ config.providerAgentId ?? "default"
574
+ );
573
575
  if (!suggestionsProviderAgent) {
574
576
  throw new Error(`Suggestions provider agent not found: ${config.providerAgentId}`);
575
577
  }
@@ -579,7 +581,6 @@ var SuggestionEngine = class {
579
581
  }
580
582
  const clonedAgent = suggestionsProviderAgent.clone();
581
583
  agent = clonedAgent;
582
- agent.agentId = suggestionId;
583
584
  agent.threadId = suggestionId;
584
585
  agent.messages = JSON.parse(JSON.stringify(suggestionsConsumerAgent.messages));
585
586
  agent.state = JSON.parse(JSON.stringify(suggestionsConsumerAgent.state));