@copilotkitnext/react 0.0.19-alpha.0 → 0.0.19-alpha.2

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 CHANGED
@@ -549,6 +549,7 @@ interface ReactActivityMessageRenderer<TActivityContent> {
549
549
  activityType: string;
550
550
  content: TActivityContent;
551
551
  message: ActivityMessage;
552
+ agent: AbstractAgent | undefined;
552
553
  }>;
553
554
  }
554
555
 
package/dist/index.d.ts CHANGED
@@ -549,6 +549,7 @@ interface ReactActivityMessageRenderer<TActivityContent> {
549
549
  activityType: string;
550
550
  content: TActivityContent;
551
551
  message: ActivityMessage;
552
+ agent: AbstractAgent | undefined;
552
553
  }>;
553
554
  }
554
555
 
package/dist/index.js CHANGED
@@ -1851,17 +1851,19 @@ function useRenderActivityMessage() {
1851
1851
  return null;
1852
1852
  }
1853
1853
  const Component = renderer.render;
1854
+ const agent = copilotkit.getAgent(agentId);
1854
1855
  return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1855
1856
  Component,
1856
1857
  {
1857
1858
  activityType: message.activityType,
1858
1859
  content: parseResult.data,
1859
- message
1860
+ message,
1861
+ agent
1860
1862
  },
1861
1863
  message.id
1862
1864
  );
1863
1865
  },
1864
- [agentId, renderers]
1866
+ [agentId, copilotkit, renderers]
1865
1867
  );
1866
1868
  }
1867
1869