@copilotkitnext/core 1.52.0-next.6 → 1.52.0-next.7

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.cjs CHANGED
@@ -822,12 +822,15 @@ var RunHandler = class {
822
822
  /**
823
823
  * Run an agent
824
824
  */
825
- async runAgent({ agent }) {
825
+ async runAgent({ agent, forwardedProps }) {
826
826
  if (agent.agentId) this.core.suggestionEngine.clearSuggestions(agent.agentId);
827
827
  if (agent instanceof _ag_ui_client.HttpAgent) agent.headers = { ...this.core.headers };
828
828
  try {
829
829
  const runAgentResult = await agent.runAgent({
830
- forwardedProps: this.core.properties,
830
+ forwardedProps: {
831
+ ...this.core.properties,
832
+ ...forwardedProps
833
+ },
831
834
  tools: this.buildFrontendTools(agent.agentId),
832
835
  context: Object.values(this.core.context)
833
836
  }, this.createAgentErrorSubscriber(agent));