@copilotkitnext/angular 1.52.0 → 1.52.1-next.0

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.
@@ -157,7 +157,10 @@ class CopilotKit {
157
157
  runtimeUrl: this.#config.runtimeUrl,
158
158
  headers: this.#config.headers,
159
159
  properties: this.#config.properties,
160
- agents__unsafe_dev_only: this.#config.agents,
160
+ agents__unsafe_dev_only: {
161
+ ...this.#config.agents,
162
+ ...this.#config.selfManagedAgents,
163
+ },
161
164
  tools: this.#config.tools,
162
165
  });
163
166
  #toolCallRenderConfigs = signal([]);
@@ -272,8 +275,12 @@ class CopilotKit {
272
275
  if (options.properties !== undefined) {
273
276
  this.core.setProperties(options.properties);
274
277
  }
275
- if (options.agents !== undefined) {
276
- this.core.setAgents__unsafe_dev_only(options.agents);
278
+ if (options.agents !== undefined ||
279
+ options.selfManagedAgents !== undefined) {
280
+ this.core.setAgents__unsafe_dev_only({
281
+ ...(options.agents ?? this.#config.agents),
282
+ ...(options.selfManagedAgents ?? this.#config.selfManagedAgents),
283
+ });
277
284
  }
278
285
  }
279
286
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CopilotKit, deps: [], target: i0.ɵɵFactoryTarget.Injectable });