@copilotkit/core 1.56.0 → 1.56.2

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.umd.js CHANGED
@@ -967,6 +967,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
967
967
  initialize(agents) {
968
968
  this.localAgents = this.assignAgentIds(agents);
969
969
  this.applyHeadersToAgents(this.localAgents);
970
+ this.applyCredentialsToAgents(this.localAgents);
970
971
  this._agents = this.localAgents;
971
972
  }
972
973
  /**
@@ -996,6 +997,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
996
997
  ...this.remoteAgents
997
998
  };
998
999
  this.applyHeadersToAgents(this._agents);
1000
+ this.applyCredentialsToAgents(this._agents);
999
1001
  this.notifyAgentsChanged();
1000
1002
  }
1001
1003
  /**
@@ -1005,6 +1007,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1005
1007
  this.validateAndAssignAgentId(id, agent);
1006
1008
  this.localAgents[id] = agent;
1007
1009
  this.applyHeadersToAgent(agent);
1010
+ this.applyCredentialsToAgent(agent);
1008
1011
  this._agents = {
1009
1012
  ...this.localAgents,
1010
1013
  ...this.remoteAgents
@@ -2107,7 +2110,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2107
2110
  * Build frontend tools for an agent
2108
2111
  */
2109
2112
  buildFrontendTools(agentId) {
2110
- return this._tools.filter((tool) => tool.available !== false && (!tool.agentId || tool.agentId === agentId)).map((tool) => {
2113
+ return this._tools.filter((tool) => tool.available !== false && tool.available !== "disabled" && (!tool.agentId || tool.agentId === agentId)).map((tool) => {
2111
2114
  var _tool$description;
2112
2115
  return {
2113
2116
  name: tool.name,