The latest update to CopilotKit, version 1.57.0, brings significant enhancements to the web inspector, particularly with the introduction of a new Threads tab. This update is designed to improve the inspection of agent interactions and streamline the development process for users.
The most notable addition in this release is the Threads tab in the web inspector. This feature allows users to view each agent's threads in a dedicated section, which includes three sub-views:
This functionality is supported by a new ThreadStoreRegistry in @copilotkit/core, which is keyed by agentId. Additionally, a new onAgentRunStarted subscriber event allows the inspector to subscribe before the agent.runAgent() method captures the subscriber list.
Furthermore, the update introduces the useThreads hook in @copilotkit/react-core, enabling real-time metadata fetching through a Phoenix WebSocket channel. New runtime endpoints have also been added, including:
GET /threads/:id/eventsGET /threads/:id/stateInMemoryAgentRunner and the Intelligence platform's endpoints.This update is crucial for developers working with CopilotKit as it enhances the ability to monitor and debug agent interactions effectively. The Threads tab provides a comprehensive view of agent activities, which can significantly improve the development workflow. By integrating real-time updates and detailed inspection capabilities, developers can respond more swiftly to issues and optimize their applications.
Official Source: https://github.com/CopilotKit/CopilotKit/releases/tag/v1.57.0