copilotkit 0.1.85__tar.gz → 0.1.86a0__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.85 → copilotkit-0.1.86a0}/PKG-INFO +2 -2
  2. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/copilotkit_lg_middleware.py +2 -1
  3. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/langgraph_agui_agent.py +2 -2
  4. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/pyproject.toml +2 -2
  5. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/README.md +0 -0
  6. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/__init__.py +0 -0
  7. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/action.py +0 -0
  8. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/agent.py +0 -0
  9. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/crewai/__init__.py +0 -0
  10. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/crewai/copilotkit_integration.py +0 -0
  11. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/crewai/crewai_agent.py +0 -0
  12. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/crewai/crewai_sdk.py +0 -0
  13. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/exc.py +0 -0
  14. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/html.py +0 -0
  15. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/integrations/__init__.py +0 -0
  16. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/integrations/fastapi.py +0 -0
  17. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/langchain.py +0 -0
  18. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/langgraph.py +0 -0
  19. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/langgraph_agent.py +0 -0
  20. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/logging.py +0 -0
  21. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/parameter.py +0 -0
  22. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/protocol.py +0 -0
  23. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/runloop.py +0 -0
  24. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/sdk.py +0 -0
  25. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/types.py +0 -0
  26. {copilotkit-0.1.85 → copilotkit-0.1.86a0}/copilotkit/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: copilotkit
3
- Version: 0.1.85
3
+ Version: 0.1.86a0
4
4
  Summary: CopilotKit python SDK
5
5
  License: MIT
6
6
  Keywords: copilot,copilotkit,langgraph,langchain,ai,langsmith,langserve
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
15
  Provides-Extra: crewai
16
- Requires-Dist: ag-ui-langgraph[fastapi] (>=0.0.29)
16
+ Requires-Dist: ag-ui-langgraph[fastapi] (>=0.0.30)
17
17
  Requires-Dist: ag-ui-protocol (>=0.1.11)
18
18
  Requires-Dist: crewai (==0.118.0) ; extra == "crewai"
19
19
  Requires-Dist: fastapi (>=0.115.0,<1.0.0)
@@ -26,6 +26,7 @@ from langchain.agents.middleware import (
26
26
  ModelResponse,
27
27
  )
28
28
  from langgraph.runtime import Runtime
29
+ from ag_ui_langgraph import make_json_safe
29
30
 
30
31
  from .langgraph import CopilotKitProperties
31
32
 
@@ -262,7 +263,7 @@ class CopilotKitMiddleware(AgentMiddleware[StateSchema, Any]):
262
263
  if isinstance(app_context, str):
263
264
  context_content = app_context
264
265
  else:
265
- context_content = json.dumps(app_context, indent=2)
266
+ context_content = json.dumps(make_json_safe(app_context), indent=2)
266
267
 
267
268
  context_message_content = f"App Context:\n{context_content}"
268
269
  context_message_prefix = "App Context:\n"
@@ -1,7 +1,7 @@
1
1
  import json
2
2
  from typing import Dict, Any, List, Optional, Union, AsyncGenerator
3
3
  from enum import Enum
4
- from ag_ui_langgraph import LangGraphAgent
4
+ from ag_ui_langgraph import LangGraphAgent, make_json_safe
5
5
  from ag_ui.core import (
6
6
  EventType,
7
7
  CustomEvent,
@@ -108,7 +108,7 @@ class LangGraphAGUIAgent(LangGraphAgent):
108
108
  type=EventType.TOOL_CALL_ARGS,
109
109
  tool_call_id=custom_event.value["id"],
110
110
  delta=custom_event.value["args"] if isinstance(custom_event.value["args"], str) else json.dumps(
111
- custom_event.value["args"]),
111
+ make_json_safe(custom_event.value["args"])),
112
112
  raw_event=event,
113
113
  )
114
114
  )
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "copilotkit"
3
- version = "0.1.85"
3
+ version = "0.1.86-alpha.0"
4
4
  description = "CopilotKit python SDK"
5
5
  authors = ["Markus Ecker <markus.ecker@gmail.com>"]
6
6
  license = "MIT"
@@ -22,7 +22,7 @@ python = ">=3.10,<3.13"
22
22
  langgraph = { version = ">=0.3.25,<2" }
23
23
  langchain = { version = ">=0.3.0" }
24
24
  crewai = { version = "0.118.0", optional = true }
25
- ag-ui-langgraph = { version = ">=0.0.29", extras = ["fastapi"] }
25
+ ag-ui-langgraph = { version = ">=0.0.30", extras = ["fastapi"] }
26
26
  ag-ui-protocol = ">=0.1.11"
27
27
  fastapi = ">=0.115.0,<1.0.0"
28
28
  partialjson = "^0.0.8"
File without changes