@copilotkitnext/core 1.52.0-next.6 → 1.52.0-next.8
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 +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +5 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +4 -4
package/dist/index.umd.js
CHANGED
|
@@ -897,12 +897,15 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
897
897
|
/**
|
|
898
898
|
* Run an agent
|
|
899
899
|
*/
|
|
900
|
-
async runAgent({ agent }) {
|
|
900
|
+
async runAgent({ agent, forwardedProps }) {
|
|
901
901
|
if (agent.agentId) this.core.suggestionEngine.clearSuggestions(agent.agentId);
|
|
902
902
|
if (agent instanceof _ag_ui_client.HttpAgent) agent.headers = { ...this.core.headers };
|
|
903
903
|
try {
|
|
904
904
|
const runAgentResult = await agent.runAgent({
|
|
905
|
-
forwardedProps:
|
|
905
|
+
forwardedProps: {
|
|
906
|
+
...this.core.properties,
|
|
907
|
+
...forwardedProps
|
|
908
|
+
},
|
|
906
909
|
tools: this.buildFrontendTools(agent.agentId),
|
|
907
910
|
context: Object.values(this.core.context)
|
|
908
911
|
}, this.createAgentErrorSubscriber(agent));
|