@copilotkitnext/core 0.0.33 → 0.0.34-pr.fix-express-endpoint

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.mjs CHANGED
@@ -888,16 +888,13 @@ var RunHandler = class {
888
888
  /**
889
889
  * Run an agent
890
890
  */
891
- async runAgent({ agent, withMessages }) {
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 */,