copilotkit 0.1.75a2__tar.gz → 0.1.75a4__tar.gz

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.
Files changed (26) hide show
  1. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/PKG-INFO +4 -2
  2. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/copilotkit_lg_middleware.py +21 -3
  3. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/pyproject.toml +2 -2
  4. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/README.md +0 -0
  5. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/__init__.py +0 -0
  6. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/action.py +0 -0
  7. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/agent.py +0 -0
  8. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/crewai/__init__.py +0 -0
  9. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/crewai/copilotkit_integration.py +0 -0
  10. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/crewai/crewai_agent.py +0 -0
  11. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/crewai/crewai_sdk.py +0 -0
  12. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/exc.py +0 -0
  13. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/html.py +0 -0
  14. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/integrations/__init__.py +0 -0
  15. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/integrations/fastapi.py +0 -0
  16. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/langchain.py +0 -0
  17. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/langgraph.py +0 -0
  18. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/langgraph_agent.py +0 -0
  19. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/langgraph_agui_agent.py +0 -0
  20. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/logging.py +0 -0
  21. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/parameter.py +0 -0
  22. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/protocol.py +0 -0
  23. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/runloop.py +0 -0
  24. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/sdk.py +0 -0
  25. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/types.py +0 -0
  26. {copilotkit-0.1.75a2 → copilotkit-0.1.75a4}/copilotkit/utils.py +0 -0
@@ -1,14 +1,16 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: copilotkit
3
- Version: 0.1.75a2
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
7
7
  Author: Markus Ecker
8
8
  Author-email: markus.ecker@gmail.com
9
- Requires-Python: >=3.12,<3.13
9
+ Requires-Python: >=3.10,<3.13
10
10
  Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
12
14
  Classifier: Programming Language :: Python :: 3.12
13
15
  Provides-Extra: crewai
14
16
  Requires-Dist: ag-ui-langgraph[fastapi] (>=0.0.22)
@@ -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
  [tool.poetry]
2
2
  name = "copilotkit"
3
- version = "0.1.75-alpha.2"
3
+ version = "0.1.75-alpha.4"
4
4
  description = "CopilotKit python SDK"
5
5
  authors = ["Markus Ecker <markus.ecker@gmail.com>"]
6
6
  license = "MIT"
@@ -10,7 +10,7 @@ repository = "https://github.com/CopilotKit/CopilotKit/tree/main/sdk-python"
10
10
  keywords = ["copilot", "copilotkit", "langgraph", "langchain", "ai", "langsmith", "langserve"]
11
11
 
12
12
  [tool.poetry.dependencies]
13
- python = ">=3.12,<3.13"
13
+ python = ">=3.10,<3.13"
14
14
  langgraph = {version = ">=0.3.25,<1.1.0"}
15
15
  langchain = {version = ">=0.3.0"}
16
16
  crewai = { version = "0.118.0", optional = true }
File without changes