@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.mjs CHANGED
@@ -537,7 +537,9 @@ var SuggestionEngine = class {
537
537
  async generateSuggestions(suggestionId, config, consumerAgentId) {
538
538
  let agent = void 0;
539
539
  try {
540
- const suggestionsProviderAgent = this.core.getAgent(config.providerAgentId ?? "default");
540
+ const suggestionsProviderAgent = this.core.getAgent(
541
+ config.providerAgentId ?? "default"
542
+ );
541
543
  if (!suggestionsProviderAgent) {
542
544
  throw new Error(`Suggestions provider agent not found: ${config.providerAgentId}`);
543
545
  }
@@ -547,7 +549,6 @@ var SuggestionEngine = class {
547
549
  }
548
550
  const clonedAgent = suggestionsProviderAgent.clone();
549
551
  agent = clonedAgent;
550
- agent.agentId = suggestionId;
551
552
  agent.threadId = suggestionId;
552
553
  agent.messages = JSON.parse(JSON.stringify(suggestionsConsumerAgent.messages));
553
554
  agent.state = JSON.parse(JSON.stringify(suggestionsConsumerAgent.state));