mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
830c53a449
The floor bump to >=0.0.43 rested on a premise that does not hold. Six of seven reviewers reported that this PR's regression was unguarded in CI, reasoning from poetry.lock pinning 0.0.42. CI does not use that pin: .github/workflows/test_unit-python-sdk.yml run: poetry lock && poetry install --with dev poetry lock regenerates the lockfile from scratch, so CI already resolved 0.0.43 under the original >=0.0.42 floor, the behavioral clone tests already ran there, and a reverted fix would already have failed CI. The measurement behind the claim was real but described a local install, not CI. 0.0.42 is code-compatible with the kwargs passthrough: the base takes the four documented parameters, we pass four, and the only thing 0.0.42 lacks is the optional behavior flags, whose absence merely skips two tests. So the floor narrowed users' install range for no benefit, and forced a 129-line poetry.lock regeneration (previously-unlocked dev-group closure) along with it, since poetry requires lock/pyproject consistency. Both files are restored byte-identical to main. The tests FIX-B1 added are kept: the version-independent spy test is what actually guards the passthrough, and it holds on any base version. Restoring the floor also makes the skipif guards on the two flag tests live again rather than dead code. Verified after the revert: 0.0.43 -> 237 passed, 11 skipped 0.0.42 -> 235 passed, 13 skipped 0.0.42 + fix reverted -> 1 failed (test_init_forwards_unknown_kwargs_to_base) A floor bump becomes justified when upstream ships the clone() fix as 0.0.44, because that is the first release where third-party subclasses are safe. That belongs in the release commit that consumes it, not here. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
CopilotKit Python SDK
The official Python SDK for CopilotKit - build AI copilots and agents into your applications.
Features
- 🚀 Easy integration with LangGraph and LangChain
- 🔄 Built-in support for stateful conversations
- 🛠 Extensible agent framework
- 🔌 FastAPI-ready endpoints
- 🤝 Optional CrewAI integration
Installation
pip install copilotkit
With CrewAI support:
pip install "copilotkit[crewai]"
Quick Start
from copilotkit import Copilot
# Initialize a copilot
copilot = Copilot()
# Add your tools and configure the copilot
copilot.add_tool(my_custom_tool)
# Run the copilot
response = copilot.run("Your task description here")
Documentation
For detailed documentation and examples, visit copilotkit.ai
Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
Built with ❤️ by the CopilotKit team