@copilotkitnext/core 0.0.32 → 0.0.34-alpha.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.
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -888,16 +888,13 @@ var RunHandler = class {
|
|
|
888
888
|
/**
|
|
889
889
|
* Run an agent
|
|
890
890
|
*/
|
|
891
|
-
async runAgent({ agent
|
|
891
|
+
async runAgent({ agent }) {
|
|
892
892
|
if (agent.agentId) {
|
|
893
893
|
void this.core.suggestionEngine.clearSuggestions(agent.agentId);
|
|
894
894
|
}
|
|
895
895
|
if (agent instanceof HttpAgent3) {
|
|
896
896
|
agent.headers = { ...this.core.headers };
|
|
897
897
|
}
|
|
898
|
-
if (withMessages) {
|
|
899
|
-
agent.addMessages(withMessages);
|
|
900
|
-
}
|
|
901
898
|
try {
|
|
902
899
|
const runAgentResult = await agent.runAgent(
|
|
903
900
|
{
|
|
@@ -914,9 +911,6 @@ var RunHandler = class {
|
|
|
914
911
|
if (agent.agentId) {
|
|
915
912
|
context.agentId = agent.agentId;
|
|
916
913
|
}
|
|
917
|
-
if (withMessages) {
|
|
918
|
-
context.messageCount = withMessages.length;
|
|
919
|
-
}
|
|
920
914
|
await this.core.emitError({
|
|
921
915
|
error: runError,
|
|
922
916
|
code: "agent_run_failed" /* AGENT_RUN_FAILED */,
|