Hi everyone - thanks again for signing up for the CopilotKit v1.50 pre-release. We’ve been working for a while now on this significant upgrade, and appreciate your help in making sure it is ready for the rest of the world.
This page explains:
Make sure to set your CopilotKit version to ^1.50.0-beta.8
PNPM Install:
pnpm add @copilotkit/react-core@beta @copilotkit/react-ui@beta @copilotkit/runtime@beta
Note that we are still working on docs, and examples and some of the fit and finish on the release. We appreciate your patience and determination. Please do not hesitate to share feedback or ask for help!
CopilotKit v1.50 is a major update. It includes many highly sought after new features, under the hood improvements and simplifications, and extensive improvements to existing core elements:
| Threads and Persistence | Multiple, long running and resumable, agent conversations |
|---|---|
| useAgent | Superset of useCoAgent with more control, including: Shared State, Time Travel, Multi-Agent Execution and Agent Mutual Awareness |
| New Design System | Deeper UX customization |
| Direct to LLM Improvements | Shared state |
| Additional supported LLMs | |
| Zod schema support | Type safe compilation and runtime |
| Simplified Infrastructure | Removal of GraphQL |
| Backwards Compatibility | All CopilotKit v 1.10 compatible apps can be updated to v 1.50 with no required coding changes |
Everything you’re already using continues to work. v1.50 is fully backwards compatible with client code using v1.10. In fact, as a first step in this pre-release period, we would love for you to start with just rebuilding, and let us know if you run into any problems.
As we said above, all of the v1 (or unversioned) hooks continue to work with v1.50. To take advantage of new hooks you’ll use those marked as /v2 (shown below).
You can opt into any of the new developer interfaces or keep using the old ones. Mixing is allowed in the following configurations:
New Chat component + old hooks
Old components + new hooks
New v2 APIs are exposed under a subpath:
import { CopilotChat, useAgent } from "@copilotkit/react-core/v2";