copilotkit 0.1.75a3__py3-none-any.whl → 0.1.75a4__py3-none-any.whl

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.
@@ -1,5 +1,21 @@
1
- from typing import Any, Callable, Awaitable, Annotated
2
- from typing_extensions import TypedDict, NotRequired
1
+ """
2
+ CopilotKit Middleware for LangGraph agents.
3
+
4
+ Works with any agent (prebuilt or custom).
5
+
6
+ Example:
7
+ from langchain.agents import create_agent
8
+ from copilotkit import CopilotKitMiddleware
9
+
10
+ agent = create_agent(
11
+ model="openai:gpt-4o",
12
+ tools=[backend_tool],
13
+ middleware=[CopilotKitMiddleware()],
14
+ )
15
+ """
16
+
17
+ from typing import Any, Callable, Awaitable, ClassVar, List
18
+ from typing_extensions import NotRequired
3
19
 
4
20
  from langchain_core.messages import AIMessage
5
21
  from langchain.agents.middleware import (
@@ -10,6 +26,8 @@ from langchain.agents.middleware import (
10
26
  )
11
27
  from langgraph.runtime import Runtime
12
28
 
29
+ from .langgraph import CopilotContextItem
30
+
13
31
 
14
32
  class CopilotKitState(AgentState):
15
33
  """Extended state schema for CopilotKit middleware."""
@@ -29,7 +47,7 @@ class CopilotKitMiddleware(AgentMiddleware[CopilotKitState, Any]):
29
47
  """
30
48
 
31
49
  state_schema = CopilotKitState
32
- tools = []
50
+ tools: ClassVar[list] = []
33
51
 
34
52
  @property
35
53
  def name(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: copilotkit
3
- Version: 0.1.75a3
3
+ Version: 0.1.75a4
4
4
  Summary: CopilotKit python SDK
5
5
  License: MIT
6
6
  Keywords: copilot,copilotkit,langgraph,langchain,ai,langsmith,langserve
@@ -1,7 +1,7 @@
1
1
  copilotkit/__init__.py,sha256=pK1UmbqWsd9blnIZ0p3wYHjkLthAavI2-gCyI5ulJzE,861
2
2
  copilotkit/action.py,sha256=bg_bPusEfN8TMQV1B3lVyMLbHyLn1E7yVYAvfE2_PXA,1691
3
3
  copilotkit/agent.py,sha256=e-jPsUQo18FOYUPdE3YNmSLcb5FEfWL6ARScOntyvb8,1663
4
- copilotkit/copilotkit_lg_middleware.py,sha256=CHPtSJnc_wEA-pVsq-TwNexA3K8x87dCEORADGxCiSY,5497
4
+ copilotkit/copilotkit_lg_middleware.py,sha256=TjBO3o_09fFXjruBXn2W1sW1Lr0hsMdLDlOk0mxmWok,5890
5
5
  copilotkit/crewai/__init__.py,sha256=RAkBTwDpFuvD5prULUnoWdl5d8W373cm1ZlqOMeSGbY,1034
6
6
  copilotkit/crewai/copilotkit_integration.py,sha256=vd1LVhXo-cpA4PQ_-cZHdKgm67MvrHpx4VJweUvCzPE,14550
7
7
  copilotkit/crewai/crewai_agent.py,sha256=maoMnl0WIHUnFAK5ALUKD9z0GvjtfNGi31zi37LyyaE,15323
@@ -21,6 +21,6 @@ copilotkit/runloop.py,sha256=9pBqWeu4QCRPOizz00se1d0_BvCX3ZIABzNeiXhdyNM,10641
21
21
  copilotkit/sdk.py,sha256=VEQqA9QAXJS5MDLxtJJdtfrApX9EawCHzp-IXnat5vw,11882
22
22
  copilotkit/types.py,sha256=_YQluiHpJGGXYB4eWLk0EocDZp5C8rs3ZsMNFhmXEYU,972
23
23
  copilotkit/utils.py,sha256=rOAaaFBXgb3iv_cLH9S2steyGwHmnTjaxQTA53qdtQo,203
24
- copilotkit-0.1.75a3.dist-info/METADATA,sha256=1wvJmalBXXfUWXb0rNTpsKng2yfVTC1b3wR_sm2vQbA,2606
25
- copilotkit-0.1.75a3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
26
- copilotkit-0.1.75a3.dist-info/RECORD,,
24
+ copilotkit-0.1.75a4.dist-info/METADATA,sha256=lr3-6-ytNEco-YHEPbHR8TFz0h_oF5v5EIfZs28DwOM,2606
25
+ copilotkit-0.1.75a4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
26
+ copilotkit-0.1.75a4.dist-info/RECORD,,